Skip to content

Commit b823848

Browse files
committed
Update the ReadMe
1 parent 893d50a commit b823848

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,13 @@ COMMANDS:
324324
Use "pytest" for running tests.
325325
```
326326
327-
🔵 **Downloading webdrivers:**
327+
<h3>🔵 Downloading webdrivers:</h3>
328328
329329
✅ SeleniumBase automatically downloads webdrivers as needed, such as ``chromedriver``.
330330
331331
<div></div>
332332
<details>
333-
<summary> ▶️ Here's output from a download. (<b>click to expand</b>)</summary>
333+
<summary> ▶️ Here's output from a chromedriver download. (<b>click to expand</b>)</summary>
334334
335335
```bash
336336
*** chromedriver version for download = 114.0.5735.90 (Latest)
@@ -951,7 +951,7 @@ pytest [YOUR_TEST_FILE.py] --with-db-reporting --with-s3-logging
951951
<a id="detailed_method_specifications"></a>
952952
<h3><img src="https://seleniumbase.github.io/img/logo7.png" title="SeleniumBase" width="32" /> Detailed Method Specifications and Examples:</h3>
953953
954-
<h4>🔵 Navigating to a web page: (and related commands)</h4>
954+
🔵 **Navigating to a web page: (and related commands)**
955955
956956
```python
957957
self.open("https://xkcd.com/378/") # This method opens the specified page.
@@ -976,7 +976,7 @@ head_close_tag = source.find('</head>', head_open_tag)
976976
everything_inside_head = source[head_open_tag+len('<head>'):head_close_tag]
977977
```
978978
979-
🔵 Clicking:
979+
🔵 **Clicking:**
980980
981981
To click an element on the page:
982982
@@ -986,7 +986,7 @@ self.click("div#my_id")
986986
987987
**ProTip™:** In most web browsers, you can right-click on a page and select ``Inspect Element`` to see the CSS selector details that you'll need to create your own scripts.
988988
989-
🔵 Typing Text:
989+
🔵 **Typing Text:**
990990
991991
<code>self.type(selector, text)</code> # updates the text from the specified element with the specified value. An exception is raised if the element is missing or if the text field is not editable. Example:
992992
@@ -996,27 +996,27 @@ self.type("input#id_value", "2012")
996996
997997
You can also use <code>self.add_text()</code> or the <a href="https://www.selenium.dev/documentation/webdriver/" target="_blank">WebDriver</a> <code>.send_keys()</code> command, but those won't clear the text box first if there's already text inside.
998998
999-
🔵 Getting the text from an element on a page:
999+
🔵 **Getting the text from an element on a page:**
10001000
10011001
```python
10021002
text = self.get_text("header h2")
10031003
```
10041004
1005-
🔵 Getting the attribute value from an element on a page:
1005+
🔵 **Getting the attribute value from an element on a page:**
10061006
10071007
```python
10081008
attribute = self.get_attribute("#comic img", "title")
10091009
```
10101010
1011-
🔵 Asserting existence of an element on a page within some number of seconds:
1011+
🔵 **Asserting existence of an element on a page within some number of seconds:**
10121012
10131013
```python
10141014
self.wait_for_element_present("div.my_class", timeout=10)
10151015
```
10161016
10171017
(NOTE: You can also use: ``self.assert_element_present(ELEMENT)``)
10181018
1019-
🔵 Asserting visibility of an element on a page within some number of seconds:
1019+
🔵 **Asserting visibility of an element on a page within some number of seconds:**
10201020
10211021
```python
10221022
self.wait_for_element_visible("a.my_class", timeout=5)
@@ -1042,7 +1042,7 @@ You can also use ``*=`` to search for any partial value in a CSS selector as sho
10421042
self.click('a[name*="partial_name"]')
10431043
```
10441044
1045-
🔵 Asserting visibility of text inside an element on a page within some number of seconds:
1045+
🔵 **Asserting visibility of text inside an element on a page within some number of seconds:**
10461046
10471047
```python
10481048
self.assert_text("Make it so!", "div#trek div.picard div.quotes")
@@ -1051,7 +1051,7 @@ self.assert_text("Tea. Earl Grey. Hot.", "div#trek div.picard div.quotes", timeo
10511051
10521052
(NOTE: ``self.find_text(TEXT, ELEMENT)`` and ``self.wait_for_text(TEXT, ELEMENT)`` also do this. For backwards compatibility, older method names were kept, but the default timeout may be different.)
10531053
1054-
🔵 Asserting Anything:
1054+
🔵 **Asserting Anything:**
10551055
10561056
```python
10571057
self.assert_true(var1 == var2)
@@ -1061,7 +1061,7 @@ self.assert_false(var1 == var2)
10611061
self.assert_equal(var1, var2)
10621062
```
10631063
1064-
🔵 Useful Conditional Statements: (with creative examples)
1064+
🔵 **Useful Conditional Statements: (with creative examples)**
10651065
10661066
``is_element_visible(selector):`` (visible on the page)
10671067

0 commit comments

Comments
 (0)