Skip to content

Instantly share code, notes, and snippets.

View seleniumgists's full-sized avatar

seleniumgists

View GitHub Profile
@seleniumgists
seleniumgists / file.html
Created June 17, 2020 09:41
generated automatically from #selenium on seleniumhq slack
org.openqa.selenium.WebDriverException: Reached error page: about:neterror?e=dnsNotFound&u=http%3A
@seleniumgists
seleniumgists / file.html
Created June 11, 2020 03:53
generated automatically from #selenium on seleniumhq slack
content = driver.find_element_by_css_selector('div._pac')
for i in content:
i.get_attribute('text')
@seleniumgists
seleniumgists / file.html
Created June 11, 2020 03:53
generated automatically from #selenium on seleniumhq slack
<div class="_pac" data-bt="{&quot;ct&quot;:&quot;sub_headers&quot;}"><a href="<https://www.facebook.com/pages/%EB%B6%81%EC%9D%BC%EC%97%AC%EC%9E%90%EA%B3%A0%EB%93%B1%ED%95%99%EA%B5%90/110634532291267>">북일여자고등학교</a><div class="_1my"></div></div>
@seleniumgists
seleniumgists / file.m
Created June 10, 2020 14:19
generated automatically from #selenium on seleniumhq slack
for {
elems, err := wd.FindElements(selenium.ByXPATH, "//fuse-splash-screen[contains(@style, 'visibility: hidden')]")
if err != nil {
println(err.Error())
}
if len(elems) == 1 {
break
}
time.Sleep(1 * time.Second)
}
@seleniumgists
seleniumgists / test.random.email.side
Created June 10, 2020 13:38
generated automatically from #selenium on seleniumhq slack
{
"id": "fa246eb4-2ae6-4823-8cb7-b26e69e429aa",
"version": "2.0",
"name": "tet",
"url": "http://www.software-testing-tutorials-automation.com",
"tests": [{
"id": "1faa82b4-093e-4067-b832-9303a416f734",
"name": "TEST EMIAL",
"commands": [{
"id": "76bb1099-24f8-447a-8d4e-5325511777b3",
@seleniumgists
seleniumgists / file.m
Created June 9, 2020 12:26
generated automatically from #selenium on seleniumhq slack
NAME READY STATUS RESTARTS AGE
selenium-selenium-chrome-7df7c4c787-frt7q 1/1 Running 0 19d
selenium-selenium-hub-f9c975d7d-jhmf2 1/1 Running 0 19d
@seleniumgists
seleniumgists / file.cpp
Created June 9, 2020 03:13
generated automatically from #selenium on seleniumhq slack
➜ selenium4 docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
selenium/standalone-opera local 6aa509c86519 45 minutes ago 1.01GB
selenium/standalone-firefox local 96dcf9a1bd7c 45 minutes ago 879MB
selenium/standalone-chrome local 2a03a7df55ba 45 minutes ago 946MB
selenium/node-opera local 88edd6180578 45 minutes ago 1.01GB
selenium/node-firefox local a6b987eb01f2 46 minutes ago 879MB
selenium/node-chrome local f8dbba18c992 48 minutes ago 946MB
selenium/node-base local 1bc6b577852f 48 minutes ago 581MB
selenium/sessions local c0a19de82514 51 minutes ago 268MB
@seleniumgists
seleniumgists / file.css
Created June 7, 2020 19:31
generated automatically from #selenium on seleniumhq slack
driver.execute_script("document.body.style.zoom='zoom %'")
@seleniumgists
seleniumgists / file.rb
Created June 5, 2020 20:47
generated automatically from #selenium on seleniumhq slack
String name = "FooBaz";
driver.findElement(By.linktext(name)).click()
@seleniumgists
seleniumgists / lab.side
Created June 5, 2020 07:10
generated automatically from #selenium on seleniumhq slack
{
"id": "3ccedcd1-ed2b-4419-be70-ad56c8bca497",
"version": "2.0",
"name": "lab",
"url": "https://us.yahoo.com",
"tests": [{
"id": "ca3dabd6-4f4d-4332-918e-c84af3da151b",
"name": "Untitled",
"commands": []
}, {