Skip to content
VirtualLP Virtual Learning Platform
Testing Tools P13 beginner

Record, assert and replay tests with Selenium IDE

Install the Selenium IDE extension, record a login on the VLP Demo Store, add assertions, build a negative test, watch a broken assertion fail, run the suite and export the test to Java JUnit.

What you'll do

  • Install and start Selenium IDE
  • Record and play back a test
  • Use assert / verify commands and good locators
  • Export a recorded test to WebDriver code

Lab tasks

  1. 1 Add Selenium IDE to Chrome
  2. 2 Create project DemoStoreTests and start recording
  3. 3 Record a valid login with an assertion
  4. 4 Add three more checks and run green
  5. 5 Create the negative test
  6. 6 Break an assertion on purpose
  7. 7 Run all tests
  8. 8 Export to Java JUnit and save the project