Skip to content

Commit ce6a8d6

Browse files
committed
Update examples
1 parent e25ddb7 commit ce6a8d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/hack_the_planet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def test_all_your_base_are_belong_to_us(self):
106106
self.set_text_content('nav a[data-text="Month"]', "BELONG")
107107
self.set_text_content('nav a[data-text="Year"]', "TO")
108108
self.set_text_content('nav a[data-text="Infinity"]', "US")
109+
self.click_if_visible('button[id*="sponsorship-close-trigger"]')
109110
self.set_text_content('aside a[class*="tful"]', aybabtu)
110111
self.set_text_content('aside a[aria-label="Create new account"]', ayb)
111112
self.set_text_content('aside a[aria-label="Log in"]', abtu)
@@ -117,8 +118,6 @@ def test_all_your_base_are_belong_to_us(self):
117118
self.set_text_content(".profile-preview-card button", "SeleniumBase")
118119
if self.is_element_visible('h2 a[href*="simonh"]'):
119120
self.set_text_content('h2 a[href*="simonh"]', aybabtu)
120-
self.type('input[name="q"]', aybabtu)
121-
self.highlight('input[name="q"]', loops=4, scroll=False)
122121
self.highlight('[aria-label="Primary sidebar"] div div', scroll=False)
123122
self.highlight('nav a[data-text="Relevant"]', loops=1, scroll=False)
124123
self.highlight('nav a[data-text="Latest"]', loops=1, scroll=False)
@@ -129,6 +128,7 @@ def test_all_your_base_are_belong_to_us(self):
129128
self.highlight('nav a[data-text="Infinity"]', loops=3, scroll=False)
130129
if self.is_element_visible('h2 a[href*="simonh"]'):
131130
self.highlight('h2 a[href*="simonh"]', loops=7, scroll=False)
131+
self.highlight("section.crayons-card", loops=7, scroll=False)
132132

133133
self.open("https://azure.microsoft.com/en-us/services/playfab/")
134134
self.remove_elements('div[role="dialog"]')

examples/raw_order_tickets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
with SB(uc=True, test=True, ad_block_on=True) as sb:
44
url = "https://www.thaiticketmajor.com/concert/"
5-
sb.driver.uc_open_with_reconnect(url, 5.5)
6-
sb.driver.uc_click("button.btn-signin", 4)
5+
sb.driver.uc_open_with_reconnect(url, 6.111)
6+
sb.driver.uc_click("button.btn-signin", 4.1)
77
sb.switch_to_frame('iframe[title*="Cloudflare"]')
88
sb.assert_element("div#success svg#success-icon")
99
sb.switch_to_default_content()

0 commit comments

Comments
 (0)