This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25065 - F.3 - When should Webdriver be considered active?
Summary: F.3 - When should Webdriver be considered active?
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2014-03-15 08:29 UTC by Andrey Botalov
Modified: 2014-03-17 23:06 UTC (History)
3 users (show)

See Also:


Attachments

Description Andrey Botalov 2014-03-15 08:29:26 UTC
Section tells:
"When the user agent has started up it must add a read only property to window.navigator.webdriver. The value should be set to true when WebDriver is active. When WebDriver is not active then the value is equal to false."

But when Webdriver should be considered active?

For example user has "sleep 30.seconds" in his testing code. Should Webdriver be considered active after say, 20 seconds of sleeping?
Comment 1 Luke Inman-Semerau 2014-03-15 13:40:09 UTC
Active in this case means the browser was started with WrbDriver (not that there's  current WebDriver activity)

Does this need to be clarified? (I personally don't think so)
Comment 2 Andrey Botalov 2014-03-15 13:44:02 UTC
"When WebDriver is not active then the value is equal to false." seems to be invalid for now. If a browser wasn't started using Webdriver "window.navigator.webdriver" is undefined (at least in current version of Chrome).
Comment 3 Luke Inman-Semerau 2014-03-15 13:53:19 UTC
That's correct, this hasn't been implemented anywhere yet.
Comment 4 Andrey Botalov 2014-03-15 13:58:27 UTC
Ok. But it wasn't clear to me what "Webdriver is active" means. Perhaps it should be reworded to something like:

"When the browser starts up it MUST set a read-only property window.navigator.webdriver. The value should be set to true if the browser was started using implementation of WebDriver. Otherwise value should be set to false."
Comment 5 David Burns :automatedtester 2014-03-17 23:06:08 UTC
Corrected in https://dvcs.w3.org/hg/webdriver/rev/8ff320864872