Update the ReadMe

This commit is contained in:
Michael Mintz 2022-08-18 16:24:08 -04:00
parent 038a36c892
commit 9abed0d38a
1 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ pytest test_demo_site.py --chrome
<div></div>
<details>
<summary> ▶️ How is SeleniumBase different from raw Selenium? (<b><u>click to expand</u></b>)</summary>
<summary> ▶️ How is SeleniumBase different from raw Selenium? (<b>click to expand</b>)</summary>
<div>
<p>💡 SeleniumBase is a Python test framework for the <a href="https://www.w3.org/TR/webdriver2/#endpoints" target="_blank">Selenium/WebDriver</a> 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 choosing the browser to use</i>). With raw Selenium, you would need to set up your own options-parser for configuring tests from the command-line.</p>
@ -776,7 +776,7 @@ pytest user_agent_test.py --agent="Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1
<div></div>
<details>
<summary> ▶️ Here are some things you can do to set up a production environment for your testing. (<b><u>click to expand</u></b>)</summary>
<summary> ▶️ Here are some things you can do to set up a production environment for your testing. (<b>click to expand</b>)</summary>
<ul>
<li>You can set up a <a href="https://jenkins.io/" target="_blank">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>
@ -944,7 +944,7 @@ def is_there_a_cloaked_klingon_ship_on_this_page():
<div></div>
<details>
<summary> ▶️ is_text_visible(text, selector) # is text visible on a page (<b><u>click to expand</u></b>)</summary>
<summary> ▶️ is_text_visible(text, selector) # is text visible on a page (<b>click to expand</b>)</summary>
```python
def get_mirror_universe_captain_picard_superbowl_ad(superbowl_year):
@ -1010,7 +1010,7 @@ self.activate_jquery()
<div></div>
<details>
<summary> ▶️ Here are some examples of using jQuery in your scripts. (<b><u>click to expand</u></b>)</summary>
<summary> ▶️ Here are some examples of using jQuery in your scripts. (<b>click to expand</b>)</summary>
```python
self.execute_script("jQuery, window.scrollTo(0, 600)") # Scrolling the page
@ -1040,7 +1040,7 @@ self.execute_script("return jQuery('textarea')[2].value") # Returns the css "va
<div></div>
<details>
<summary> ▶️ In this example, JavaScript creates a referral button on a page, which is then clicked. (<b><u>click to expand</u></b>)</summary>
<summary> ▶️ In this example, JavaScript creates a referral button on a page, which is then clicked. (<b>click to expand</b>)</summary>
```python
start_page = "https://xkcd.com/465/"