testing the web with selenium
TRANSCRIPT
![Page 1: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/1.jpg)
Automating the Web with Selenium
Mark SunSoftware Engineer
![Page 2: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/2.jpg)
Agenda•Vision•Why•What •How•Demo
![Page 3: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/3.jpg)
Vision
![Page 4: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/4.jpg)
Why
![Page 5: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/5.jpg)
What
![Page 6: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/6.jpg)
Selenium WebDriver
automates the browser
![Page 7: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/7.jpg)
How
Language Bindings
![Page 8: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/8.jpg)
![Page 9: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/9.jpg)
Finding our elements•find_element_by_id•find_element_by_class_name•find_element_by_xpath
![Page 10: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/10.jpg)
Act on our elements•click•send_keys•clear
![Page 11: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/11.jpg)
Examining our elements•get_attribute• is_displayed• is_enabled• is_selected
![Page 12: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/12.jpg)
Making Assertions•self.assertTrue•self.assertFalse•self.assertEqual
![Page 13: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/13.jpg)
Taking screenshots
save_screenshot(‘screenshot.png’)
![Page 14: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/14.jpg)
Demo Time!
![Page 15: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/15.jpg)
Resources• https://www.python.org/• https://selenium-python.readthedocs.org/
![Page 16: Testing the Web with Selenium](https://reader036.vdocuments.mx/reader036/viewer/2022062522/587f17fb1a28ab350c8b5281/html5/thumbnails/16.jpg)
Q & A