Skip to content

Instantly share code, notes, and snippets.

View seleniumgists's full-sized avatar

seleniumgists

View GitHub Profile
@seleniumgists
seleniumgists / file.sh
Created May 14, 2020 17:57
generated automatically from #selenium on seleniumhq slack
EdgeOptions browserOptions = new EdgeOptions();
browserOptions.setProxy("proxy", "<http://proxy.abc.de:80|proxy.abc.de:80>")
@seleniumgists
seleniumgists / file.py
Created May 14, 2020 12:06
generated automatically from #selenium on seleniumhq slack
"loggingPrefs": {"browser": "ALL", "server": "ALL", "client": "ALL", "driver": "ALL", "performance": "ALL", "profiler": "ALL"}
@seleniumgists
seleniumgists / file.sh
Created May 14, 2020 10:38
generated automatically from #selenium on seleniumhq slack
EdgeOptions browserOptions = new EdgeOptions();
browserOptions.setProxy("proxy", "<http://proxy.abc.de:80|proxy.abc.de:80>")
@seleniumgists
seleniumgists / file.css
Created May 13, 2020 14:03
generated automatically from #selenium on seleniumhq slack
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-ie-driver</artifactId>
<version>3.11.0</version>
</dependency>
@seleniumgists
seleniumgists / file.m
Created May 12, 2020 18:10
generated automatically from #selenium on seleniumhq slack
jvm_flags = [
"-source", "11",
"-target", "11",
],
@seleniumgists
seleniumgists / file.sh
Created May 12, 2020 17:19
generated automatically from #selenium on seleniumhq slack
brew tap bazelbuild/tap
brew install bazelbuild/tap/bazelisk
@seleniumgists
seleniumgists / file.sh
Created May 12, 2020 13:49
generated automatically from #selenium on seleniumhq slack
WebDriverWait wait = new WebDriverWait(driver,30)
WebElement cardNumberElement = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id='credit-card-number' or @id='braintree_cc_number']")))
@seleniumgists
seleniumgists / file.html
Created May 12, 2020 13:48
generated automatically from #selenium on seleniumhq slack
WebDriverWait wait = new WebDriverWait(driver,30)
WebElement cardNumberElement = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id='header' or @id='header_wrap']")))
@seleniumgists
seleniumgists / file.css
Created May 11, 2020 16:18
generated automatically from #selenium on seleniumhq slack
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();
@seleniumgists
seleniumgists / file.cpp
Created May 11, 2020 15:59
generated automatically from #selenium on seleniumhq slack
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;
}
}