Forum Discussion

jsmiley's avatar
jsmiley
Occasional Contributor
14 years ago

Is there a checkpoint you can use for "Element Exists"?

Hi,



So I am trying to write a test script which will check to see if elements exist on the page or not. All elements will be using the DOM model and the elements I will be looking for will have an ID string.



Is there a way to have a checkpoint which just checks to see if the element exists on the page or not?

4 Replies

  • jsmiley's avatar
    jsmiley
    Occasional Contributor
    Thanks Jared!



    Is there any way to do this through the GUI interface?



    I don't have anything against scripting myself, however, I work with a team of QA testers that have no knowledge of scripting and would love to be able to show them ways of recording scripts without my help.
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Jason,



    Maybe in this case you can consider recording not scripts but Keyword tests that has an option to insert checkpoints during recording via wizard?
  • jsmiley's avatar
    jsmiley
    Occasional Contributor
    Hey Alex,



    Yes, I actually figured out it is easy to do this when using If and Else statements in the Keyword Test interface.



    If (Element Exists)

    LOG MESSAGE

    Else

    LOG MESSAGE