This file contains 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
chrome_options = Selenium::WebDriver::Chrome::Options.new | |
experimentalFlags = ['enable-webrtc-hide-local-ips-with-mdns@1'] | |
chromeLocalStatePrefs = { 'browser.enabled_labs_experiments' => experimentalFlags} | |
chrome_options.add_option('localState',chromeLocalStatePrefs) | |
driver = Selenium::WebDriver.for(:chrome, options: chrome_options) | |
driver.get('<chrome://flags/#enable-webrtc-hide-local-ips-with-mdns>') |
This file contains 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
world.js | |
require('chromedriver') | |
const { setWorldConstructor } = require('cucumber') | |
const webDriver = require('selenium-webdriver') | |
const chrome = require('selenium-webdriver/chrome') | |
const chromiumBinary = require('chromium-binary') | |
var { Before, BeforeAll, AfterAll, After } = require('cucumber') | |
let driver |
This file contains 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
<documentRoot> | |
<!-- Test data --> | |
<?value="2"?> | |
<parent name="data" > | |
<child id="1" name="alpha" >Some Text</child> | |
<child id="2" name="beta" > | |
<grandchild id="2.1" name="beta-alpha" ></grandchild> | |
<grandchild id="2.2" name="beta-beta" ></grandchild> | |
</child> | |
<pet name="tigger" type="cat" > |
This file contains 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
/home/user/repo/selenium/javascript/node/selenium-webdriver/devtools/generator/protocol-dts-generator.js:3: ERROR - [JSC_GOOG_MODULE_REFERENCES_THIS] The body of a goog.module cannot reference this. | |
(this && this.__spreadArrays) || | |
^^^^ | |
/home/user/repo/selenium/javascript/node/selenium-webdriver/devtools/generator/protocol-dts-generator.js:3: ERROR - [JSC_GOOG_MODULE_REFERENCES_THIS] The body of a goog.module cannot reference this. | |
(this && this.__spreadArrays) || | |
^^^^ | |
2 error(s), 195 warning(s), 92.5% typed | |
Compilation failed; aborting... |
This file contains 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
using DevToolsSession session = driver.CreateDevToolsSession(); | |
await session.Start(); | |
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V87.DevToolsSessionDomains>(); | |
await domains.Accessibility.Enable(); |
This file contains 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
<dependency> | |
<groupId>io.github.bonigarcia</groupId> | |
<artifactId>webdrivermanager</artifactId> | |
<version>4.2.2</version> | |
<scope>test</scope> | |
</dependency> |
This file contains 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
if ((this as ISupportsLogs) != null) | |
{ | |
// Only add the legacy log commands if the driver supports | |
// retrieving the logs via the extension end points. | |
this.CommandExecutor.CommandInfoRepository.TryAddCommand(DriverCommand.GetAvailableLogTypes, new CommandInfo(CommandInfo.GetCommand, "/session/{sessionId}/se/log/types")); | |
this.CommandExecutor.CommandInfoRepository.TryAddCommand(DriverCommand.GetLog, new CommandInfo(CommandInfo.PostCommand, "/session/{sessionId}/se/log")); | |
} |
This file contains 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
{ | |
"lastStarted": "1970-01-01T00:00:00Z", | |
"stereotype": { | |
"browserName": "chrome" | |
}, |
This file contains 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
Scrolled to bottom we have | |
# iPhone 8 iOS 13 | |
@component.heading.native.rect | |
=> #<struct Selenium::WebDriver::Rectangle x=17, y=1, width=320, height=48> | |
# Chrome Linux | |
@component.heading.native.rect | |
=> #<struct Selenium::WebDriver::Rectangle x=17, y=1086, width=750, height=48> |
This file contains 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
Does anyone know, how to resolve the following behavior - Chrome is launched but no further action is performed by driver even maximizing the browser and the error "Chrome not reachable" is thrown. |
NewerOlder