Skip to content

Commit ef60fb2

Browse files
committed
Better documentation
1 parent a4f983a commit ef60fb2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,14 @@ self.wait_for_element_present("div.my_class", timeout=10)
347347
self.wait_for_element_visible("a.my_class", timeout=5)
348348
```
349349

350-
You can even combine visibility checking and clicking into one statement like so:
350+
Since the line above returns the element, you can combine that with .click() as shown below:
351351

352352
```python
353353
self.wait_for_element_visible("a.my_class", timeout=5).click()
354+
355+
# But you're better off using the following statement, which does the same thing:
356+
357+
self.click("a.my_class") # DO IT THIS WAY!
354358
```
355359

356360
#### Asserting visibility of text inside an element on a page within some number of seconds:

0 commit comments

Comments
 (0)