WebDriver/Marionette/Marionette Client API: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 3: Line 3:
=== Configuration ===
=== Configuration ===


* {{done|set_script_timeout(ms)}}: sets the timeout for asynchronous scripts
* {{done|'''set_script_timeout(ms)'''}}: sets the timeout for asynchronous scripts
* {{done|set_search_timeout(ms)}}: sets the maximum time Marionette will wait while searching for a DOM element using any of the find_ methods
* {{done|'''set_search_timeout(ms)'''}}: sets the maximum time Marionette will wait while searching for a DOM element using any of the find_ methods


=== Context Management ===
=== Context Management ===


* {{done|set_context(context)}}: sets the context in which future commands will be executed; 'context' is either "chrome" or "content"
* {{done|'''set_context(context)'''}}: sets the context in which future commands will be executed; 'context' is either "chrome" or "content"
* {{ok|get_window()}}: returns an id representing the current window
* {{ok|'''get_window()'''}}: returns an id representing the current window
* {{ok|get_windows()}}: returns a list of all available windows
* {{ok|'''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. 'window' is one of the id's returned by get_windows().
* {{ok|'''switch_to_window(window)'''}}: sets the active window; all future commands will be targeted here. 'window' is one of the id's returned by get_windows().
* {{ok|switch_to_frame(id)}}: sets the active frame; all future commands will be targeted here.  'id' is either the id of an iframe, an HTMLElement (see below) representing an iframe, or None to target the default top-level frame.
* {{ok|'''switch_to_frame(id)'''}}: sets the active frame; all future commands will be targeted here.  'id' is either the id of an iframe, an HTMLElement (see below) representing an iframe, or None to target the default top-level frame.
Confirmed users
1,905

edits

Navigation menu