Coded Steps not finding elements when run on differnt URLs

2 posts, 0 answers
  1. Rob
    Rob avatar
    4 posts
    Member since:
    Apr 2012

    Posted 23 May 2012 Link to this post


    Is it not possible to record steps, convert to code then run these on different URLs when the application is the same? I have done exactly this but they keep failing as some elements cannot be found when they do exist. I am attempting this via the Visual Studio plugin and all my steps have been converted to code.

    Any help much appreciated and urgently required.


  2. Byron
    Byron avatar
    184 posts

    Posted 25 May 2012 Link to this post

    Hello Rob,

    Generally, it is possible to run tests against different URLs. In some cases, however, this might lead to certain issues. For example, some test steps may be using a URL to find an element or frame. If this is the case, you may be able to modify your test to use a base URL, or modify your test step properties to use a partial URL that will work across your testing environments, or use a find logic that does not include a URL or uses . I also recommend reviewing our documentation on common obstacles to locating elements in Test Studio.

    Lastly, as a matter of principle we recommend against using any more coded steps than are necessary, because generally coded steps increase the amount maintenance your test will require in the future.

    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top