Skip to content

Commit d4167b2

Browse files
authored
Merge pull request #706 from seleniumbase/update-python-dependencies
Update Python dependencies
2 parents 733b28f + 23a0784 commit d4167b2

File tree

8 files changed

+39
-41
lines changed

8 files changed

+39
-41
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Here are some useful command-line options that come with ``pytest``:
294294
-q # Quiet mode. Print fewer details in the console output when running tests.
295295
-x # Stop running the tests after the first failure is reached.
296296
--html=report.html # Creates a detailed pytest-html report after tests finish.
297-
--collect-only # Show what tests would get run without actually running them.
297+
--collect-only | --co # Show what tests would get run. (Without running them)
298298
-n=NUM # Multithread the tests using that many threads. (Speed up test runs!)
299299
-s # See print statements. (Should be on by default with pytest.ini present.)
300300
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
@@ -813,7 +813,6 @@ Additionally, you can use the ``@retry_on_exception()`` decorator to specificall
813813
<div><b>If you like us, give us a star!</b></div>
814814
<div><a href="https://github.com/seleniumbase/SeleniumBase/stargazers"><img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg?color=888CFA" title="Stargazers" /></a></div>
815815
</p>
816-
<div><!--for_gh_pages--><iframe src="https://seleniumbase.io" width="95%" height="1100px" title="seleniumbase.io Docs Site"></iframe></div>
817816
<p><div><a href="https://github.com/mdmintz">https://github.com/mdmintz</a></div></p>
818817

819818
<div><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290" /></a></div>

docs/prepare.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ def main(*args, **kwargs):
115115
'title="SeleniumBase" width="20" /> SeleniumBase Docs '
116116
'<img src="https://seleniumbase.io/img/sb_icon.png" '
117117
'title="SeleniumBase" width="20" /></h2>')
118-
if "<!--for_gh_pages--><iframe" in line and "</iframe>" in line:
119-
changed = True
120-
line = ("")
121118
seleniumbase_lines.append(line)
122119
if changed:
123120
out_file = codecs.open(readme_file, "w+", encoding='utf-8')

docs/requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
regex>=2020.9.27
2+
tqdm>=4.50.0
13
livereload==2.6.3;python_version>="3.6"
2-
pymdown-extensions==8.0
4+
pymdown-extensions==8.0.1
35
mkdocs==1.1.2
4-
mkdocs-material==5.5.14
6+
mkdocs-material==6.0.1
57
mkdocs-simple-hooks==0.1.1
68
mkdocs-material-extensions==1.0.1
79
mkdocs-minify-plugin==0.3.0

examples/test_hack_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def test_hack_search(self):
1717
self.highlight('[value="Bing Search"]')
1818
self.click('[value="Bing Search"]')
1919
self.highlight("h1.b_logo")
20-
self.click('[href*="github.com/seleniumbase/SeleniumBase"]')
20+
self.js_click('a[href*="github.com/seleniumbase/SeleniumBase"]')
2121
self.assert_element('[href="/seleniumbase/SeleniumBase"]')
2222
self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url())
23-
self.click('[title="examples"]')
23+
self.click('a[title="examples"]')
2424
self.assert_text('examples', 'strong.final-path')

help_docs/customizing_test_runs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Here are some useful command-line options that come with ``pytest``:
8282
-q # Quiet mode. Print fewer details in the console output when running tests.
8383
-x # Stop running the tests after the first failure is reached.
8484
--html=report.html # Creates a detailed pytest-html report after tests finish.
85-
--collect-only # Show what tests would get run without actually running them.
85+
--collect-only | --co # Show what tests would get run. (Without running them)
8686
-n=NUM # Multithread the tests using that many threads. (Speed up test runs!)
8787
-s # See print statements. (Should be on by default with pytest.ini present.)
8888
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
@@ -313,4 +313,4 @@ pytest test_swag_labs.py --mobile --metrics="411,731,3"
313313
# Run mobile tests specifying the user agent
314314
pytest test_swag_labs.py --mobile --agent="Mozilla/5.0 (Linux; Android 9; Pixel 3 XL)"
315315
```
316-
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/fancy_logo_14.png" title="SeleniumBase" width="290">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
316+
[<img src="https://seleniumbase.io/cdn/img/fancy_logo_14.png" title="SeleniumBase" width="290">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ attrs>=20.2.0
2323
py==1.8.1;python_version<"3.5"
2424
py==1.9.0;python_version>="3.5"
2525
pytest==4.6.11;python_version<"3.5"
26-
pytest==6.0.2;python_version>="3.5"
26+
pytest==6.1.0;python_version>="3.5"
2727
pytest-cov==2.10.1
2828
pytest-forked==1.3.0
2929
pytest-html==1.22.1;python_version<"3.6"
@@ -32,13 +32,13 @@ pytest-metadata==1.8.0;python_version<"3.6"
3232
pytest-metadata==1.10.0;python_version>="3.6"
3333
pytest-ordering==0.6
3434
pytest-rerunfailures==8.0;python_version<"3.5"
35-
pytest-rerunfailures==9.1;python_version>="3.5"
35+
pytest-rerunfailures==9.1.1;python_version>="3.5"
3636
pytest-xdist==1.34.0;python_version<"3.5"
3737
pytest-xdist==2.1.0;python_version>="3.5"
3838
parameterized==0.7.4
3939
soupsieve==1.9.6;python_version<"3.5"
4040
soupsieve==2.0.1;python_version>="3.5"
41-
beautifulsoup4==4.9.1
41+
beautifulsoup4==4.9.2
4242
cryptography==3.0;python_version<"3.6"
4343
cryptography==3.1.1;python_version>="3.6"
4444
pyopenssl==19.1.0
@@ -62,7 +62,7 @@ cffi==1.14.3
6262
zipp==1.2.0;python_version<"3.6"
6363
zipp==3.2.0;python_version>="3.6"
6464
importlib-metadata==2.0.0
65-
rich==7.0.0;python_version>="3.6" and python_version<"4.0"
65+
rich==7.1.0;python_version>="3.6" and python_version<"4.0"
6666
flake8==3.7.9;python_version<"3.5"
6767
flake8==3.8.3;python_version>="3.5"
6868
pyflakes==2.1.1;python_version<"3.5"

seleniumbase/fixtures/base_case.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def click(self, selector, by=By.CSS_SELECTOR, timeout=None, delay=0):
167167
element.click()
168168
except (StaleElementReferenceException, ENI_Exception):
169169
self.wait_for_ready_state_complete()
170-
time.sleep(0.05)
170+
time.sleep(0.16)
171171
element = page_actions.wait_for_element_visible(
172172
self.driver, selector, by, timeout=timeout)
173173
if self.browser == "safari":
@@ -237,7 +237,7 @@ def double_click(self, selector, by=By.CSS_SELECTOR, timeout=None):
237237
actions.double_click(element).perform()
238238
except (StaleElementReferenceException, ENI_Exception):
239239
self.wait_for_ready_state_complete()
240-
time.sleep(0.05)
240+
time.sleep(0.16)
241241
element = page_actions.wait_for_element_visible(
242242
self.driver, selector, by, timeout=timeout)
243243
actions = ActionChains(self.driver)
@@ -312,7 +312,7 @@ def update_text(self, selector, text, by=By.CSS_SELECTOR,
312312
element.send_keys(backspaces) # In case autocomplete keeps text
313313
except (StaleElementReferenceException, ENI_Exception):
314314
self.wait_for_ready_state_complete()
315-
time.sleep(0.06)
315+
time.sleep(0.16)
316316
element = self.wait_for_element_visible(
317317
selector, by=by, timeout=timeout)
318318
try:
@@ -337,7 +337,7 @@ def update_text(self, selector, text, by=By.CSS_SELECTOR,
337337
self.wait_for_ready_state_complete()
338338
except (StaleElementReferenceException, ENI_Exception):
339339
self.wait_for_ready_state_complete()
340-
time.sleep(0.06)
340+
time.sleep(0.16)
341341
element = self.wait_for_element_visible(
342342
selector, by=by, timeout=timeout)
343343
element.clear()
@@ -389,7 +389,7 @@ def add_text(self, selector, text, by=By.CSS_SELECTOR, timeout=None):
389389
self.wait_for_ready_state_complete()
390390
except (StaleElementReferenceException, ENI_Exception):
391391
self.wait_for_ready_state_complete()
392-
time.sleep(0.06)
392+
time.sleep(0.16)
393393
element = self.wait_for_element_visible(
394394
selector, by=by, timeout=timeout)
395395
if not text.endswith('\n'):
@@ -471,7 +471,7 @@ def clear(self, selector, by=By.CSS_SELECTOR, timeout=None):
471471
element.send_keys(backspaces)
472472
except (StaleElementReferenceException, ENI_Exception):
473473
self.wait_for_ready_state_complete()
474-
time.sleep(0.06)
474+
time.sleep(0.16)
475475
element = self.wait_for_element_visible(
476476
selector, by=by, timeout=timeout)
477477
element.clear()
@@ -697,7 +697,7 @@ def click_link_text(self, link_text, timeout=None):
697697
element.click()
698698
except (StaleElementReferenceException, ENI_Exception):
699699
self.wait_for_ready_state_complete()
700-
time.sleep(0.05)
700+
time.sleep(0.16)
701701
element = self.wait_for_link_text_visible(
702702
link_text, timeout=timeout)
703703
element.click()
@@ -799,7 +799,7 @@ def click_partial_link_text(self, partial_link_text, timeout=None):
799799
element.click()
800800
except (StaleElementReferenceException, ENI_Exception):
801801
self.wait_for_ready_state_complete()
802-
time.sleep(0.05)
802+
time.sleep(0.16)
803803
element = self.wait_for_partial_link_text(
804804
partial_link_text, timeout=timeout)
805805
element.click()
@@ -872,7 +872,7 @@ def get_text(self, selector, by=By.CSS_SELECTOR, timeout=None):
872872
element_text = element.text
873873
except (StaleElementReferenceException, ENI_Exception):
874874
self.wait_for_ready_state_complete()
875-
time.sleep(0.06)
875+
time.sleep(0.14)
876876
element = page_actions.wait_for_element_visible(
877877
self.driver, selector, by, timeout)
878878
element_text = element.text
@@ -894,7 +894,7 @@ def get_attribute(self, selector, attribute, by=By.CSS_SELECTOR,
894894
attribute_value = element.get_attribute(attribute)
895895
except (StaleElementReferenceException, ENI_Exception):
896896
self.wait_for_ready_state_complete()
897-
time.sleep(0.06)
897+
time.sleep(0.14)
898898
element = page_actions.wait_for_element_present(
899899
self.driver, selector, by, timeout)
900900
attribute_value = element.get_attribute(attribute)
@@ -1124,7 +1124,7 @@ def click_visible_elements(
11241124
continue # ElementClickInterceptedException (Overlay likely)
11251125
except (StaleElementReferenceException, ENI_Exception):
11261126
self.wait_for_ready_state_complete()
1127-
time.sleep(0.04)
1127+
time.sleep(0.12)
11281128
try:
11291129
if element.is_displayed():
11301130
self.__scroll_to_element(element)
@@ -1159,7 +1159,7 @@ def click_nth_visible_element(
11591159
element.click()
11601160
except (StaleElementReferenceException, ENI_Exception):
11611161
self.wait_for_ready_state_complete()
1162-
time.sleep(0.03)
1162+
time.sleep(0.12)
11631163
self.__scroll_to_element(element)
11641164
element.click()
11651165

@@ -1503,7 +1503,7 @@ def __select_option(self, dropdown_selector, option,
15031503
Select(element).select_by_visible_text(option)
15041504
except (StaleElementReferenceException, ENI_Exception):
15051505
self.wait_for_ready_state_complete()
1506-
time.sleep(0.03)
1506+
time.sleep(0.14)
15071507
element = self.wait_for_element_present(
15081508
dropdown_selector, by=dropdown_by, timeout=timeout)
15091509
if option_by == "index":
@@ -2236,7 +2236,7 @@ def highlight(self, selector, by=By.CSS_SELECTOR,
22362236
self.__jquery_slow_scroll_to(selector, by)
22372237
except (StaleElementReferenceException, ENI_Exception, JS_Exc):
22382238
self.wait_for_ready_state_complete()
2239-
time.sleep(0.03)
2239+
time.sleep(0.12)
22402240
element = self.wait_for_element_visible(
22412241
selector, by=by, timeout=settings.SMALL_TIMEOUT)
22422242
self.__slow_scroll_to_element(element)
@@ -2257,7 +2257,7 @@ def highlight(self, selector, by=By.CSS_SELECTOR,
22572257
style = element.get_attribute('style')
22582258
except (StaleElementReferenceException, ENI_Exception):
22592259
self.wait_for_ready_state_complete()
2260-
time.sleep(0.03)
2260+
time.sleep(0.12)
22612261
element = self.wait_for_element_visible(
22622262
selector, by=By.CSS_SELECTOR, timeout=settings.SMALL_TIMEOUT)
22632263
style = element.get_attribute('style')
@@ -2387,7 +2387,7 @@ def scroll_to(self, selector, by=By.CSS_SELECTOR, timeout=None):
23872387
self.__scroll_to_element(element, selector, by)
23882388
except (StaleElementReferenceException, ENI_Exception):
23892389
self.wait_for_ready_state_complete()
2390-
time.sleep(0.03)
2390+
time.sleep(0.12)
23912391
element = self.wait_for_element_visible(
23922392
selector, by=by, timeout=timeout)
23932393
self.__scroll_to_element(element, selector, by)
@@ -2410,7 +2410,7 @@ def slow_scroll_to(self, selector, by=By.CSS_SELECTOR, timeout=None):
24102410
self.__slow_scroll_to_element(element)
24112411
except (StaleElementReferenceException, ENI_Exception, JS_Exc):
24122412
self.wait_for_ready_state_complete()
2413-
time.sleep(0.03)
2413+
time.sleep(0.12)
24142414
element = self.wait_for_element_visible(
24152415
selector, by=by, timeout=timeout)
24162416
self.__slow_scroll_to_element(element)
@@ -6065,7 +6065,7 @@ def __demo_mode_highlight_if_active(self, selector, by):
60656065
self.__slow_scroll_to_element(element)
60666066
except (StaleElementReferenceException, ENI_Exception):
60676067
self.wait_for_ready_state_complete()
6068-
time.sleep(0.03)
6068+
time.sleep(0.12)
60696069
element = self.wait_for_element_visible(
60706070
selector, by=by, timeout=settings.SMALL_TIMEOUT)
60716071
self.__slow_scroll_to_element(element)
@@ -6101,7 +6101,7 @@ def __highlight_with_assert_success(
61016101
self.__slow_scroll_to_element(element)
61026102
except (StaleElementReferenceException, ENI_Exception):
61036103
self.wait_for_ready_state_complete()
6104-
time.sleep(0.03)
6104+
time.sleep(0.12)
61056105
element = self.wait_for_element_visible(
61066106
selector, by=by, timeout=settings.SMALL_TIMEOUT)
61076107
self.__slow_scroll_to_element(element)
@@ -6111,7 +6111,7 @@ def __highlight_with_assert_success(
61116111
style = element.get_attribute('style')
61126112
except (StaleElementReferenceException, ENI_Exception):
61136113
self.wait_for_ready_state_complete()
6114-
time.sleep(0.05)
6114+
time.sleep(0.12)
61156115
element = self.wait_for_element_visible(
61166116
selector, by=By.CSS_SELECTOR, timeout=settings.SMALL_TIMEOUT)
61176117
style = element.get_attribute('style')

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
4545
os.system("python -m pip install --upgrade 'twine>=1.15.0'")
4646
print("\n*** Installing tqdm: *** (Required for PyPI uploads)\n")
47-
os.system("python -m pip install --upgrade 'tqdm>=4.49.0'")
47+
os.system("python -m pip install --upgrade 'tqdm>=4.50.0'")
4848
print("\n*** Publishing The Release to PyPI: ***\n")
4949
os.system('python -m twine upload dist/*') # Requires ~/.pypirc Keys
5050
print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n")
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name='seleniumbase',
57-
version='1.49.18',
57+
version='1.49.19',
5858
description='A complete framework for Web-UI testing | seleniumbase.io',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',
@@ -117,7 +117,7 @@
117117
'py==1.8.1;python_version<"3.5"',
118118
'py==1.9.0;python_version>="3.5"',
119119
'pytest==4.6.11;python_version<"3.5"',
120-
'pytest==6.0.2;python_version>="3.5"',
120+
'pytest==6.1.0;python_version>="3.5"',
121121
'pytest-cov==2.10.1',
122122
'pytest-forked==1.3.0',
123123
'pytest-html==1.22.1;python_version<"3.6"',
@@ -126,13 +126,13 @@
126126
'pytest-metadata==1.10.0;python_version>="3.6"',
127127
'pytest-ordering==0.6',
128128
'pytest-rerunfailures==8.0;python_version<"3.5"',
129-
'pytest-rerunfailures==9.1;python_version>="3.5"',
129+
'pytest-rerunfailures==9.1.1;python_version>="3.5"',
130130
'pytest-xdist==1.34.0;python_version<"3.5"',
131131
'pytest-xdist==2.1.0;python_version>="3.5"',
132132
'parameterized==0.7.4',
133133
'soupsieve==1.9.6;python_version<"3.5"',
134134
'soupsieve==2.0.1;python_version>="3.5"',
135-
'beautifulsoup4==4.9.1',
135+
'beautifulsoup4==4.9.2',
136136
'cryptography==3.0;python_version<"3.6"',
137137
'cryptography==3.1.1;python_version>="3.6"',
138138
'pyopenssl==19.1.0',
@@ -156,7 +156,7 @@
156156
'zipp==1.2.0;python_version<"3.6"',
157157
'zipp==3.2.0;python_version>="3.6"',
158158
'importlib-metadata==2.0.0',
159-
'rich==7.0.0;python_version>="3.6" and python_version<"4.0"',
159+
'rich==7.1.0;python_version>="3.6" and python_version<"4.0"',
160160
'flake8==3.7.9;python_version<"3.5"',
161161
'flake8==3.8.3;python_version>="3.5"',
162162
'pyflakes==2.1.1;python_version<"3.5"',

0 commit comments

Comments
 (0)