Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b40dff + 1d31667 commit c048b93Copy full SHA for c048b93
source/navigating.rst
@@ -33,6 +33,7 @@ you could find it using any of::
33
element = driver.find_element_by_id("passwd-id")
34
element = driver.find_element_by_name("passwd")
35
element = driver.find_element_by_xpath("//input[@id='passwd-id']")
36
+ element = driver.find_element_by_css_selector("input#passwd-id")
37
38
You can also look for a link by its text, but be careful! The text
39
must be an exact match! You should also be careful when using `XPATH
0 commit comments