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

Avoid waiting for the whole page loaded

3 Answers 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 19 Dec 2012, 07:20 PM
Hi team,
when i use ActiveBrowser.NavigateTo(url) method to open a page, it seems that the browser will wait until the page is totally loaded, that means if there is an image or an icon is not completely loaded, the browser will wait. so my question is how can we let it go to next step without keeping waiting once the link that i need is loaded?

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 20 Dec 2012, 11:42 PM
Hello Kevin,

Let's clarify how the NavigateTo method works. If you are using it in the Test Studio as a non coded step Test Studio will wait until the browser is ready. It contains WaitUntilReady Method.

However if you convert the step to code or write it manually then Test Studio will not wait until browser is ready. The NavigateTo coded step should contains only one row of code.

ActiveBrowser.NavigateTo("http://telerik.com",true);

Let me know if this helps.Kind regards,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Kevin
Top achievements
Rank 1
answered on 09 Apr 2013, 04:38 AM
well, it make sense that browser will not wait unless it is ready with code step you attached, but how can we control the action that once an element is loaded script can move do next step.
0
Boyan Boev
Telerik team
answered on 09 Apr 2013, 02:14 PM
Hi Kevin,

You just need to add an  WaitForExists step for the element you are going to use.

Test Studio will wait until the element exists and then it will move to the next step.

Hope this helps.

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