Skip to content

Instantly share code, notes, and snippets.

View seleniumgists's full-sized avatar

seleniumgists

View GitHub Profile
@seleniumgists
seleniumgists / file.py
Created July 31, 2020 16:37
generated automatically from #selenium on seleniumhq slack
/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'
@seleniumgists
seleniumgists / file.m
Created July 31, 2020 16:34
generated automatically from #selenium on seleniumhq slack
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)
@seleniumgists
seleniumgists / file.css
Created July 31, 2020 12:41
generated automatically from #selenium on seleniumhq slack
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=[]>
@seleniumgists
seleniumgists / file.rb
Created July 31, 2020 12:02
generated automatically from #selenium on seleniumhq slack
"goog:chromeOptions": {
"args": [ ],
"extensions": [ ],
"prefs": {
"enable-webrtc-hide-local-ips-with-mdns": false
}
}
@seleniumgists
seleniumgists / file.m
Created July 31, 2020 11:49
generated automatically from #selenium on seleniumhq slack
from invalid argument: unrecognized chrome option: enable-webrtc-hide-local-ips-with-mdns
@seleniumgists
seleniumgists / file.m
Created July 31, 2020 11:48
generated automatically from #selenium on seleniumhq slack
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
@seleniumgists
seleniumgists / file.m
Created July 31, 2020 10:10
generated automatically from #selenium on seleniumhq slack
options.add_option("enable-webrtc-hide-local-ips-with-mdns", false);
@seleniumgists
seleniumgists / file.js
Created July 31, 2020 08:23
generated automatically from #selenium on seleniumhq slack
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>')
@seleniumgists
seleniumgists / file.py
Created July 29, 2020 13:41
generated automatically from #selenium on seleniumhq slack
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
@seleniumgists
seleniumgists / file.m
Created July 29, 2020 12:55
generated automatically from #selenium on seleniumhq slack
{
"value": {
"ready": false,
"message": "Selenium Grid not ready.",
"nodes": []
}
}