Skip to content

Instantly share code, notes, and snippets.

View seleniumgists's full-sized avatar

seleniumgists

View GitHub Profile
@seleniumgists
seleniumgists / file.m
Created February 28, 2018 04:32
generated automatically from #selenium on seleniumhq slack
{
"//javascript/atoms:atoms-chrome" : {
"buck.type" : "java_test"
}
}
go aborted!
JSON::ParserError: A JSON text must at least contain two octets!
json/ext/Parser.java:175:in `initialize'
json/ext/Parser.java:151:in `new'
@seleniumgists
seleniumgists / -.java
Created February 28, 2018 12:15
generated automatically from #selenium on seleniumhq slack
Actions action = new Actions(webdriver);
WebElement we = webdriver.findElement(By.xpath("XXX"));
action.moveToElement(we).moveToElement(webdriver.findElement(By.xpath("XXX"))).click().build().perform();
@seleniumgists
seleniumgists / file.m
Created February 28, 2018 20:15
generated automatically from #selenium on seleniumhq slack
{
"//javascript/atoms:atoms-chrome" : {
"buck.type" : "java_test"
}
}
go aborted!
JSON::ParserError: A JSON text must at least contain two octets!
json/ext/Parser.java:175:in `initialize'
json/ext/Parser.java:151:in `new'
@seleniumgists
seleniumgists / file.m
Created February 28, 2018 20:23
generated automatically from #selenium on seleniumhq slack
Buck.buck_cmd('query', [short, '--output-attributes', 'buck.type']) do |output|
puts "\n\nDEBUG!\n"
puts output
puts "\nend of debug\n\n"
hash = JSON.parse(output)
@seleniumgists
seleniumgists / file.m
Created February 28, 2018 23:22
generated automatically from #selenium on seleniumhq slack
rescue in block in connect': Failed to open TCP connection to 127.0.0.1:9515 (Connection refused - connect(2) for "127.0.0.1" port 9515) (Errno::ECONNREFUSED)
@seleniumgists
seleniumgists / file.html
Created March 1, 2018 04:02
generated automatically from #selenium on seleniumhq slack
import time
from selenium import webdriver
user = "<mailto:[email protected]|[email protected]>"
pwd = "abc"
driverpath="C:/cromedriver/chromedriver.exe"
driver = webdriver.Chrome(driverpath)
driver.get("<https://www.domain.com>")
print("URL Found")
variable = "<https://www.domain.com/user>"
@seleniumgists
seleniumgists / file.html
Created March 1, 2018 05:18
generated automatically from #selenium on seleniumhq slack
import time
from selenium import webdriver
user = "<mailto:[email protected]|[email protected]>"
pwd = "abc"
driverpath="C:/cromedriver/chromedriver.exe"
driver = webdriver.Chrome(driverpath)
driver.get("<https://www.domain.com>")
print("URL Found")
variable = "<https://www.domain.com/user>"
@seleniumgists
seleniumgists / file.m
Created March 1, 2018 08:35
generated automatically from #selenium on seleniumhq slack
09:25:42.331 WARN - Capability {browserstack.local=true, browserstack.localIdentifier=zalenium, acceptSslCerts=true, browserstack.video=true, se:CONFIG_UUID=9bd3cbc7-5f1b-4f94-80e3-a6ab88b10b9b, os_version=7.0, javascriptEnabled=true, real_mobile=true, zal:name=pytest android, device=Samsung Galaxy S8} does no contain browserName key.
@seleniumgists
seleniumgists / file.m
Created March 1, 2018 14:19
generated automatically from #selenium on seleniumhq slack
Selenium::WebDriver::Error::UnknownError: com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimiter;
@seleniumgists
seleniumgists / file.py
Created March 1, 2018 14:21
generated automatically from #selenium on seleniumhq slack
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(
app,
browser: :remote,
url: ENV['hub_url'],
desired_capabilities: capabilities,
http_client: remote_driver_browser_timeout,
)
end