This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wait.until(ExpectedConditions.visibilityOf(element)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elements = driver.find_elements('css') | |
elements.detect {|e| e.text == "BLAH" }.click |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |