Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Selenium testing

1,323 views

Published on

My Slides from my Functional UI Testing with Selenium Memphis Python Talk on 1/21/2013.

Published in: Technology
  • Be the first to comment

Selenium testing

  1. 1. UI Functional Testing with Selenium and Python
  2. 2. Ready forDeployment Bro?
  3. 3. Wat!
  4. 4. Selenium
  5. 5. Selenium IDE Web Driver Server Grid
  6. 6. Selenium IDE Web Driver Server Grid Firefox Plugin
  7. 7. Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based
  8. 8. Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based DVR Style UI Testing
  9. 9. Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based DVR Style UI Testing Simple!
  10. 10. Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based DVR Style UI Testing Simplish...
  11. 11. Selenium IDE Web Driver Server Grid Live Demo Failure here!
  12. 12. Selenium IDE Web Driver Server Grid API
  13. 13. Selenium IDE Web Driver Server Grid API Available in many languages
  14. 14. Selenium IDE Web Driver Server Grid API Available in many languages Supports many browser
  15. 15. Selenium IDE Web Driver Server Grid API Available in many languages Supports many browser More like traditional tests
  16. 16. Selenium IDE Web Driver Server Grid Live Demo Failure here!
  17. 17. ID <div id="coolestWidgetEvah">...</div>driver.find_element_by_id("coolestWidgetEvah")
  18. 18. ID XPath <input type="text" name="example" />driver.find_elements_by_xpath("//input")
  19. 19. ID XPath Name <input name="cheese" type="text"/> driver.find_element_by_name("cheese")
  20. 20. ID XPath Name <div id="food"> <span class="dairy aged">cheese</span> </div>driver.find_element_by_css_selector("#food span.dairy.aged") CSS
  21. 21. ID XPath Name <a href="http://www.google.com/search? q=cheese">cheese</a>driver.find_element_by_link_text("cheese") find_element_by_partial_link_text CSS Text
  22. 22. element.submit()
  23. 23. element.submit()inputElement.send_keys("Cheese!")
  24. 24. element.submit()inputElement.send_keys("Cheese!") inputElement.click()
  25. 25. element.submit() inputElement.send_keys("Cheese!") inputElement.click()inputElement.select_by_visible_text()
  26. 26. Selenium IDE Web Driver Server Grid Live Demo Failure here!
  27. 27. Selenium IDE Web Driver Server Grid Java based
  28. 28. Selenium IDE Web Driver Server Grid Java based Used as a proxy
  29. 29. Selenium IDE Web Driver Server Grid Java based Used as a proxy A workaround to browser version needs
  30. 30. Selenium IDE Web Driver Server Grid Parallel Test Execution
  31. 31. Selenium IDE Web Driver Server Grid Parallel Test Execution Test all the browsers
  32. 32. Selenium IDE Web Driver Server Grid Parallel Test Execution Test all the browsers umm MS Azure
  33. 33. PageFactory and Page Objects Pattern
  34. 34. Selenium Resources http://seleniumhq.org/http://selenium-python.readthedocs.org/en/latest/index.html https://github.com/jasonamyers/seleniumuitalk

×