Confirmed users
561
edits
| Line 13: | Line 13: | ||
* {{done|'''get_window()'''}}: returns an id representing the current window | * {{done|'''get_window()'''}}: returns an id representing the current window | ||
* {{done'''get_windows()'''}}: returns a list of all available windows | * {{done'''get_windows()'''}}: returns a list of all available windows | ||
* {{ | * {{done|'''switch_to_window(window)'''}}: sets the active window; all future commands will be targeted here. <code>window</code> is one of the id's returned by <code>get_windows()</code>. Note: WebDriver is not clear on the definition of 'window'. Selenium uses the 'navigator:browser' windows, so this will not work as expected in B2G, where we don't use navigator:browser within Gaia. Fortunately, there is only one window in gaia, so this should not be a problem. | ||
* {{done|'''switch_to_frame(id)'''}}: sets the active frame; all future commands will be targeted here. <code>id</code> is either the id of an iframe, an HTMLElement (see below) representing an iframe, or None to target the default top-level frame. | * {{done|'''switch_to_frame(id)'''}}: sets the active frame; all future commands will be targeted here. <code>id</code> is either the id of an iframe, an HTMLElement (see below) representing an iframe, or None to target the default top-level frame. | ||