Skip to content

Commit f0fb390

Browse files
committed
Update help_docs
1 parent 8feb097 commit f0fb390

29 files changed

+11
-14
lines changed

help_docs/ReadMe.md

100755100644
File mode changed.

help_docs/behave_gui.md

100755100644
File mode changed.

help_docs/case_plans.md

100755100644
File mode changed.

help_docs/commander.md

100755100644
File mode changed.

help_docs/customizing_test_runs.md

100755100644
File mode changed.

help_docs/demo_mode.md

100755100644
File mode changed.

help_docs/desired_capabilities.md

100755100644
File mode changed.

help_docs/features_list.md

100755100644
+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Can run tests in Headless Mode to hide the browser. (``--headless``)
1919
* Can run tests multithreaded from parallel browsers. (``-n NUM_THREADS``)
2020
* Can run tests from a shared browser session. (``--reuse-session``/``--rs``)
21-
* Can run tests using Chromium's mobile device emulator. (``--mobile``)
21+
* Can run tests using [Chromium's mobile device emulator](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/mobile_testing.md). (``--mobile``)
2222
* Can run tests through a proxy server. (``--proxy=IP_ADDRESS:PORT``)
2323
* Can run tests with proxy settings via PAC URL. (``--proxy-pac-url=URL.pac``)
2424
* Can run tests through an authenticated proxy server. (``--proxy=USER:PASS@HOST:PORT``)
@@ -44,7 +44,7 @@
4444
* Can inspect HTML to find issues and points of interest with the [HTML Inspector](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/html_inspector.md).
4545
* Is backwards-compatible with Python [WebDriver](https://www.selenium.dev/projects/) methods. (Use: ``self.driver``)
4646
* Can execute JavaScript code from Python calls. (Use: ``self.execute_script()``)
47-
* Can pierce through Shadow DOM selectors. (Add ``::shadow`` to CSS fragments.)
47+
* Can pierce through [Shadow DOM selectors](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/shadow_dom.md). (Add ``::shadow`` to CSS fragments.)
4848
* Includes a hybrid-automation solution, [MasterQA](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/masterqa/ReadMe.md), to speed up manual testing.
4949
* Includes useful [Python decorators and password obfuscation methods](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/common/ReadMe.md).
5050

help_docs/happy_customers.md

100755100644
+7-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<h3 align="left"><img src="https://seleniumbase.github.io/cdn/img/sb_logo_b.png" alt="SeleniumBase" width="300" /></h3>
44

5-
### Organizations that have grown their automation with SeleniumBase:
5+
### Some organizations who have used SeleniumBase for automation:
66

77
* [MIT](https://web.mit.edu/)
88
* [iboss](https://www.iboss.com/)
@@ -15,8 +15,8 @@
1515
* [FortressIQ](https://www.fortressiq.com/)
1616
* [Thoma Bravo](https://www.thomabravo.com/)
1717
* [ASICS Digital](https://www.asicsdigital.com/)
18-
* [Expedia Group](https://lifeatexpediagroup.com/)
1918
* [Texture Health](https://www.texturehealth.com/)
19+
* [Expedia Group](https://lifeatexpediagroup.com/)
2020
* [The Very Group](https://www.theverygroup.com/)
2121
* [ActiveCampaign](https://www.activecampaign.com/)
2222
* [Blue Trail Software](https://www.bluetrail.software/)
@@ -28,14 +28,14 @@
2828
* [Queen's University](https://www.queensu.ca/)
2929
* [L1NNA Laboratory](https://l1nna.com/)
3030
* [Thomson Reuters](https://www.thomsonreuters.com/)
31-
* [Optum Financial](https://www.optum.com/financial-services.html)
3231
* [CA Technologies](https://tinyurl.com/ca-technologies)
32+
* [Optum Financial](https://www.optum.com/financial-services.html)
3333
* [ActiveCampaign](https://www.activecampaign.com/)
3434
* [Raid The Room](https://raidtheroom.com/)
3535
* [First American](https://www.firstam.com/)
3636
* [Origin Energy](https://www.originenergy.com.au/)
37-
* [Develop Soft](https://www.developsoft.com/)
3837
* [InterSystems](https://www.intersystems.com/)
38+
* [Develop Soft](https://www.developsoft.com/)
3939
* [Ping Identity](https://www.pingidentity.com/)
4040
* [StreamSets](https://streamsets.com/)
4141
* [Betterteem](https://www.betterteem.com/)
@@ -49,15 +49,17 @@
4949
* [Streamlit](https://streamlit.io/)
5050
* [SunCorp](https://www.suncorpgroup.com.au/)
5151
* [Logitech](https://www.logitech.com/)
52+
* [Modulos](https://www.modulos.ai/)
5253
* [VMware](https://www.vmware.com/)
5354
* [Rakuten](https://global.rakuten.com/corp/about/)
5455
* [Nagarro](https://www.nagarro.com/en)
5556
* [Ark PES](https://www.arkpes.com/)
5657
* [Evereve](https://evereve.com/)
58+
* [Yandex](https://yandex.ru/)
5759
* [WPILib](https://wpilib.org/)
5860
* [QBurst](https://www.qburst.com/)
59-
* [Yandex](https://yandex.ru/)
6061
* [Kinetik](https://kinetik.care/)
62+
* [Exadel](https://exadel.com/)
6163
* [netLex](https://netlex.io/en/)
6264
* [Alokin](https://alokin.in/)
6365
* [Cubic](https://www.cubic.com/)

help_docs/hidden_files_info.md

100755100644
File mode changed.

help_docs/how_it_works.md

100755100644
File mode changed.

help_docs/html_inspector.md

100755100644
File mode changed.

help_docs/install.md

100755100644
File mode changed.

help_docs/install_python_pip_git.md

100755100644
File mode changed.

help_docs/js_package_manager.md

100755100644
File mode changed.

help_docs/locale_codes.md

100755100644
File mode changed.

help_docs/method_summary.md

100755100644
File mode changed.

help_docs/mobile_testing.md

100755100644
File mode changed.

help_docs/mysql_installation.md

100755100644
File mode changed.

help_docs/recorder_mode.md

100755100644
File mode changed.

help_docs/shadow_dom.md

100755100644
File mode changed.

help_docs/syntax_formats.md

100755100644
+2-7
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@
4444

4545
In this format, (which is used by most of the tests in the <a href="https://github.com/seleniumbase/SeleniumBase/tree/master/examples">SeleniumBase examples folder</a>), <code>BaseCase</code> is imported at the top of a Python file, followed by a Python class inheriting <code>BaseCase</code>. Then, any test method defined in that class automatically gains access to SeleniumBase methods, including the <code>setUp()</code> and <code>tearDown()</code> methods that are automatically called for opening and closing web browsers at the start and end of tests.
4646

47-
To run a test of this format, use **``pytest``** or ``nosetests``. If you add: ``if __name__ == "__main__":`` ``pytest.main([__file__])`` to a file, you can also use ``python`` as a test runner, which invokes ``pytest``. Here's an example:
47+
To run a test of this format, use **``pytest``** or ``nosetests``. Adding ``BaseCase.main(__name__, __file__)`` enables ``python`` to run ``pytest`` on your file indirectly. Here's an example:
4848

4949
```python
5050
from seleniumbase import BaseCase
51+
BaseCase.main(__name__, __file__)
5152

5253
class MyTestClass(BaseCase):
5354
def test_demo_site(self):
@@ -59,16 +60,10 @@ class MyTestClass(BaseCase):
5960
self.click_link("SeleniumBase Demo Page")
6061
self.assert_exact_text("Demo Page", "h1")
6162
self.assert_no_js_errors()
62-
63-
if __name__ == "__main__":
64-
from pytest import main
65-
main([__file__, "-s"])
6663
```
6764

6865
(See <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py">examples/test_demo_site.py</a> for the full test.)
6966

70-
Starting with ``seleniumbase`` ``4.11.0``, you can also include ``BaseCase.main(__name__, __file__)`` in your script to invoke ``pytest`` via ``python``. (Eg. [coffee_cart_tests.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/coffee_cart_tests.py))
71-
7267
Using ``BaseCase`` inheritance is a great starting point for anyone learning SeleniumBase, and it follows good object-oriented programming principles.
7368

7469
<a id="sb_sf_02"></a>

help_docs/thank_you.md

100755100644
File mode changed.

help_docs/translations.md

100755100644
File mode changed.

help_docs/useful_grep_commands.md

100755100644
File mode changed.

help_docs/using_safari_driver.md

100755100644
File mode changed.

help_docs/verify_webdriver.md

100755100644
File mode changed.

help_docs/virtualenv_instructions.md

100755100644
File mode changed.

help_docs/webdriver_installation.md

100755100644
File mode changed.

0 commit comments

Comments
 (0)