- From: John Jansen <John.Jansen@microsoft.com>
- Date: Tue, 29 Oct 2013 18:08:46 +0000
- To: "public-browser-tools-testing@w3.org" <public-browser-tools-testing@w3.org>
A question has arose about how WebDriver should treat subDOMs such as those created by IFrames. It is unclear if WebDriver should be able to find and interact directly with elements within these frames or if we only have visibility to the top level DOM Some wording in the spec seems to indicate the latter: 6.1 Defining a "window" and "frame" [1] "Within this specification, a window equates to [HTML5]'s top level browsing context." 7.1 Default Content [2] "WebDriver's default content is [HTML5]'s top level browsing context for the window that is currently receiving WebDriver commands." 9.3.3 Element ID [3] "In the case of finding a single WebElement, this must be functionally identical to a call to 'document.getElementById()'." document.getElementId() does not return elements within IFrames [1] https://dvcs.w3.org/hg/webdriver/raw-file/default/webdriver-spec.html#defining-window-and-frame [2] https://dvcs.w3.org/hg/webdriver/raw-file/default/webdriver-spec.html#default-content-1 [3] https://dvcs.w3.org/hg/webdriver/raw-file/default/webdriver-spec.html#element-id
Received on Tuesday, 29 October 2013 18:09:43 UTC