|
48 | 48 | --------
|
49 | 49 |
|
50 | 50 | <details>
|
51 |
| -<summary>▶️ (expand) How is SeleniumBase different from raw Selenium?</summary> |
| 51 | +<summary> (expand) ▶️ How is SeleniumBase different from raw Selenium?</summary> |
52 | 52 | <div>
|
53 | 53 |
|
54 | 54 | ✔️ SeleniumBase is a Python test framework for the Selenium/WebDriver browser automation library. This framework incorporates test-runners such as <code>pytest</code>, <code>nosetests</code>, and <code>behave</code> to provide organized structure, test discovery, test execution, test state (<i>eg. passed, failed, or skipped</i>), and command-line options for changing default settings (<i>such as which browser to use</i>). With raw Selenium, you would need to set up your own options-parser for configuring tests from the command-line.
|
@@ -735,7 +735,7 @@ pytest user_agent_test.py --agent="Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1
|
735 | 735 | <h3><img src="https://seleniumbase.io/img/green_logo.png" title="SeleniumBase" width="32" /> Production Environments & Integrations:</h3>
|
736 | 736 |
|
737 | 737 | <details>
|
738 |
| -<summary>▶️ (expand) Here are some things you can do to set up a production environment for your testing.</summary> |
| 738 | +<summary> (expand) ▶️ Here are some things you can do to set up a production environment for your testing.</summary> |
739 | 739 |
|
740 | 740 | <ul>
|
741 | 741 | <li>You can set up a <a href="https://jenkins.io/">Jenkins</a> 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>.</li>
|
@@ -904,7 +904,7 @@ def is_there_a_cloaked_klingon_ship_on_this_page():
|
904 | 904 | ```
|
905 | 905 |
|
906 | 906 | <details>
|
907 |
| -<summary>▶️ (expand) is_text_visible(text, selector) # is text visible on a page</summary> |
| 907 | +<summary> (expand) ▶️ is_text_visible(text, selector) # is text visible on a page</summary> |
908 | 908 |
|
909 | 909 | ```python
|
910 | 910 | def get_mirror_universe_captain_picard_superbowl_ad(superbowl_year):
|
@@ -969,7 +969,7 @@ self.activate_jquery()
|
969 | 969 | ```
|
970 | 970 |
|
971 | 971 | <details>
|
972 |
| -<summary>▶️ (expand) Here are some examples of using jQuery in your scripts.</summary> |
| 972 | +<summary> (expand) ▶️ Here are some examples of using jQuery in your scripts.</summary> |
973 | 973 |
|
974 | 974 | ```python
|
975 | 975 | self.execute_script("jQuery, window.scrollTo(0, 600)") # Scrolling the page
|
@@ -998,7 +998,7 @@ self.execute_script("return jQuery('textarea')[2].value") # Returns the css "va
|
998 | 998 | 🔵 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.
|
999 | 999 |
|
1000 | 1000 | <details>
|
1001 |
| -<summary>▶️ (expand) In this example, JavaScript creates a referral button on a page, which is then clicked.</summary> |
| 1001 | +<summary> (expand) ▶️ In this example, JavaScript creates a referral button on a page, which is then clicked.</summary> |
1002 | 1002 |
|
1003 | 1003 | ```python
|
1004 | 1004 | start_page = "https://xkcd.com/465/"
|
|
0 commit comments