Skip to content

Instantly share code, notes, and snippets.

seleniumgists

Block or report user

Report or block seleniumgists

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@seleniumgists
seleniumgists / file.html
Created Jun 18, 2019
generated automatically from #selenium on seleniumhq slack
View file.html
et.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver```
```(net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver)
@seleniumgists
seleniumgists / file.py
Created Jun 18, 2019
generated automatically from #selenium on seleniumhq slack
View file.py
from <http://selenium.webdriver.common.by|selenium.webdriver.common.by> import By
class BuildBy(By):
def __init__(self, by: str, value: str):
<http://self.by|self.by> = by
self.value = value
self.locator = (<http://self.by|self.by>, self.value)
@classmethod
def id(cls, value: str) -> 'BuildBy':
@seleniumgists
seleniumgists / file.html
Created Jun 18, 2019
generated automatically from #selenium on seleniumhq slack
View file.html
await click(link("Block", near("name"))
@seleniumgists
seleniumgists / file.css
Created Jun 18, 2019
generated automatically from #selenium on seleniumhq slack
View file.css
browser.textbox(0).near(browser.label(" XY"))
@seleniumgists
seleniumgists / -.txt
Created Jun 17, 2019
generated automatically from #selenium on seleniumhq slack
View -.txt
WebElement element = driver.findElement(By.id("id_of_element"));
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element);
Thread.sleep(500);
@seleniumgists
seleniumgists / file.css
Created Jun 17, 2019
generated automatically from #selenium on seleniumhq slack
View file.css
ChromeOptions options = new ChromeOptions()
options.addArguments("--lang=de-DE")
@seleniumgists
seleniumgists / file.html
Created Jun 17, 2019
generated automatically from #selenium on seleniumhq slack
View file.html
element.scrollIntoView();``` and wait for element to be clickable/visible
```WebDriverWait wait = new WebDriverWait(webDriver, timeoutInSeconds);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id<locator>));```
```wait.until(ExpectedConditions.elementToBeClickable(By.xpath<locator>));
@seleniumgists
seleniumgists / file.cpp
Created Jun 14, 2019
generated automatically from #selenium on seleniumhq slack
View file.cpp
viewAccount(selenium.testcases.ViewMyAccountProfileIT) Time elapsed: 100.156 sec <<< ERROR!
org.openqa.selenium.WebDriverException:
Session [null] not available and is not among the last 1000 terminated sessions.
Active sessions are[ext. key d61e59e7f52899ea6c8541981c9c6ceb, ext. key fb06a9587c029142d293b8ba0b8c78ea, ext. key 8c1d806ac0e3b2fa2e90772a4ec04c42, ext. key f052e7d33c5b44376e0b48355dc1c81b, ext. key 948b94c36769a4590bc054b8af1cb816, ext. key ad88b446bda01c055cc882cb212719b4, ext. key 91c5bcd73a05afdc885684080cf286c3, ext. key e3ef912c181a53e4922aaccb65fb4d9b]
Command duration or timeout: 21 milliseconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'Lucass-MacBook-Pro.local', ip: '192.168.200.62', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.2', java.version: '1.8.0_191'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{capabilities={networkConnectionEnabled=false, chrome={chr
@seleniumgists
seleniumgists / file.m
Created Jun 14, 2019
generated automatically from #selenium on seleniumhq slack
View file.m
 selenium-side-runner echo.side --timeout 3000 --debug --params="input='wat'"
debug: {
capabilities: { browserName: 'chrome' },
params: { input: 'wat' },
runId: '58dff549e7d2cd1af370883d64b431e1',
path: '/usr/local/lib/node_modules/',
server: undefined,
timeout: 3000,
baseUrl: undefined,
@seleniumgists
seleniumgists / -.txt
Created Jun 14, 2019
generated automatically from #selenium on seleniumhq slack
View -.txt
###Code file named foobar.py:
import time
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://github.com/robotframework/SeleniumLibrary')
driver.set_window_position(0, 0)
#hangs on this line
You can’t perform that action at this time.