WebDriver/Marionette/Marionette Client API: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 11: Line 11:


* {{done|'''set_context(context)'''}}: sets the context in which future commands will be executed; <code>context</code> is either "chrome" or "content"
* {{done|'''set_context(context)'''}}: sets the context in which future commands will be executed; <code>context</code> is either "chrome" or "content"
* {{ok|'''get_window()'''}}: returns an id representing the current window
* {{done|'''get_window()'''}}: returns an id representing the current window
* {{ok|'''get_windows()'''}}: returns a list of all available windows
* {{done'''get_windows()'''}}: returns a list of all available windows
* {{ok|'''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>.
* {{ok|'''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>.
* {{ok|'''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.


=== Navigation ===
=== Navigation ===
Confirmed users
561

edits

Navigation menu