Verify element exists

7 posts, 0 answers
  1. Tim
    Tim avatar
    3 posts
    Member since:
    Feb 2012

    Posted 27 Feb 2012 Link to this post

    I have a problem trying to verify whatever in element exists. What I'm trying to do is check if an element exists and if not perform some steps to create that element. The problem I run in to however is that it seems impossible to create a verify exists, to use in an if else. It might be that I'm missing somthing simple, but any help would be apriciated.
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 27 Feb 2012 Link to this post

    Hello Tim,

    See our troubleshooting article on this very topic.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. DemBones
    DemBones avatar
    5 posts
    Member since:
    Aug 2012

    Posted 26 Sep 2012 Link to this post

    I see that this works, but it is a work around.  Why is there not a verify element exists verification available?  I would use this in other scenarios as well.
  4. Mario
    Admin
    Mario avatar
    8 posts

    Posted 26 Sep 2012 Link to this post

    Hello Tim,

    Thank you for contacting Telerik Support.

    In regards to your query, I would like to point you to our quick verification tool page of our online documentation. I believe the verification you are looking for is the "Wait - element exists" from the Quick Tasks section.  This would conduct a verify on the element at a CheckInterval until reaching a final Timeout, the value of which can be changed to fit your needs in the properties tab of the step. However in order to use this verification in an IF logic step you will have to change its role from a Wait to a Verify by right clicking on the step -> Change Role -> Set as Verification.

    Please let me know if this proposed solution helps!

    Best Regards,
    Mario
    the Telerik team

    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Dennis
    Dennis avatar
    20 posts
    Member since:
    May 2014

    Posted 06 Jun Link to this post

    Please fix the link to the troubleshooting article referenced in the post by Anthony on 2-27-2012. It's throwing an error:

    Server Error in '/teststudio' Application.

    The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /teststudio/user-guide/troubleshooting_guide/test-execution-problems/if-else-logical-step-fails.aspx

  6. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    256 posts

    Posted 09 Jun Link to this post

    Hi Tim,

    Thank you for this feedback. The correct link that covers the topic is this one: http://docs.telerik.com/teststudio/troubleshooting-guide/test-execution-problems-tg/if-else-logical-step-fails

    Best Regards,
    Nikolay Petrov
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  7. Dennis
    Dennis avatar
    20 posts
    Member since:
    May 2014

    Posted 09 Jun in reply to Nikolay Petrov Link to this post

    Thank you!
Back to Top