We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4f983a commit ef60fb2Copy full SHA for ef60fb2
README.md
@@ -347,10 +347,14 @@ self.wait_for_element_present("div.my_class", timeout=10)
347
self.wait_for_element_visible("a.my_class", timeout=5)
348
```
349
350
-You can even combine visibility checking and clicking into one statement like so:
+Since the line above returns the element, you can combine that with .click() as shown below:
351
352
```python
353
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!
358
359
360
#### Asserting visibility of text inside an element on a page within some number of seconds:
0 commit comments