Skip to content

Update mobile-mode messages, an error message, and reqs #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="https://seleniumbase.io/img/logo3a.png" />

<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/">
<img src="https://seleniumbase.io/cdn/img/mac_sb_logo.png" alt="SeleniumBase" width="340" />
<img src="https://seleniumbase.io/cdn/img/sb_demo_site.png" alt="SeleniumBase" width="340" />
</a></p>
<p align="center">
<b>Automated web/mobile testing, 10x faster.</b>
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
livereload==2.6.3;python_version>="3.6"
pymdown-extensions==8.0
mkdocs==1.1.2
mkdocs-material==5.5.8
mkdocs-material==5.5.9
mkdocs-simple-hooks==0.1.1
mkdocs-material-extensions==1.0
mkdocs-minify-plugin==0.3.0
5 changes: 4 additions & 1 deletion integrations/node_js/my_first_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class MyTestClass(BaseCase):

def test_basic(self):
self.open("https://store.xkcd.com/search")
self.type('input[name="q"]', "xkcd book\n")
self.type('input[name="q"]', "xkcd book")
self.click('input[value="Search"]')
self.assert_text("xkcd: volume 0", "h3")
self.open("https://xkcd.com/353/")
self.assert_title("xkcd: Python")
Expand All @@ -15,3 +16,5 @@ def test_basic(self):
self.go_back()
self.click_link_text("About")
self.assert_exact_text("xkcd.com", "h2")
self.click_link_text("geohashing")
self.assert_element("#comic img")
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ pytest-html==2.0.1;python_version>="3.6"
pytest-metadata==1.8.0;python_version<"3.6"
pytest-metadata==1.10.0;python_version>="3.6"
pytest-ordering==0.6
pytest-rerunfailures==8.0;python_version<"3.6"
pytest-rerunfailures==9.0;python_version>="3.6"
pytest-rerunfailures==8.0;python_version<"3.5"
pytest-rerunfailures==9.1;python_version>="3.5"
pytest-xdist==1.34.0;python_version<"3.5"
pytest-xdist==2.1.0;python_version>="3.5"
parameterized==0.7.4
Expand Down
6 changes: 5 additions & 1 deletion seleniumbase/fixtures/base_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -5873,7 +5873,11 @@ def __click_dropdown_partial_link_text(self, link_text, link_css):
return False

def __recalculate_selector(self, selector, by):
# Try to determine the type of selector automatically
# Use auto-detection to return the correct selector with "by" updated
_type = type(selector) # First make sure the selector is a string
if _type is not str:
msg = 'Expecting a selector of type: "<class \'str\'>" (string)!'
raise Exception('Invalid selector type: "%s"\n%s' % (_type, msg))
if page_utils.is_xpath_selector(selector):
by = By.XPATH
if page_utils.is_link_text_selector(selector):
Expand Down
2 changes: 2 additions & 0 deletions seleniumbase/fixtures/js_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ def set_messenger_theme(driver, theme="default", location="default",
theme = "flat"
if location == "default":
location = "bottom_right"
if sb_config.mobile_emulator:
location = "top_center"
if max_messages == "default":
max_messages = "8"

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

setup(
name='seleniumbase',
version='1.48.0',
version='1.48.1',
description='Web Automation and Test Framework - https://seleniumbase.io',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down Expand Up @@ -120,8 +120,8 @@
'pytest-metadata==1.8.0;python_version<"3.6"',
'pytest-metadata==1.10.0;python_version>="3.6"',
'pytest-ordering==0.6',
'pytest-rerunfailures==8.0;python_version<"3.6"',
'pytest-rerunfailures==9.0;python_version>="3.6"',
'pytest-rerunfailures==8.0;python_version<"3.5"',
'pytest-rerunfailures==9.1;python_version>="3.5"',
'pytest-xdist==1.34.0;python_version<"3.5"',
'pytest-xdist==2.1.0;python_version>="3.5"',
'parameterized==0.7.4',
Expand Down