Running Selenium Webdriver using python

Thursday, 27 August 2015

Using select box

a.find_element_by_xpath("//select[@name='Food']/option[text()='Veg']").click()
Posted by saurabh2k26 at 08:49
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.