testing the web with selenium
Post on 18-Jan-2017
135 Views
Preview:
TRANSCRIPT
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
top related