Testing the Web with Selenium
16
Automating the Web with Selenium Mark Sun Software Engineer
Transcript of Testing the Web with Selenium
Automating the Web with Selenium
Mark SunSoftware Engineer
Agenda•Vision•Why•What •How•Demo
Vision
Why
What
Selenium WebDriver
automates the browser
How
Language Bindings
Finding our elements•find_element_by_id•find_element_by_class_name•find_element_by_xpath
Act on our elements•click•send_keys•clear
Examining our elements•get_attribute• is_displayed• is_enabled• is_selected
Making Assertions•self.assertTrue•self.assertFalse•self.assertEqual
Taking screenshots
save_screenshot(‘screenshot.png’)
Demo Time!
Resources• https://www.python.org/• https://selenium-python.readthedocs.org/
Q & A