Skip to content

Commit 8a2b6fb

Browse files
authored
Merge pull request #1796 from seleniumbase/a-few-updates
A Few Updates
2 parents d640bda + 5667ffb commit 8a2b6fb

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

mkdocs_build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cssselect2==0.7.0
2727
tinycss2==1.2.1
2828
defusedxml==0.7.1
2929
mkdocs==1.4.2
30-
mkdocs-material==9.1.1
30+
mkdocs-material==9.1.2
3131
mkdocs-exclude-search==0.6.5
3232
mkdocs-simple-hooks==0.1.5
3333
mkdocs-material-extensions==1.1.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pytest-metadata==1.11.0;python_version<"3.7"
6767
pytest-metadata==2.0.4;python_version>="3.7"
6868
pytest-ordering==0.6
6969
pytest-rerunfailures==10.3;python_version<"3.7"
70-
pytest-rerunfailures==11.1.1;python_version>="3.7"
70+
pytest-rerunfailures==11.1.2;python_version>="3.7"
7171
pytest-xdist==2.5.0;python_version<"3.7"
7272
pytest-xdist==3.2.0;python_version>="3.7"
7373
parameterized==0.8.1

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.13.9"
2+
__version__ = "4.13.10"

seleniumbase/console_scripts/sb_commander.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,21 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
276276
chk.pack()
277277

278278
tk.Label(root, text="").pack()
279-
plural = "s"
280-
if len(files) == 1:
281-
plural = ""
282279
run_display = (
283-
"Select from %s rows (%s file%s with %s tests): "
280+
"Select from %s rows (%s files with %s tests): "
284281
"(All tests will run if none are selected)"
285-
% (len(tests), len(files), plural, len(solo_tests))
282+
% (len(tests), len(files), len(solo_tests))
286283
)
287284
if len(solo_tests) == 1:
288285
run_display = "Only ONE TEST was found and will be run:"
289286
tests = solo_tests
287+
elif len(files) == 1:
288+
run_display = (
289+
"Select from %s tests: "
290+
"(All tests will run if none are selected)"
291+
% (len(solo_tests))
292+
)
293+
tests = solo_tests
290294
tk.Label(root, text=run_display, fg="blue").pack()
291295
text_area = ScrolledText(
292296
root, width=100, height=12, wrap="word", state=tk.DISABLED

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13647,7 +13647,11 @@ def setUp(self, masterqa_mode=False):
1364713647
self.driver.close()
1364813648
self.switch_to_window(0)
1364913649
if self._crumbs:
13650-
self.driver.delete_all_cookies()
13650+
self.wait_for_ready_state_complete()
13651+
try:
13652+
self.driver.delete_all_cookies()
13653+
except Exception:
13654+
pass
1365113655
except Exception:
1365213656
pass
1365313657
if self._reuse_session and sb_config.shared_driver and has_url:

seleniumbase/fixtures/page_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ def _get_unique_links(page_url, soup):
190190
if len(simple_url.split("/")) > 1:
191191
f_b_url = full_base_url + "/" + simple_url.split("/")[1]
192192
link = f_b_url + "/" + link
193+
elif link.startswith('"') and link.endswith('"') and len(link) > 4:
194+
link = link[1:-1]
193195
else:
194196
pass
195197
unique_links.append(link)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
'pytest-metadata==2.0.4;python_version>="3.7"',
192192
"pytest-ordering==0.6",
193193
'pytest-rerunfailures==10.3;python_version<"3.7"',
194-
'pytest-rerunfailures==11.1.1;python_version>="3.7"',
194+
'pytest-rerunfailures==11.1.2;python_version>="3.7"',
195195
'pytest-xdist==2.5.0;python_version<"3.7"',
196196
'pytest-xdist==3.2.0;python_version>="3.7"',
197197
"parameterized==0.8.1",

0 commit comments

Comments
 (0)