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
| EdgeOptions browserOptions = new EdgeOptions(); | |
| browserOptions.setProxy("proxy", "<http://proxy.abc.de:80|proxy.abc.de:80>") |
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
| "loggingPrefs": {"browser": "ALL", "server": "ALL", "client": "ALL", "driver": "ALL", "performance": "ALL", "profiler": "ALL"} |
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
| EdgeOptions browserOptions = new EdgeOptions(); | |
| browserOptions.setProxy("proxy", "<http://proxy.abc.de:80|proxy.abc.de:80>") |
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
| <dependency> | |
| <groupId>org.seleniumhq.selenium</groupId> | |
| <artifactId>selenium-ie-driver</artifactId> | |
| <version>3.11.0</version> | |
| </dependency> |
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
| jvm_flags = [ | |
| "-source", "11", | |
| "-target", "11", | |
| ], |
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
| brew tap bazelbuild/tap | |
| brew install bazelbuild/tap/bazelisk |
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
| WebDriverWait wait = new WebDriverWait(driver,30) | |
| WebElement cardNumberElement = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id='credit-card-number' or @id='braintree_cc_number']"))) |
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
| WebDriverWait wait = new WebDriverWait(driver,30) | |
| WebElement cardNumberElement = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id='header' or @id='header_wrap']"))) |
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
| System.out.println("Connecting to processor."); | |
| ChromeOptions options = new ChromeOptions(); | |
| options.setExperimentalOption("androidPackage", "com.android.chrome"); | |
| System.setProperty("webdriver.chrome.driver", "/data/app/com.android.chrome.apk"); | |
| WebDriver driver = new ChromeDriver(options); | |
| driver.get("<https://9may.mail.ru/restoration/?lang=en>"); | |
| WebElement file = driver.findElement(By.id("file")); | |
| file.sendKeys("value", encoded); | |
| file.submit(); |
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
| private static boolean isInvisible(final WebElement element) { | |
| try { | |
| return !element.isDisplayed(); | |
| } catch (StaleElementReferenceException ignored) { | |
| // We can assume a stale element isn't displayed. | |
| return true; | |
| } | |
| } |