Skip to content

Commit 8129df8

Browse files
authored
Merge pull request #670 from seleniumbase/small-updates
Small updates - mobile-mode messages, error message, reqs
2 parents 9f405bd + 43ea91a commit 8129df8

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="icon" href="https://seleniumbase.io/img/logo3a.png" />
66

77
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/">
8-
<img src="https://seleniumbase.io/cdn/img/mac_sb_logo.png" alt="SeleniumBase" width="340" />
8+
<img src="https://seleniumbase.io/cdn/img/sb_demo_site.png" alt="SeleniumBase" width="340" />
99
</a></p>
1010
<p align="center">
1111
<b>Automated web/mobile testing, 10x faster.</b>

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
livereload==2.6.3;python_version>="3.6"
22
pymdown-extensions==8.0
33
mkdocs==1.1.2
4-
mkdocs-material==5.5.8
4+
mkdocs-material==5.5.9
55
mkdocs-simple-hooks==0.1.1
66
mkdocs-material-extensions==1.0
77
mkdocs-minify-plugin==0.3.0

integrations/node_js/my_first_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ class MyTestClass(BaseCase):
55

66
def test_basic(self):
77
self.open("https://store.xkcd.com/search")
8-
self.type('input[name="q"]', "xkcd book\n")
8+
self.type('input[name="q"]', "xkcd book")
9+
self.click('input[value="Search"]')
910
self.assert_text("xkcd: volume 0", "h3")
1011
self.open("https://xkcd.com/353/")
1112
self.assert_title("xkcd: Python")
@@ -15,3 +16,5 @@ def test_basic(self):
1516
self.go_back()
1617
self.click_link_text("About")
1718
self.assert_exact_text("xkcd.com", "h2")
19+
self.click_link_text("geohashing")
20+
self.assert_element("#comic img")

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ pytest-html==2.0.1;python_version>="3.6"
2828
pytest-metadata==1.8.0;python_version<"3.6"
2929
pytest-metadata==1.10.0;python_version>="3.6"
3030
pytest-ordering==0.6
31-
pytest-rerunfailures==8.0;python_version<"3.6"
32-
pytest-rerunfailures==9.0;python_version>="3.6"
31+
pytest-rerunfailures==8.0;python_version<"3.5"
32+
pytest-rerunfailures==9.1;python_version>="3.5"
3333
pytest-xdist==1.34.0;python_version<"3.5"
3434
pytest-xdist==2.1.0;python_version>="3.5"
3535
parameterized==0.7.4

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5873,7 +5873,11 @@ def __click_dropdown_partial_link_text(self, link_text, link_css):
58735873
return False
58745874

58755875
def __recalculate_selector(self, selector, by):
5876-
# Try to determine the type of selector automatically
5876+
# Use auto-detection to return the correct selector with "by" updated
5877+
_type = type(selector) # First make sure the selector is a string
5878+
if _type is not str:
5879+
msg = 'Expecting a selector of type: "<class \'str\'>" (string)!'
5880+
raise Exception('Invalid selector type: "%s"\n%s' % (_type, msg))
58775881
if page_utils.is_xpath_selector(selector):
58785882
by = By.XPATH
58795883
if page_utils.is_link_text_selector(selector):

seleniumbase/fixtures/js_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,8 @@ def set_messenger_theme(driver, theme="default", location="default",
510510
theme = "flat"
511511
if location == "default":
512512
location = "bottom_right"
513+
if sb_config.mobile_emulator:
514+
location = "top_center"
513515
if max_messages == "default":
514516
max_messages = "8"
515517

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name='seleniumbase',
57-
version='1.48.0',
57+
version='1.48.1',
5858
description='Web Automation and Test Framework - https://seleniumbase.io',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',
@@ -120,8 +120,8 @@
120120
'pytest-metadata==1.8.0;python_version<"3.6"',
121121
'pytest-metadata==1.10.0;python_version>="3.6"',
122122
'pytest-ordering==0.6',
123-
'pytest-rerunfailures==8.0;python_version<"3.6"',
124-
'pytest-rerunfailures==9.0;python_version>="3.6"',
123+
'pytest-rerunfailures==8.0;python_version<"3.5"',
124+
'pytest-rerunfailures==9.1;python_version>="3.5"',
125125
'pytest-xdist==1.34.0;python_version<"3.5"',
126126
'pytest-xdist==2.1.0;python_version>="3.5"',
127127
'parameterized==0.7.4',

0 commit comments

Comments
 (0)