Skip to content

Commit

Permalink
Merge pull request #92 from nehbehl/master
Browse files Browse the repository at this point in the history
Added element selection by css
  • Loading branch information
baijum committed Oct 22, 2020
2 parents 6b40dff + 1d31667 commit c048b93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/navigating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ you could find it using any of::
element = driver.find_element_by_id("passwd-id")
element = driver.find_element_by_name("passwd")
element = driver.find_element_by_xpath("//input[@id='passwd-id']")
element = driver.find_element_by_css_selector("input#passwd-id")

You can also look for a link by its text, but be careful! The text
must be an exact match! You should also be careful when using `XPATH
Expand Down

0 comments on commit c048b93

Please sign in to comment.