This is a migrated thread and some comments may be shown as answers.

Coded Steps not finding elements when run on differnt URLs

1 Answer 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rob
Top achievements
Rank 1
Rob asked on 23 May 2012, 01:33 PM
Hi,

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.

Thanks,

Rob

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 25 May 2012, 11:50 PM
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.

Greetings,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Rob
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or