Running Selenium Webdriver using python

Thursday, 27 August 2015

Clicking an element

a = driver.find_element_by_xpath("/html/body/div[4]/div/ul/li[1]/a")
a.click()
Posted by saurabh2k26 at 08:39
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

saurabh2k26
View my complete profile

Blog Archive

  • ▼  2015 (21)
    • ►  December (10)
    • ▼  August (11)
      • Upload file
      • back button
      • Image found or not
      • Using select box
      • Clearing a field
      • Reading attributes of elements
      • Entering data into elements
      • Saving screeshot
      • Reading text of an element
      • Clicking an element
      • Different methods to find an element
Simple theme. Powered by Blogger.