Avoid waiting for the whole page loaded

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    9 posts
    Member since:
    Jul 2012

    Posted 19 Dec 2012 Link to this post

    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?
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 20 Dec 2012 Link to this post

    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
  3. Kevin
    Kevin avatar
    9 posts
    Member since:
    Jul 2012

    Posted 08 Apr 2013 Link to this post

    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.
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 09 Apr 2013 Link to this post

    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
Back to Top