Skip to content

Commit 43b11b2

Browse files
authored
Merge pull request #2824 from seleniumbase/update-a-method-and-refresh-dependencies
Update a method and refresh dependencies
2 parents 83a51d0 + 087f303 commit 43b11b2

File tree

7 files changed

+29
-21
lines changed

7 files changed

+29
-21
lines changed

examples/hack_the_planet.py

+2-2
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

+2-2
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()

mkdocs_build/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
regex>=2024.5.15
55
pymdown-extensions>=10.8.1
6-
pipdeptree>=2.20.0
6+
pipdeptree>=2.22.0
77
python-dateutil>=2.8.2
88
Markdown==3.6
99
markdown2==2.4.13
1010
MarkupSafe==2.1.5
1111
Jinja2==3.1.4
1212
click==8.1.7
1313
ghp-import==2.1.0
14-
watchdog==4.0.0
14+
watchdog==4.0.1
1515
cairocffi==1.7.0
1616
pathspec==0.12.1
1717
Babel==2.15.0
@@ -20,7 +20,7 @@ lxml==5.2.2
2020
pyquery==2.0.0
2121
readtime==3.0.0
2222
mkdocs==1.6.0
23-
mkdocs-material==9.5.23
23+
mkdocs-material==9.5.25
2424
mkdocs-exclude-search==0.6.6
2525
mkdocs-simple-hooks==0.1.5
2626
mkdocs-material-extensions==1.3.1

requirements.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
pip>=24.0
22
packaging>=24.0
33
setuptools>=68.0.0;python_version<"3.8"
4-
setuptools>=69.5.1;python_version>="3.8"
4+
setuptools>=70.0.0;python_version>="3.8"
55
wheel>=0.42.0;python_version<"3.8"
66
wheel>=0.43.0;python_version>="3.8"
77
attrs>=23.2.0
8-
certifi>=2024.2.2
8+
certifi>=2024.6.2
99
exceptiongroup>=1.2.1
1010
filelock>=3.12.2;python_version<"3.8"
1111
filelock>=3.14.0;python_version>="3.8"
1212
platformdirs>=4.0.0;python_version<"3.8"
1313
platformdirs>=4.2.2;python_version>="3.8"
14-
typing-extensions>=4.11.0;python_version>="3.8"
14+
typing-extensions>=4.12.1;python_version>="3.8"
1515
parse>=1.20.1
1616
parse-type>=0.6.2
1717
pyyaml>=6.0.1
@@ -42,7 +42,7 @@ pluggy==1.2.0;python_version<"3.8"
4242
pluggy==1.5.0;python_version>="3.8"
4343
py==1.11.0
4444
pytest==7.4.4;python_version<"3.8"
45-
pytest==8.2.0;python_version>="3.8"
45+
pytest==8.2.1;python_version>="3.8"
4646
pytest-html==2.0.1
4747
pytest-metadata==3.0.0;python_version<"3.8"
4848
pytest-metadata==3.1.1;python_version>="3.8"
@@ -73,7 +73,7 @@ rich==13.7.1
7373
# ("pip install -r requirements.txt" also installs this, but "pip install -e ." won't.)
7474

7575
coverage==7.2.7;python_version<"3.8"
76-
coverage>=7.5.1;python_version>="3.8"
76+
coverage>=7.5.3;python_version>="3.8"
7777
pytest-cov==4.1.0;python_version<"3.8"
7878
pytest-cov>=5.0.0;python_version>="3.8"
7979
flake8==5.0.4;python_version<"3.9"

seleniumbase/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.27.0"
2+
__version__ = "4.27.1"

seleniumbase/fixtures/base_case.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -3728,7 +3728,15 @@ def open_new_window(self, switch_to=True):
37283728
"""Opens a new browser tab/window and switches to it by default."""
37293729
self.wait_for_ready_state_complete()
37303730
if switch_to:
3731-
self.driver.switch_to.new_window("tab")
3731+
if self.undetectable:
3732+
self.driver.execute_script("window.open('data:,');")
3733+
self.switch_to_newest_window()
3734+
else:
3735+
try:
3736+
self.driver.switch_to.new_window("tab")
3737+
except Exception:
3738+
self.driver.execute_script("window.open('');")
3739+
self.switch_to_newest_window()
37323740
else:
37333741
self.driver.execute_script("window.open('');")
37343742
time.sleep(0.01)

setup.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,17 @@
149149
'pip>=24.0',
150150
'packaging>=24.0',
151151
'setuptools>=68.0.0;python_version<"3.8"',
152-
'setuptools>=69.5.1;python_version>="3.8"',
152+
'setuptools>=70.0.0;python_version>="3.8"',
153153
'wheel>=0.42.0;python_version<"3.8"',
154154
'wheel>=0.43.0;python_version>="3.8"',
155155
'attrs>=23.2.0',
156-
"certifi>=2024.2.2",
156+
"certifi>=2024.6.2",
157157
"exceptiongroup>=1.2.1",
158158
'filelock>=3.12.2;python_version<"3.8"',
159159
'filelock>=3.14.0;python_version>="3.8"',
160160
'platformdirs>=4.0.0;python_version<"3.8"',
161161
'platformdirs>=4.2.2;python_version>="3.8"',
162-
'typing-extensions>=4.11.0;python_version>="3.8"',
162+
'typing-extensions>=4.12.1;python_version>="3.8"',
163163
'parse>=1.20.1',
164164
'parse-type>=0.6.2',
165165
'pyyaml>=6.0.1',
@@ -188,9 +188,9 @@
188188
'iniconfig==2.0.0',
189189
'pluggy==1.2.0;python_version<"3.8"',
190190
'pluggy==1.5.0;python_version>="3.8"',
191-
"py==1.11.0",
191+
"py==1.11.0", # Needed by pytest-html
192192
'pytest==7.4.4;python_version<"3.8"',
193-
'pytest==8.2.0;python_version>="3.8"',
193+
'pytest==8.2.1;python_version>="3.8"',
194194
"pytest-html==2.0.1", # Newer ones had issues
195195
'pytest-metadata==3.0.0;python_version<"3.8"',
196196
'pytest-metadata==3.1.1;python_version>="3.8"',
@@ -230,7 +230,7 @@
230230
# Usage: coverage run -m pytest; coverage html; coverage report
231231
"coverage": [
232232
'coverage==7.2.7;python_version<"3.8"',
233-
'coverage>=7.5.1;python_version>="3.8"',
233+
'coverage>=7.5.3;python_version>="3.8"',
234234
'pytest-cov==4.1.0;python_version<"3.8"',
235235
'pytest-cov>=5.0.0;python_version>="3.8"',
236236
],
@@ -292,7 +292,7 @@
292292
"selenium-wire": [
293293
'selenium-wire==5.1.0',
294294
'Brotli==1.1.0',
295-
'blinker==1.7.0',
295+
'blinker==1.7.0', # Newer ones had issues
296296
'h2==4.1.0',
297297
'hpack==4.0.0',
298298
'hyperframe==6.0.1',

0 commit comments

Comments
 (0)