diff --git a/docs/img/sb_logo_7.png b/docs/img/sb_logo_7.png index d9224bb2..cc2f9a8a 100644 Binary files a/docs/img/sb_logo_7.png and b/docs/img/sb_logo_7.png differ diff --git a/help_docs/method_summary.md b/help_docs/method_summary.md index 575c246d..0eeb4a53 100755 --- a/help_docs/method_summary.md +++ b/help_docs/method_summary.md @@ -9,7 +9,7 @@ For backwards compatibility, older versions of method names have remained to kee ```python self.open(url) # Duplicates: self.open_url(url), self.get(url) -# self.visit(url), self.goto(url), self.go_to(url) +# self.visit(url), visit_url(url), self.goto(url), self.go_to(url) self.click(selector, by=By.CSS_SELECTOR, timeout=None, delay=0) @@ -29,8 +29,8 @@ self.add_text(selector, text, by=By.CSS_SELECTOR, timeout=None) self.submit(selector, by=By.CSS_SELECTOR) -self.refresh() -# Duplicates: self.refresh_page() +self.refresh_page() +# Duplicates: self.refresh(), self.reload(), self.reload_page() self.get_current_url() @@ -62,8 +62,8 @@ self.get_link_attribute(link_text, attribute, hard_fail=True) self.get_partial_link_text_attribute(link_text, attribute, hard_fail=True) -self.click_link(link_text, timeout=None) -# Duplicates: self.click_link_text(link_text, timeout=None) +self.click_link_text(link_text, timeout=None) +# Duplicates: self.click_link(link_text, timeout=None) self.click_partial_link_text(partial_link_text, timeout=None) diff --git a/help_docs/mobile_testing.md b/help_docs/mobile_testing.md index b28de807..70a184c9 100755 --- a/help_docs/mobile_testing.md +++ b/help_docs/mobile_testing.md @@ -1,15 +1,30 @@ -[](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md) +

SeleniumBase

+

Mobile Testing

-Use ``--mobile`` to run your SeleniumBase tests using Chrome's (or Edge's) mobile device emulator with default values for device metrics (CSS Width, CSS Height, Pixel-Ratio) and user agent. +Use ``--mobile`` to run your SeleniumBase tests using Chromium's mobile device emulator with default values for device metrics (CSS Width, CSS Height, Pixel-Ratio) and user agent. -To configure the mobile device metrics, use ``--metrics="CSS_Width,CSS_Height,Pixel_Ratio"``. To configure the user agent, use ``--agent="USER-AGENT-STRING"``. +To configure the mobile device metrics, use: +```bash +--metrics="CSS_Width,CSS_Height,Pixel_Ratio" +``` -To find real values for device metrics, [see this GitHub Gist](https://gist.github.com/sidferreira/3f5fad525e99b395d8bd882ee0fd9d00). For a list of available user agent strings, [check out this page](https://developers.whatismybrowser.com/useragents/explore/). +To configure the user agent, use: +```bash +--agent="USER-AGENT-STRING" +``` + +To find real values for device metrics, see: +* [Device Metrics List](https://gist.github.com/sidferreira/3f5fad525e99b395d8bd882ee0fd9d00) + +For a list of available user agent strings, see: +* [User Agent Strings List](https://developers.whatismybrowser.com/useragents/explore/) -------- -Here's an example of running a mobile test (See https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_skype_site.py): +Here's an example of running a mobile test: + +* [SeleniumBase/examples/test_skype_site.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_skype_site.py) ```bash pytest test_skype_site.py --mobile @@ -18,7 +33,7 @@ pytest test_skype_site.py --mobile -------- -Here's another example of running a mobile test (https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py), which demonstrates using ``--metrics`` and ``--agent`` with ``--mobile``: +Here's another example of running a mobile test ([SeleniumBase/examples/test_swag_labs.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py)), which demonstrates using ``--metrics`` and ``--agent`` with ``--mobile``: ```bash # Run tests using Chrome's mobile device emulator (default settings) @@ -34,4 +49,6 @@ pytest test_swag_labs.py --mobile --agent="Mozilla/5.0 (Linux; Android 9; Pixel -------- -If you're new to SeleniumBase, read https://github.com/seleniumbase/SeleniumBase to help you get started. \ No newline at end of file +

+SeleniumBase.io Docs + SeleniumBase.io Docs