Update examples

This commit is contained in:
Michael Mintz 2020-08-14 02:07:57 -04:00
parent b808aa7c1f
commit ead5bb1e2d
2 changed files with 5 additions and 4 deletions

View File

@ -20,6 +20,7 @@ class GitHubTests(BaseCase):
self.open("https://github.com/")
self.type("input.header-search-input", "SeleniumBase\n")
self.slow_click('a[href="/seleniumbase/SeleniumBase"]')
self.click_if_visible('[data-action="click:signup-prompt#dismiss"]')
self.assert_element("div.repository-content")
self.assert_text("SeleniumBase", "h1")
self.slow_click('a[title="seleniumbase"]')

View File

@ -9,10 +9,10 @@ class NthChildSelectorTests(BaseCase):
self.demo_mode = True
self.highlight(tbody)
self.post_message("Part 1: Assert text in given row.")
self.assert_text("teal", "tr:nth-child(2)")
self.assert_text("aqua", "tr:nth-child(4)")
self.assert_text("mint", "tr:nth-child(14)")
self.assert_text("jade", "tr:nth-child(36)")
self.assert_text("teal", tbody + " tr:nth-child(2)")
self.assert_text("aqua", tbody + " tr:nth-child(4)")
self.assert_text("mint", tbody + " tr:nth-child(14)")
self.assert_text("jade", tbody + " tr:nth-child(36)")
soup = self.get_beautiful_soup(self.get_page_source())
self.post_message("Part 2: Find row with given text.")
self.locate_first_row_with_color("rust", tbody, soup)