diff --git a/examples/github_test.py b/examples/github_test.py index bb54e3b569c..0b787f37384 100644 --- a/examples/github_test.py +++ b/examples/github_test.py @@ -15,6 +15,6 @@ def test_github(self): self.highlight("div.Layout-sidebar") self.assert_element("div.repository-content") self.assert_text("SeleniumBase", "strong a") - self.click('a[title="seleniumbase"]') + self.js_click('a[title="seleniumbase"]') self.slow_click('td[class*="large"] a[title="fixtures"]') self.assert_element('td[class*="large"] a[title="base_case.py"]') diff --git a/examples/test_download_images.py b/examples/test_download_images.py index ee9372427b7..171bb85823f 100644 --- a/examples/test_download_images.py +++ b/examples/test_download_images.py @@ -6,6 +6,9 @@ class DownloadImages(BaseCase): def test_download_images_directly(self): + if self._multithreaded: + self.open_if_not_url("about:blank") + self.skip("Skipping test in multi-threaded mode.") self.open("seleniumbase.io/examples/chart_maker/ReadMe") img_elements_with_src = self.find_elements("img[src]") unique_src_values = [] @@ -27,7 +30,6 @@ def test_download_images_directly(self): def test_download_images_via_screenshot(self): if self.recorder_mode: self.open("about:blank") - print("Skipping test in Recorder Mode.") self.skip("Skipping test in Recorder Mode.") self.open("seleniumbase.io/error_page/") img_elements_with_src = self.find_elements("img[src]") diff --git a/examples/test_hack_search.py b/examples/test_hack_search.py index a16d8a7925f..c7addc6ebce 100644 --- a/examples/test_hack_search.py +++ b/examples/test_hack_search.py @@ -24,8 +24,8 @@ def test_hack_search(self): self.highlight("h1.b_logo", loops=8) self.highlight_click('[href*="github.com/seleniumbase/SeleniumBase"]') self.highlight_click('[href="/seleniumbase/SeleniumBase"]') - self.highlight_click('a[title="examples"]') - self.assert_text("examples", "#file-name-id-wide") + self.assert_text("SeleniumBase", "strong a") + self.js_click('a[title="examples"]') self.highlight('td[class*="large"] a[title="test_hack_search.py"]') self.click('td[class*="large"] a[title="test_hack_search.py"]') self.assert_text("test_hack_search.py", "#file-name-id-wide") diff --git a/mkdocs_build/requirements.txt b/mkdocs_build/requirements.txt index 8525dba1d96..ec6df90dfd0 100644 --- a/mkdocs_build/requirements.txt +++ b/mkdocs_build/requirements.txt @@ -7,7 +7,7 @@ pipdeptree>=2.13.2 python-dateutil>=2.8.2 Markdown==3.5.2 markdown2==2.4.12 -MarkupSafe==2.1.3 +MarkupSafe==2.1.4 Jinja2==3.1.3 click==8.1.7 ghp-import==2.1.0 @@ -20,7 +20,7 @@ lxml==5.1.0 pyquery==2.0.0 readtime==3.0.0 mkdocs==1.5.3 -mkdocs-material==9.5.4 +mkdocs-material==9.5.5 mkdocs-exclude-search==0.6.6 mkdocs-simple-hooks==0.1.5 mkdocs-material-extensions==1.3.1 diff --git a/requirements.txt b/requirements.txt index 7392461f024..d1ef0b78b46 100755 --- a/requirements.txt +++ b/requirements.txt @@ -28,14 +28,14 @@ trio==0.24.0;python_version>="3.8" trio-websocket==0.11.1 wsproto==1.2.0 selenium==4.11.2;python_version<"3.8" -selenium==4.16.0;python_version>="3.8" +selenium==4.17.2;python_version>="3.8" cssselect==1.2.0 sortedcontainers==2.4.0 fasteners==0.19 execnet==2.0.2 iniconfig==2.0.0 pluggy==1.2.0;python_version<"3.8" -pluggy==1.3.0;python_version>="3.8" +pluggy==1.4.0;python_version>="3.8" py==1.11.0 pytest==7.4.4 pytest-html==2.0.1 diff --git a/seleniumbase/__version__.py b/seleniumbase/__version__.py index c30f7b44354..3fda6a0ead2 100755 --- a/seleniumbase/__version__.py +++ b/seleniumbase/__version__.py @@ -1,2 +1,2 @@ # seleniumbase package -__version__ = "4.22.6" +__version__ = "4.23.0" diff --git a/setup.py b/setup.py index 4bb2b6f1868..f96aabeeba9 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ print("\nERROR! Publishing to PyPI requires Python>=3.9") sys.exit() print("\n*** Checking code health with flake8:\n") - os.system("python -m pip install 'flake8==6.1.0'") + os.system("python -m pip install 'flake8==7.0.0'") flake8_status = os.system("flake8 --exclude=recordings,temp") if flake8_status != 0: print("\nERROR! Fix flake8 issues before publishing to PyPI!\n") @@ -161,14 +161,14 @@ 'trio-websocket==0.11.1', 'wsproto==1.2.0', 'selenium==4.11.2;python_version<"3.8"', - 'selenium==4.16.0;python_version>="3.8"', + 'selenium==4.17.2;python_version>="3.8"', 'cssselect==1.2.0', "sortedcontainers==2.4.0", 'fasteners==0.19', 'execnet==2.0.2', 'iniconfig==2.0.0', 'pluggy==1.2.0;python_version<"3.8"', - 'pluggy==1.3.0;python_version>="3.8"', + 'pluggy==1.4.0;python_version>="3.8"', "py==1.11.0", 'pytest==7.4.4', "pytest-html==2.0.1", # Newer ones had issues @@ -233,7 +233,7 @@ 'pdfminer.six==20221105;python_version<"3.8"', 'pdfminer.six==20231228;python_version>="3.8"', 'cryptography==39.0.2;python_version<"3.9"', - 'cryptography==41.0.7;python_version>="3.9"', + 'cryptography==42.0.0;python_version>="3.9"', 'cffi==1.15.1;python_version<"3.8"', 'cffi==1.16.0;python_version>="3.8"', "pycparser==2.21", @@ -247,7 +247,7 @@ ], # pip install -e .[psutil] "psutil": [ - "psutil==5.9.6", + "psutil==5.9.8", ], # pip install -e .[selenium-stealth] "selenium-stealth": [