Selenium Notes

Skip to end of metadata
Go to start of metadata

Testing for text on page

Testing for ids or links

Testing if a radio button is selected or not

Testing to see if an input field has data

h2 Testing to see if a Select drop down was chosen

Selecting inputs

Testing if a class is present

  • Looks for <div id="wrapper" class="MyPageName"></div>

Helper 'click link' method

  • Catches when pages time out and retries link at least once.
  • Usage.
  • Startup Selenium, closing window when done:
  • Startup Selenium, leaving window open:

Starting Junit tests

Capture screenshot of exception

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.