Is it possible to get the current status bar text?

503 views
Skip to first unread message

Dave Hunt

unread,
Dec 14, 2009, 12:01:09 PM12/14/09
to webdriver
I have tests that occasionally time out waiting for a page to load,
and in these cases there's very little information in my debug to
determine what the page was waiting for. If I watch these tests
running the browser's status bar has something like "Waiting for...".
Is there any way to get this text using WebDriver? It would be very
useful for debugging failures - and identifying ways to speed up
tests.

Cheers,
Dave.

John Lockhart

unread,
Dec 15, 2009, 3:44:06 AM12/15/09
to webdriver
Maybe I'm being thick, but what do you mean by "browser's status bar"?
None of the browsers I run have a status bar at the bottom and I'm not
aware of anything like that in HTML unless you mean the title at the
top?

cheers,
John (john at webtest.co.nz)

Dave Hunt

unread,
Dec 15, 2009, 7:04:01 AM12/15/09
to webdriver
In Firefox: View -> Status Bar

Andrian Kurniady

unread,
Dec 15, 2009, 9:55:50 AM12/15/09
to webd...@googlegroups.com
Hi Dave,

I believe this is currently not possible without modifying the firefox
driver internals.
I don't think this is also possible on any other browser with
WebDriver currently.

Maybe a screenshot will help you debug better rather than just the status bar.
Or if it is for debugging only, you should be able to launch firefox
on your screen
and watch the test progresses, no?

Hope it helps.

-Kurniady
> --
>
> 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.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>
>
>

Dave Hunt

unread,
Dec 15, 2009, 10:43:32 AM12/15/09
to webdriver
A screenshot of the browser window would help. I am currently using
the captureEntirePage* command in the Selenium RC API, but there are
two issues with this; it just captures the content and not the actual
window, and if the page hasn't finished loading then I can't do
anything with Selenium.

I think the nicest solution would be to include more details in the
timeout exception.

Simon Stewart

unread,
Dec 15, 2009, 12:50:08 PM12/15/09
to webd...@googlegroups.com
This is the sort of thing that a separate proxy would be very useful
for. There are plans to extract the one from Selenium RC and make it a
standalone thing.

Simon

John Lockhart

unread,
Dec 15, 2009, 12:51:34 PM12/15/09
to webd...@googlegroups.com
ah yes, so it was a dumb question - duh!

this seems to be browser-specific in that chrome and firefox display completely different data for the same page loading and given that it's not part of html I think it unlikely that webdriver handles it as it would have to be implemented separately for every driver, but I see what you mean about it being useful, not as a validation but as a way to check the progress of complex page operations etc.

I'm sure Simon can confirm one way or the other.

cheers,
          John

Reply all
Reply to author
Forward
0 new messages