Skip to content

Commit 25668be

Browse files
committed
Update examples
1 parent ecc253b commit 25668be

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

examples/hack_the_planet.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ def test_all_your_base_are_belong_to_us(self):
131131
self.highlight("section.crayons-card", loops=7, scroll=False)
132132

133133
self.open("https://azure.microsoft.com/en-us/services/playfab/")
134-
self.remove_elements('div[role="dialog"]')
135134
self.set_text_content("h1", aybabtu)
136135
self.set_text_content('a[aria-label*="Try Azure"]', ayb)
137136
self.set_text_content('a[aria-label*="Sign in to"]', abtu)
137+
self.remove_elements('div[role="dialog"]')
138+
self.remove_elements('[aria-label*="Microsoft Survey"]')
138139
self.highlight("h1", loops=6, scroll=False)
139140
self.highlight('a[aria-label*="Try Azure"]', loops=4, scroll=False)
140141
self.highlight('a[aria-label*="Sign in to"]', loops=6, scroll=False)
@@ -308,15 +309,6 @@ def test_all_your_base_are_belong_to_us(self):
308309
self.highlight("h1", loops=6, scroll=False)
309310
self.highlight("input#search", loops=8, scroll=False)
310311

311-
self.open("https://www.atlassian.com/software/jira")
312-
self.set_text_content('a[href*="jira/pricing"]', ayb)
313-
self.set_text_content('a[href*="jira/enterprise"]', abtu)
314-
self.set_text_content('a[href="/software/jira/features"]', "")
315-
self.set_text_content("h1", aybabtu)
316-
self.highlight('a[href*="jira/pricing"]', loops=5, scroll=False)
317-
self.highlight('a[href*="jira/enterprise"]', loops=6, scroll=False)
318-
self.highlight("h1", loops=8, scroll=False)
319-
320312
self.open("https://status.iboss.com/ibcloud/app/cloudStatus.html")
321313
self.wait_for_element_clickable('div[translate*="cloudStatus"]')
322314
self.set_text_content('div[translate*="cloudStatus"]', ayb)

examples/raw_ahrefs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
sb.uc_open_with_reconnect(url) # The bot-check is later
88
sb.type(input_field, "github.com/seleniumbase/SeleniumBase")
99
sb.reconnect(0.1)
10-
sb.uc_click(submit_button, reconnect_time=4)
10+
sb.uc_click(submit_button, reconnect_time=3.25)
1111
sb.uc_gui_click_captcha()
12-
sb.wait_for_text_not_visible("Checking", timeout=12)
12+
sb.wait_for_text_not_visible("Checking", timeout=11.5)
1313
sb.highlight('p:contains("github.com/seleniumbase/SeleniumBase")')
1414
sb.highlight('a:contains("Top 100 backlinks")')
1515
sb.set_messenger_theme(location="bottom_center")

examples/raw_nopecha.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
with SB(uc=True, test=True) as sb:
44
sb.uc_open_with_reconnect("nopecha.com/demo/turnstile", 3.2)
5-
sb.uc_gui_click_captcha("#example-container0")
5+
if sb.is_element_visible("#example-container0"):
6+
sb.uc_gui_click_captcha("#example-container0")
67
sb.uc_gui_click_captcha("#example-container5")
78
sb.sleep(3)

examples/test_geolocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_geolocation(self):
3939
)
4040
self.open("https://www.openstreetmap.org/")
4141
self.click("span.geolocate")
42-
self.assert_url_contains("48.87645/2.26340")
42+
self.assert_url_contains("48.876450/2.263400")
4343
self.save_screenshot_to_logs()
4444
if self.headed:
4545
self.sleep(4)

0 commit comments

Comments
 (0)