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
{ | |
capabilities: | |
{ | |
alwaysMatch: | |
{ | |
browserName: 'firefox', | |
platformName: 'macOS 10.13', | |
browserVersion: 'latest' | |
sauce:options: | |
{ |
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
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 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 | |
# download and install latest chromedriver for linux or mac. | |
# required for selenium to drive a Chrome browser. | |
install_dir="/usr/local/bin" | |
version=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE) | |
if [[ $(uname) == "Darwin" ]]; then | |
url=https://chromedriver.storage.googleapis.com/$version/chromedriver_mac64.zip | |
elif [[ $(uname) == "Linux" ]]; then | |
url=https://chromedriver.storage.googleapis.com/$version/chromedriver_linux64.zip |
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
#!/bin/bash | |
#docker stop $(docker ps -a --quiet) && docker rm $(docker ps -a --quiet) | |
for i in {0..10}; do | |
echo item: $i | |
hostIp=10.161.128.80 | |
echo hostIp: $hostIp | |
nodePort=$((40000 + i)) | |
echo nodePort: $nodePort | |
noVncPort=$((50000 + i)) | |
echo noVncPort: $noVncPort |
OlderNewer