diff --git a/examples/presenter/ReadMe.md b/examples/presenter/ReadMe.md index 16d7783d..71ba8a7c 100644 --- a/examples/presenter/ReadMe.md +++ b/examples/presenter/ReadMe.md @@ -36,7 +36,6 @@ cd examples/presenter pytest core_presentation.py ``` -

Creating a new presentation:

```python @@ -59,7 +58,6 @@ If creating multiple presentations at the same time, you can pass the ``name`` p Notes are disabled by default. You can enable notes by specifying: ``show_notes=True`` -

Adding a slide to a presentation:

```python diff --git a/help_docs/desired_capabilities.md b/help_docs/desired_capabilities.md index 7f69f038..3f3f8dc1 100644 --- a/help_docs/desired_capabilities.md +++ b/help_docs/desired_capabilities.md @@ -41,7 +41,7 @@ capabilities = { } ``` -(Note that the browser is now being specified in the capabilities file, rather than with ``--browser=BROWSER`` when using a **remote** Selenium Grid. If using a **local** Selenium Grid, specify the browser, eg: ``--browser=chrome`` or ``--browser=firefox``.) +(Note that the browser is now being specified in the capabilities file, rather than with ``--BROWSER`` when using a **remote** Selenium Grid. If using a **local** Selenium Grid, specify the browser, eg: ``--firefox``.)
You can generate specific desired capabilities using:
@@ -65,7 +65,7 @@ caps['KEY'] = False (Each pair must be on a separate line. You can interchange single and double quotes.) -You can also swap ``--browser=remote`` with an actual browser, eg ``--browser=chrome``, which will combine the default SeleniumBase desired capabilities with those that were specified in the capabilities file when using ``--cap_file=FILE.py``. Capabilities will override other parameters, so if you set the browser to one thing and the capabilities browser to another, SeleniumBase will use the capabilities browser as the browser. +You can also swap ``--browser=remote`` with an actual browser, eg ``--browser=chrome``, which will combine the default SeleniumBase desired capabilities with those that were specified in the capabilities file when using ``--cap_file=FILE.py``. Capabilities will override other parameters, so if you set the browser to one thing and the capabilities browser to another, SeleniumBase will use the capabilities browser. You'll need default SeleniumBase capabilities for: * Using a proxy server (not the same as a Selenium Grid server) @@ -74,8 +74,7 @@ You'll need default SeleniumBase capabilities for: * Overriding a website's Content Security Policy on Chrome * Other possible reasons -You can also set browser desired capabilities from a command line string: -Example: +You can also set browser desired capabilities from a command-line string. Eg: ```bash pytest test_swag_labs.py --cap-string='{"browserName":"chrome","name":"test1"}' --server="127.0.0.1" --browser=remote diff --git a/help_docs/happy_customers.md b/help_docs/happy_customers.md index dbbb6acf..b46ea3b9 100644 --- a/help_docs/happy_customers.md +++ b/help_docs/happy_customers.md @@ -6,6 +6,7 @@ * [MIT](https://web.mit.edu/) * [Sony](https://www.sony.com/) +* [Tesla](https://www.tesla.com/) * [iboss](https://www.iboss.com/) * [Apple](https://www.apple.com/) * [Akamai](https://www.akamai.com/) diff --git a/help_docs/mysql_installation.md b/help_docs/mysql_installation.md index 70ec7eea..143b8465 100644 --- a/help_docs/mysql_installation.md +++ b/help_docs/mysql_installation.md @@ -87,7 +87,7 @@ Update your [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/mast ### Have SeleniumBase tests write to your MySQL DB: -Add the ``--with-db_reporting`` argument on the command line when you want tests to write to your MySQL database. Example: +Add the ``--with-db_reporting`` argument on the command-line when you want tests to write to your MySQL database. Example: ```bash pytest --with-db_reporting diff --git a/help_docs/syntax_formats.md b/help_docs/syntax_formats.md index 190645d1..ea04283d 100644 --- a/help_docs/syntax_formats.md +++ b/help_docs/syntax_formats.md @@ -118,10 +118,10 @@ The pytest framework comes with a unique system called fixtures, which replaces ```python def test_sb_fixture_with_no_class(sb): - sb.open("https://google.com/ncr") - sb.type('[title="Search"]', 'SeleniumBase\n') - sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]') - sb.click('a[title="seleniumbase"]') + sb.open("seleniumbase.io/help_docs/install/") + sb.type('input[aria-label="Search"]', "GUI Commander") + sb.click('mark:contains("Commander")') + sb.assert_title_contains("GUI / Commander") ``` (See the top of examples/test_sb_fixture.py for the test.) @@ -134,10 +134,10 @@ The sb pytest fixture can also be used inside of a c ```python class Test_SB_Fixture: def test_sb_fixture_inside_class(self, sb): - sb.open("https://google.com/ncr") - sb.type('[title="Search"]', 'SeleniumBase\n') - sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]') - sb.click('a[title="examples"]') + sb.open("seleniumbase.io/help_docs/install/") + sb.type('input[aria-label="Search"]', "GUI Commander") + sb.click('mark:contains("Commander")') + sb.assert_title_contains("GUI / Commander") ``` (See the bottom of examples/test_sb_fixture.py for the test.) diff --git a/help_docs/using_safari_driver.md b/help_docs/using_safari_driver.md index df2cf282..e2e77be5 100644 --- a/help_docs/using_safari_driver.md +++ b/help_docs/using_safari_driver.md @@ -8,4 +8,4 @@ You can find the official Apple documentation regarding "Testing with WebDriver Run ``safaridriver --enable`` once in a terminal to enable Safari's WebDriver. (If you’re upgrading from a previous macOS release, you may need to prefix the command with ``sudo``.) -Now you can use ``--browser=safari`` to run your **SeleniumBase** tests on Safari. +Now you can use ``--safari`` to run your **SeleniumBase** tests on Safari. diff --git a/help_docs/verify_webdriver.md b/help_docs/verify_webdriver.md index c8abc02c..083e5d4b 100644 --- a/help_docs/verify_webdriver.md +++ b/help_docs/verify_webdriver.md @@ -8,7 +8,6 @@ Drivers can be manually downloaded to the ``seleniumbase/drivers`` folder with c ```bash sbase get chromedriver -sbase get chromedriver latest sbase get geckodriver sbase get edgedriver ```