Skip to content

Commit c5aea33

Browse files
committed
Update the ReadMe
1 parent b6f92b3 commit c5aea33

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,8 @@ pytest user_agent_test.py --agent="Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1
694694
<a id="utilizing_advanced_features"></a>
695695
<h3><img src="https://seleniumbase.io/img/green_logo.png" title="SeleniumBase" width="32" /> Production Environments & Integrations:</h3>
696696
697-
🔵 Here are some things you can do to set up a production environment for your testing:
697+
<details>
698+
<summary>🔵 Here are some things you can do to set up a production environment for your testing.</summary>
698699
699700
* You can set up a [Jenkins](https://jenkins.io/) build server for running tests at regular intervals. For a real-world Jenkins example of headless browser automation in action, check out the <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/azure/jenkins/ReadMe.md">SeleniumBase Jenkins example on Azure</a> or the <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/google_cloud/ReadMe.md">SeleniumBase Jenkins example on Google Cloud</a>.
700701
@@ -706,12 +707,15 @@ pytest user_agent_test.py --agent="Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1
706707
707708
* If you're using AWS, you can set up an [Amazon S3](https://aws.amazon.com/s3/) account for saving log files and screenshots from your tests. To activate this feature, modify [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) with connection details in the S3 section, and add "``--with-s3-logging``" on the command-line when running your tests.
708709
709-
Here's an example of running tests with additional features enabled:
710+
Here's an example of running tests with some additional features enabled:
710711
711712
```bash
712713
pytest [YOUR_TEST_FILE.py] --with-db-reporting --with-s3-logging
713714
```
714715
716+
</details>
717+
718+
715719
<a id="detailed_method_specifications"></a>
716720
<h3><img src="https://seleniumbase.io/img/green_logo.png" title="SeleniumBase" width="32" /> Detailed Method Specifications and Examples:</h3>
717721
@@ -922,7 +926,8 @@ You'd know this because the web page would contain something like the following
922926
self.activate_jquery()
923927
```
924928
925-
🔵 Here are some examples of using jQuery in your scripts:
929+
<details>
930+
<summary>🔵 Here are some examples of using jQuery in your scripts.</summary>
926931
927932
```python
928933
self.execute_script("jQuery, window.scrollTo(0, 600)") # Scrolling the page
@@ -946,9 +951,12 @@ self.execute_script("return jQuery('textarea')[2].value") # Returns the css "va
946951
947952
(Most of the above commands can be done directly with built-in SeleniumBase methods.)
948953
954+
</details>
955+
949956
🔵 Some websites have a restrictive [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) to prevent users from loading jQuery and other external libraries onto their websites. If you need to use jQuery or another JS library on such a website, add ``--disable-csp`` on the command-line.
950957
951-
🔵 In the next example, JavaScript creates a referral button on a page, which is then clicked:
958+
<details>
959+
<summary>🔵 In this example, JavaScript creates a referral button on a page, which is then clicked.</summary>
952960
953961
```python
954962
start_page = "https://xkcd.com/465/"
@@ -961,6 +969,8 @@ self.click("a.analytics") # Clicks the generated button
961969
962970
(Due to popular demand, this traffic generation example has been included in SeleniumBase with the ``self.generate_referral(start_page, end_page)`` and the ``self.generate_traffic(start_page, end_page, loops)`` methods.)
963971
972+
</details>
973+
964974
🔵 Using deferred asserts:
965975
966976
<p>Let's say you want to verify multiple different elements on a web page in a single test, but you don't want the test to fail until you verified several elements at once so that you don't have to rerun the test to find more missing elements on the same page. That's where deferred asserts come in. Here's the example:</p>

0 commit comments

Comments
 (0)