Skip to content

Instantly share code, notes, and snippets.

View seleniumgists's full-sized avatar

seleniumgists

View GitHub Profile
@seleniumgists
seleniumgists / file.py
Created October 9, 2020 11:49
generated automatically from #selenium on seleniumhq slack
04:41:03.497 DEBUG [WebDriverServlet.handle] - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@42674316
04:41:03.502 DEBUG [WebDriverServlet.lambda$handle$0] - /session: Executing POST on /session (handler: BeginSession)
04:41:03.505 INFO [ActiveSessionFactory.apply] - Capabilities are: {
"browserName": "MicrosoftEdge"
}
04:41:03.505 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.grid.session.remote.ServicedSession$Factory (provider: org.openqa.selenium.edge.EdgeDriverService)
@seleniumgists
seleniumgists / file.cpp
Created October 9, 2020 10:35
generated automatically from #selenium on seleniumhq slack
03:29:16.040 INFO [ActiveSessionFactory.apply] - Capabilities are: {
"browserName": "MicrosoftEdge"
}
03:29:16.040 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.grid.session.remote.ServicedSession$Factory (provider: org.openqa.selenium.edge.EdgeDriverService)```
Hub Logs:
```03:29:15.899 INFO [RequestHandler.process] - Got a request to create a new session: Capabilities {browserName: MicrosoftEdge}
03:29:15.915 INFO [TestSlot.getNewSession] - Trying to create a new session on test slot {server:CONFIG_UUID=99d29358-6efb-4e09-8a95-49941b8f25ea, seleniumProtocol=WebDriver, browserName=MicrosoftEdge, maxInstances=5, platformName=WIN10, platform=WIN10}
@seleniumgists
seleniumgists / file.html
Created October 9, 2020 08:38
generated automatically from #selenium on seleniumhq slack
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities = DesiredCapabilities.edge();
WebDriver driver = new RemoteWebDriver(new URL(cloud), capabilities );```
#2
```EdgeOptions options = new EdgeOptions();
WebDriver driver = new RemoteWebDriver(new URL(cloud), options);
@seleniumgists
seleniumgists / file.cpp
Created October 8, 2020 08:40
generated automatically from #selenium on seleniumhq slack
while ! curl -sSL "<http://localhost:4444/wd/hub/status>" | jq '.value.nodes | length == 2'
echo 'Waiting for the 2 Nodes to Register to the Hub'
echo "Grid is not yet ready"
sleep 1
done
@seleniumgists
seleniumgists / file.cpp
Created October 8, 2020 08:20
generated automatically from #selenium on seleniumhq slack
[09:18:34] luke@luke-VirtualBox:~/Code/...$ curl -sSL "<http://localhost:4444/wd/hub/status>"
{
"status": 0,
"value": {
"ready": true,
"message": "Hub has capacity",
"build": {
"revision": "e82be7d358",
"time": "2018-11-14T08:25:53",
"version": "3.141.59"
@seleniumgists
seleniumgists / file.m
Created October 8, 2020 08:04
generated automatically from #selenium on seleniumhq slack
docker-compose run cucumber dockerize -wait <http://hub:4444> \
-wait <http://node-chrome:5555/wd/hub/static/resource/hub.html> \
-wait <http://node-firefox:5555/wd/hub/static/resource/hub.html> \
-timeout 60s bundle exec rake smoke $@
@seleniumgists
seleniumgists / file.cpp
Created October 8, 2020 07:52
generated automatically from #selenium on seleniumhq slack
2020/10/08 07:52:17 Received 404 from <http://public-website-node-firefox.test:5555/wd/hub/static/resource/hub.html>. Sleeping 1s
2020/10/08 07:52:17 Received 404 from <http://public-website-node-chrome.test:5555/wd/hub/static/resource/hub.html>. Sleeping 1s
2020/10/08 07:52:17 Received 404 from <http://public-website-hub.test:4444>.
@seleniumgists
seleniumgists / file.m
Created October 7, 2020 09:38
generated automatically from #selenium on seleniumhq slack
wait.until(ExpectedConditions.visibilityOf(element));
@seleniumgists
seleniumgists / file.html
Created October 5, 2020 13:29
generated automatically from #selenium on seleniumhq slack
elements = driver.find_elements('css')
elements.detect {|e| e.text == "BLAH" }.click
@seleniumgists
seleniumgists / file.m
Created October 2, 2020 09:07
generated automatically from #selenium on seleniumhq slack
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for OneApiTestAutomation 0.0.1-SNAPSHOT:
[INFO]
[INFO] OneApiTestAutomation ............................... SUCCESS [ 1.148 s]
[INFO] OneApiTestAutomationUtilities ...................... SUCCESS [ 14.410 s]
[INFO] OneApiHubTestAutomation ............................ FAILURE [21:54 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE