Update the docs
This commit is contained in:
parent
16fe4b2c31
commit
e6865c7a7d
|
@ -657,6 +657,7 @@ pytest test_coffee_cart.py --trace
|
|||
--headless2 # (Use the new headless mode, which supports extensions.)
|
||||
--headed # (Run tests in headed/GUI mode on Linux OS, where not default.)
|
||||
--xvfb # (Run tests using the Xvfb virtual display server on Linux OS.)
|
||||
--xvfb-metrics=STRING # (Set Xvfb display size on Linux: "Width,Height".)
|
||||
--locale=LOCALE_CODE # (Set the Language Locale Code for the web browser.)
|
||||
--interval=SECONDS # (The autoplay interval for presentations & tour steps)
|
||||
--start-page=URL # (The starting URL for the web browser when tests begin.)
|
||||
|
@ -701,6 +702,7 @@ pytest test_coffee_cart.py --trace
|
|||
--rcs | --reuse-class-session # (Reuse session for tests in class.)
|
||||
--crumbs # (Delete all cookies between tests reusing a session.)
|
||||
--disable-beforeunload # (Disable the "beforeunload" event on Chrome.)
|
||||
--window-position=X,Y # (Set the browser's starting window position.)
|
||||
--window-size=WIDTH,HEIGHT # (Set the browser's starting window size.)
|
||||
--maximize # (Start tests with the browser window maximized.)
|
||||
--screenshot # (Save a screenshot at the end of each test.)
|
||||
|
@ -869,7 +871,7 @@ pytest test_suite.py --dashboard --html=report.html
|
|||
|
||||
<img src="https://seleniumbase.github.io/cdn/img/dash_report.jpg" alt="Dashboard Pytest HTML Report" title="Dashboard Pytest HTML Report" width="520" />
|
||||
|
||||
If viewing pytest html reports in [Jenkins](https://www.jenkins.io/), you may need to [configure Jenkins settings](https://stackoverflow.com/a/46197356) for the html to render correctly. This is due to [Jenkins CSP changes](https://www.jenkins.io/doc/book/system-administration/security/configuring-content-security-policy/).
|
||||
If viewing pytest html reports in [Jenkins](https://www.jenkins.io/), you may need to [configure Jenkins settings](https://stackoverflow.com/a/46197356/7058266) for the html to render correctly. This is due to [Jenkins CSP changes](https://www.jenkins.io/doc/book/system-administration/security/configuring-content-security-policy/).
|
||||
|
||||
You can also use ``--junit-xml=report.xml`` to get an xml report instead. Jenkins can use this file to display better reporting for your tests.
|
||||
|
||||
|
|
|
@ -148,6 +148,7 @@ pytest my_first_test.py --settings-file=custom_settings.py
|
|||
--headless2 # (Use the new headless mode, which supports extensions.)
|
||||
--headed # (Run tests in headed/GUI mode on Linux OS, where not default.)
|
||||
--xvfb # (Run tests using the Xvfb virtual display server on Linux OS.)
|
||||
--xvfb-metrics=STRING # (Set Xvfb display size on Linux: "Width,Height".)
|
||||
--locale=LOCALE_CODE # (Set the Language Locale Code for the web browser.)
|
||||
--interval=SECONDS # (The autoplay interval for presentations & tour steps)
|
||||
--start-page=URL # (The starting URL for the web browser when tests begin.)
|
||||
|
@ -192,6 +193,7 @@ pytest my_first_test.py --settings-file=custom_settings.py
|
|||
--rcs | --reuse-class-session # (Reuse session for tests in class.)
|
||||
--crumbs # (Delete all cookies between tests reusing a session.)
|
||||
--disable-beforeunload # (Disable the "beforeunload" event on Chrome.)
|
||||
--window-position=X,Y # (Set the browser's starting window position.)
|
||||
--window-size=WIDTH,HEIGHT # (Set the browser's starting window size.)
|
||||
--maximize # (Start tests with the browser window maximized.)
|
||||
--screenshot # (Save a screenshot at the end of each test.)
|
||||
|
@ -380,7 +382,7 @@ pytest test_suite.py --dashboard --html=report.html
|
|||
|
||||
<img src="https://seleniumbase.github.io/cdn/img/dash_report.jpg" alt="Dashboard Pytest HTML Report" title="Dashboard Pytest HTML Report" width="520" />
|
||||
|
||||
If viewing pytest html reports in [Jenkins](https://www.jenkins.io/), you may need to [configure Jenkins settings](https://stackoverflow.com/a/46197356) for the html to render correctly. This is due to [Jenkins CSP changes](https://www.jenkins.io/doc/book/system-administration/security/configuring-content-security-policy/).
|
||||
If viewing pytest html reports in [Jenkins](https://www.jenkins.io/), you may need to [configure Jenkins settings](https://stackoverflow.com/a/46197356/7058266) for the html to render correctly. This is due to [Jenkins CSP changes](https://www.jenkins.io/doc/book/system-administration/security/configuring-content-security-policy/).
|
||||
|
||||
You can also use ``--junit-xml=report.xml`` to get an xml report instead. Jenkins can use this file to display better reporting for your tests.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## [<img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) Installing webdrivers
|
||||
|
||||
To run web automation, you'll need webdrivers for each browser you plan on using. With SeleniumBase, drivers are downloaded automatically as needed into the SeleniumBase ``drivers`` folder.
|
||||
To run web automation, you need webdrivers for each browser you plan on using. With SeleniumBase, drivers are downloaded automatically (as needed) into the SeleniumBase `drivers/` folder.
|
||||
|
||||
You can also download drivers manually with these commands:
|
||||
|
||||
|
@ -12,7 +12,7 @@ seleniumbase get geckodriver
|
|||
seleniumbase get edgedriver
|
||||
```
|
||||
|
||||
After running the commands above, web drivers will get downloaded into the ``seleniumbase/drivers/`` folder. SeleniumBase uses those drivers during tests. (The drivers don't come with SeleniumBase by default.)
|
||||
After running the commands above, web drivers will get downloaded into the `seleniumbase/drivers/` folder. SeleniumBase uses those drivers during tests. (The drivers don't come with SeleniumBase by default.)
|
||||
|
||||
If the necessary driver is not found in this location while running tests, SeleniumBase will instead look for the driver on the System PATH. If the necessary driver is not on the System PATH either, SeleniumBase will automatically attempt to download the required driver.
|
||||
|
||||
|
|
Loading…
Reference in New Issue