20 lines
877 B
Python
20 lines
877 B
Python
from seleniumbase import BaseCase
|
|
BaseCase.main(__name__, __file__)
|
|
|
|
|
|
class GitHubTests(BaseCase):
|
|
def test_github(self):
|
|
if self.headless or self.page_load_strategy == "none":
|
|
self.open_if_not_url("about:blank")
|
|
print("\n Unsupported mode for this test.")
|
|
self.skip("Unsupported mode for this test.")
|
|
self.open("https://github.com/seleniumbase/SeleniumBase")
|
|
self.click_if_visible('[data-action="click:signup-prompt#dismiss"]')
|
|
self.highlight("div.Layout-main")
|
|
self.highlight("div.Layout-sidebar")
|
|
self.assert_element("div.repository-content")
|
|
self.assert_text("SeleniumBase", "strong a")
|
|
self.js_click('a[title="seleniumbase"]')
|
|
self.slow_click('td[class*="large"] a[title="fixtures"]')
|
|
self.assert_element('td[class*="large"] a[title="base_case.py"]')
|