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
/venv/lib/python3.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 369, in execute | |
path = string.Template(command_info[1]).substitute(params) | |
File "/usr/lib/python3.7/string.py", line 132, in substitute | |
return self.pattern.sub(convert, self.template) | |
File "/usr/lib/python3.7/string.py", line 125, in convert | |
return str(mapping[named]) | |
KeyError: 'sessionId' |
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
venv/lib/python3.7/site-packages/selenium/webdriver/remote/remote_connection.py:369: in execute | |
path = string.Template(command_info[1]).substitute(params) | |
/usr/lib/python3.7/string.py:132: in substitute | |
return self.pattern.sub(convert, self.template) |
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
irb(main):002:1* options = { | |
irb(main):003:1* args: [], | |
irb(main):004:1* w3c: true, | |
irb(main):005:1* mobileEmulation: {}, | |
irb(main):006:1* prefs: {"enable-webrtc-hide-local-ips-with-mdns" => false}, | |
irb(main):007:1* extensions: [] | |
irb(main):008:0> } | |
irb(main):009:0> caps = Selenium::WebDriver::Chrome::Options.new(options: options) | |
irb(main):010:0> caps | |
=> #<Selenium::WebDriver::Chrome::Options:0x00007f7fe9f09c70 @args=#<Set: {}>, @binary=nil, @prefs={}, @extensions=[], @options={:args=>[], :w3c=>true, :mobileEmulation=>{}, :prefs=>{"enable-webrtc-hide-local-ips-with-mdns"=>false}, :extensions=>[]}, @emulation={}, @detach=nil, @profile=nil, @encoded_extensions=[]> |
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
"goog:chromeOptions": { | |
"args": [ ], | |
"extensions": [ ], | |
"prefs": { | |
"enable-webrtc-hide-local-ips-with-mdns": false | |
} | |
} |
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
from invalid argument: unrecognized chrome option: enable-webrtc-hide-local-ips-with-mdns |
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
irb(main):097:0> options = Selenium::WebDriver::Chrome::Options.new | |
irb(main):098:0> options.add_option("enable-webrtc-hide-local-ips-with-mdns", false) | |
=> false | |
irb(main):099:0> driver = Selenium::WebDriver.for :chrome, options: options | |
Traceback (most recent call last): | |
16: from 15 chromedriver 0x0000000106542109 chromedriver + 4522249 | |
15: from 14 chromedriver 0x000000010656b6bb chromedriver + 4691643 | |
14: from 13 chromedriver 0x000000010656b91b chromedriver + 4692251 | |
13: from 12 chromedriver 0x000000010655e5af chromedriver + 4638127 | |
12: from 11 chromedriver 0x000000010610e635 chromedriver + 116277 |
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
options.add_option("enable-webrtc-hide-local-ips-with-mdns", false); |
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
options = Selenium::WebDriver::Chrome::Options.new(local_state: {"browser": {"enabled_labs_experiments": "enable-webrtc-hide-local-ips-with-mdns"}}) | |
driver = Selenium::WebDriver.for :chrome, options: options | |
driver.get('<chrome://flags/#enable-webrtc-hide-local-ips-with-mdns>') |
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
WARN [SpanWrappedHttpHandler.execute] - Unable to execute request: Unable to find provider for session: Capabilities {browserName: chrome, goog:chromeOptions: {args: [--incognito, --no-sandbox, --disable-dev-shm-usage], extensions: []}}``` | |
and also errors like this in the actual test failure log: | |
`NettyHttpHandler request execution error` | |
`Run 1: Unable to find provider for session: Capabilities {browserName: chrome, goog:chromeOptions: {args: [--incognito, --no-sandbox, --disable-dev-shm-usage], extensions: []}}` | |
This is my `docker-compose.yml` file: | |
```version: "3" | |
services: | |
selenium-hub: | |
image: selenium/hub:4.0.0-alpha-6-20200721 | |
container_name: selenium-hub |
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
{ | |
"value": { | |
"ready": false, | |
"message": "Selenium Grid not ready.", | |
"nodes": [] | |
} | |
} |