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
| version: '2.2' | |
| services: | |
| zalenium: | |
| image: "dosel/zalenium" | |
| container_name: zalenium | |
| hostname: zalenium | |
| tty: true | |
| privileged: true | |
| volumes: |
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
| ``` | |
| org.openqa.selenium.WebDriverException: java.io.EOFException: End of input at line 1 column 1cannot extract a capabilities from the request: | |
| Command duration or timeout: 754 milliseconds | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
| at java.lang.reflect.Constructor.newInstance(Constructor.java:423) | |
| at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214) | |
| at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166) |
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
| { | |
| capabilities: | |
| { | |
| alwaysMatch: | |
| { | |
| browserName: 'firefox', | |
| platformName: 'macOS 10.13', | |
| browserVersion: 'latest' | |
| sauce: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
| public void simpleChromeTest() throws MalformedURLException { | |
| URL gridUrl = new URL("http://localhost:4444/wd/hub"); | |
| RemoteWebDriver webDriver = new RemoteWebDriver(gridUrl, new ChromeOptions()); | |
| webDriver.get("http://www.google.com/ncr"); | |
| webDriver.findElement(By.name("q")).sendKeys("webdriver", Keys.RETURN); | |
| WebDriverWait webDriverWait = new WebDriverWait(webDriver, Duration.ofSeconds(5)); | |
| webDriverWait.until(ExpectedConditions.titleContains("webdriver")); |
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
| #!/bin/bash | |
| # ------------------------------------- | |
| # Demo: Set PAC Proxy on macOS | |
| # Network service: Ethernet | |
| # Public PAC URL: http://wpad.example.net/wpad.dat | |
| # ------------------------------------- | |
| NETWORK_SERVICE="Ethernet" | |
| PAC_URL="https://gist.github.com/diemol/9ef7fed6e0650953d9100122ed8accc4/raw/22ca0ae270d786dcc57f9ed0c6845015abdd445f/proxy.pac" |
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
| function FindProxyForURL(url, host) { | |
| // Force ONLY www.selenium.dev through a fake (non-existent) proxy | |
| if (dnsDomainIs(host, "www.selenium.dev")) { | |
| return "PROXY 127.0.0.1:9999"; | |
| } | |
| // Everything else works normally | |
| return "DIRECT"; | |
| } |
OlderNewer