thanks, but further question is you say that "Driver instance you
have
created should take care of the page. Whenever a page is loaded
completely
then only it will perform further actions" so what if -
1. sometimes when we play an action, it does not cause page reload,
what will the action (i.e. click) execute, will it automatically
defect the page status and take the right action or something else?
can you explain more internal details?
2. if webdriver can take care of the page load automatically, is there
a way to set the timeout for the page load wait time like selenium1.0?
-Jovi
> On Wed, Sep 8, 2010 at 6:51 AM, hrushikesh amdekar <
hrush...@gmail.com>wrote:
>
>
>
> > You dont need to use any wait for page load method. Driver instance you
> > have created should take care of the page. Whenever a page is loaded
> > completely then only it will perform further actions.,, However if you want
> > to use any wait for page to load then you can design one with
> > Thread.sleep(1000) method using a for loop and a break. However driver
> > instance created in Webdriver takes care of page loading automatically.
>
> > Hope this helps.
>
> > On Wed, Sep 8, 2010 at 2:39 PM, shen xieyin <
shenxie...@gmail.com> wrote:
>
> >> Hi,
>
> >> I am now doing a pilot work to migrate our test code from selenium1 to
> >> selenium2, when I use findElement(By).click to find the target
> >> element, which cause a page to reload or to load to a new page, so
> >> what method can I call to wait for page load to be finished, just like
> >> waitForPageLoad in Selenium interface originally?
>
> >> Thanks,
> >> -Jovi
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "webdriver" group.
> >> To post to this group, send email to
webd...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >>
webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups .com>
> >> .
> >
webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups .com>
> > .