Skip to content

Commit 6b748ba

Browse files
committed
Update examples
1 parent 2051fea commit 6b748ba

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

examples/github_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def test_github(self):
1010
self.skip("Unsupported mode for this test.")
1111
self.open("https://github.com/seleniumbase/SeleniumBase")
1212
self.click_if_visible('[data-action="click:signup-prompt#dismiss"]')
13-
self.highlight("div.Layout-main")
14-
self.highlight("div.Layout-sidebar")
13+
self.highlight('[class*="PageLayout-Content-"][data-width="large"]')
14+
self.highlight('[class*="PageLayout-PaneWrapper"]')
1515
self.assert_element("div.repository-content")
1616
self.assert_text("SeleniumBase", "strong a")
1717
self.js_click('a[title="seleniumbase"]')

examples/proxy_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ def test_proxy(self):
2323
self.highlight("h1")
2424
pop_up = '[role="dialog"] span.cursor-pointer'
2525
self.click_if_visible(pop_up)
26-
self.highlight("#block-summary")
26+
self.highlight("section#summary")
2727
self.click_if_visible(pop_up)
28-
self.highlight("#block-geolocation")
28+
self.highlight("section#geolocation")
2929
self.click_if_visible(pop_up)
3030
self.sleep(2)
3131
print("Displaying Host Info:")
32-
text = self.get_text("#block-summary").split("Hosted domains")[0]
32+
text = self.get_text("#summary").split("Hosted domains")[0]
3333
rows = text.split("\n")
3434
data = []
3535
for row in rows:
3636
if row.strip() != "":
3737
data.append(row.strip())
3838
print("\n".join(data).replace('\n"', ' "'))
3939
print("\nDisplaying GeoLocation Info:")
40-
text = self.get_text("#block-geolocation")
40+
text = self.get_text("#geolocation")
4141
text = text.split("IP Geolocation data")[0]
4242
rows = text.split("\n")
4343
data = []

examples/test_apple_site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_apple_developer_site_webdriver_instructions(self):
1919
self.get_new_driver(browser=self.browser, headless2=True)
2020
self.open("https://developer.apple.com/search/")
2121
title = "Testing with WebDriver in Safari"
22-
self.type('[placeholder*="developer.apple.com"]', title + "\n")
22+
self.type("input#searchField", title + "\n")
2323
self.click("link=%s" % title)
2424
self.assert_element("nav.documentation-nav")
2525
self.assert_text(title, "h1")

examples/test_shadow_dom.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ def test_shadow_dom(self):
5050
" #clearSearch"
5151
)
5252
file_link = (
53-
"downloads-manager::shadow #downloadsList"
54-
" downloads-item::shadow #file-link"
53+
"downloads-manager::shadow downloads-item::shadow #fileLink"
5554
)
5655
remove_button = (
5756
"downloads-manager::shadow #downloadsList"

0 commit comments

Comments
 (0)