Skip to content

Instantly share code, notes, and snippets.

View seleniumgists's full-sized avatar

seleniumgists

View GitHub Profile
@seleniumgists
seleniumgists / file.rb
Created June 25, 2020 10:10
generated automatically from #selenium on seleniumhq slack
def drag_by(ele, right_by, down_by)
selenium_instance.drag_and_drop_by(ele.native, right_by, down_by).perform
end
@seleniumgists
seleniumgists / file.m
Created June 24, 2020 21:51
generated automatically from #selenium on seleniumhq slack
"geckodriver": "^1.19.1"
"selenium-webdriver": "^4.0.0-alpha.7",```
And firefox version on the grid is:
```v:76.0.1
@seleniumgists
seleniumgists / file.py
Created June 24, 2020 21:44
generated automatically from #selenium on seleniumhq slack
options.addArguments("--headless");
driver = await new Builder().forBrowser(BROWSER).setFirefoxOptions(options).usingServer('<http://seleniumgrid/wd/hub').build()>;
@seleniumgists
seleniumgists / file.html
Created June 19, 2020 22:02
generated automatically from #selenium on seleniumhq slack
driver.find_element(id: 'element1').div(id: 'element2').click
@seleniumgists
seleniumgists / file.m
Created June 18, 2020 23:40
generated automatically from #selenium on seleniumhq slack
Emitted | step.passed (I click {"xpath":"//div[contains(text(), 'Logout')]"})
Emitted | step.finish (I click {"xpath":"//div[contains(text(), 'Logout')]"})
Emitted | step.start (I wait 5)
Object: isLoggedOut
I wait 5
Emitted | step.passed (I wait 5)
Emitted | step.finish (I wait 5)
Emitted | step.start (I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>")
I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>"
[1] Error | invalid session id: invalid session id
@seleniumgists
seleniumgists / file.html
Created June 18, 2020 11:04
generated automatically from #selenium on seleniumhq slack
mypage
.switchtoFrame("<frameID>")
.dosomething();
@seleniumgists
seleniumgists / file.html
Created June 18, 2020 11:04
generated automatically from #selenium on seleniumhq slack
mypage
.switchtoFrame("<frameID>")
.dosomething();
@seleniumgists
seleniumgists / file.css
Created June 18, 2020 03:41
generated automatically from #selenium on seleniumhq slack
info_text = self.driver.find_element_by_xpath("/html/body/div[4]/main/div/div/div[2]/div[1]/div/ul/li[1]/div[2]/span[4]").get_attribute("title")
print(info_text)
@seleniumgists
seleniumgists / file.sh
Created June 18, 2020 02:01
generated automatically from #selenium on seleniumhq slack
print(element).text
@seleniumgists
seleniumgists / file.html
Created June 18, 2020 02:00
generated automatically from #selenium on seleniumhq slack
<span class="no-wrap " xpath="1">
Updated <relative-time datetime="2020-06-16T21:58:23Z" class="no-wrap" title="Jun 16, 2020, 2:58 PM PDT">yesterday</relative-time>
</span>