Selenium Webdriver With Python
Basic Example import unittest from selenium import webdriver class Login ( unittest . TestCase ): def setUp ( self ): self . driver = webdriver . Firefox () def tearDown ( self ): self . driver . quit () def test_login ( self ): driver = self . driver driver . get ( 'http://testurl' ) username = driver . find_element_by_name ( 'user_id' ) username . send_keys ( 'admin' ) Selecting element from drop down list el = driver.find_element_by_id( 'id_line' ) for option in el.find_elements_by_tag_name( 'option' ): if option.text = = "line to select" : option.click() break Verifying Table Values #Importing selenium webdriver library from selenium import webdriver #Creating an driver instance of Firefox browser driver = web...