Skip to content

Instantly share code, notes, and snippets.

seleniumgists

Block or report user

Report or block seleniumgists

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@seleniumgists
seleniumgists / file.m
Created Sep 15, 2019
generated automatically from #selenium on seleniumhq slack
View file.m
const edge = require("selenium-webdriver/edge");
const options = new edge.Options();
options.setPageLoadStrategy("eager");
const driver = new edge.Driver(options);
```
Error
@seleniumgists
seleniumgists / Untitled
Created Sep 15, 2019
generated automatically from #selenium on seleniumhq slack
View Untitled
IWebDriver c = new ChromeDriver();
c.Navigate().GoToUrl("www.google.com/eg");
@seleniumgists
seleniumgists / file.m
Created Sep 14, 2019
generated automatically from #selenium on seleniumhq slack
View file.m
MutationObserver``` in a JavaScript executor which monitors any mutations in the DOM and lists them.
We then check that list to verify if there is any mutations happening after click in the DOM which indicates that the webpage is reacting to the click event.
But the ```MutationObserver
@seleniumgists
seleniumgists / file.m
Created Sep 14, 2019
generated automatically from #selenium on seleniumhq slack
View file.m
click()``` event has been performed on/by an element ?
_Background_:
There are various application we are testing ,
1. There are apps where a simple ```WebElement.click()``` works
2. There are apps where ```WebElement.click()``` doesn't work and we have to use ```javascriptExecutor.executescript("arguments[0].click();",Webelement)
@seleniumgists
seleniumgists / Untitled
Created Sep 11, 2019
generated automatically from #selenium on seleniumhq slack
View Untitled
selenium_hub_1 | 19:12:21.306 INFO [RequestHandler.process] - Got a request to create a new session: Capabilities {browserName: chrome}
selenium_hub_1 | 19:12:21.314 INFO [TestSlot.getNewSession] - Trying to create a new session on test slot {server:CONFIG_UUID=9b8b792c-4a01-4a12-9c0e-bc9fda411613, seleniumProtocol=WebDriver, browserName=chrome, maxInstances=1, platformName=LINUX, version=76.0.3809.132, applicationName=, platform=LINUX}
chrome_1 | 19:12:21.481 INFO [ActiveSessionFactory.apply] - Capabilities are: {
chrome_1 | "browserName": "chrome",
chrome_1 | "goog:chromeOptions": {
chrome_1 | }
chrome_1 | }
chrome_1 | 19:12:21.484 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.grid.session.remote.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverServ
@seleniumgists
seleniumgists / Untitled
Created Sep 11, 2019
generated automatically from #selenium on seleniumhq slack
View Untitled
selenium_hub:
image: selenium/hub:3.5.3-astatine
ports:
- "4444:4444"
environment:
- GRID_TIMEOUT=999999
- BROWSER_TIMEOUT=999999
links:
- test
- node-api
@seleniumgists
seleniumgists / Untitled
Created Sep 11, 2019
generated automatically from #selenium on seleniumhq slack
View Untitled
selenium_hub_1 | 17:55:35.267 INFO - Got a request to create a new session: Capabilities [{browserName=chrome}]
selenium_hub_1 | 17:55:35.268 INFO - Trying to create a new session on test slot {server:CONFIG_UUID=93292726-533c-43cd-9560-b845139efb74, seleniumProtocol=WebDriver, browserName=chrome, maxInstances=2, platformName=LINUX, version=76.0.3809.132, applicationName=, platform=LINUX}
selenium_node-chrome_1 | 17:55:35.277 INFO [ActiveSessionFactory.apply] - Capabilities are: {
selenium_node-chrome_1 | "browserName": "chrome"
selenium_node-chrome_1 | }
selenium_node-chrome_1 | 17:55:35.277 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.grid.session.remote.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
selenium_node-chrome_1 | Starting ChromeDriver 76.0.3809.126 (d80a294506b4c9d18015e755cee48f953ddc3f2f-refs/branch-heads/3809@{#1024}) on
@seleniumgists
seleniumgists / 1
Created Sep 10, 2019
generated automatically from #selenium on seleniumhq slack
View 1
{
"id": "130ca86f-9e33-460f-afa1-7c92eb1bf39d",
"name": "#1690-- 修改工单优先级",
"commands": [{
"id": "e91c8de7-47a9-4d64-83f7-1385f3c5d946",
"comment": "",
"command": "run",
"target": "登录--管理员账号",
"targets": [],
"value": ""
@seleniumgists
seleniumgists / file.py
Created Sep 10, 2019
generated automatically from #selenium on seleniumhq slack
View file.py
unable to take screenshot. UnknownError:
@seleniumgists
seleniumgists / file.css
Created Sep 9, 2019
generated automatically from #selenium on seleniumhq slack
View file.css
RemoteWebDriver driver = new RemoteWebDriver(address, new ChromeOptions());
LocationContext context = (LocationContext) new Augmenter().augment(driver);
You can’t perform that action at this time.