wallaby v0.23.0 Wallaby.Phantom View Source
Wallaby driver for PhantomJS.
Usage
Start a Wallaby Session using this driver with the following command:
{:ok, session} = Wallaby.start_session()
Notes
This driver requires PhantomJS be installed in your path. You can install PhantomJS through NPM or your package manager of choice:
$ npm install -g phantomjs-prebuilt
If you need to specify a specific PhantomJS you can pass the path in the configuration:
config :wallaby, phantomjs: "node_modules/.bin/phantomjs"
You can also pass arguments to PhantomJS through the phantomjs_args
config setting, e.g.:
config :wallaby, phantomjs_args: "--webdriver-logfile=phantomjs.log"
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Invoked to close the currently focused window.
Invoked to change the driver focus to specified frame.
Invoked to change the driver focus to parent frame.
Invoked to change the driver focus to window specified by handle.
Invoked to retrieve the position of the currently focused window.
Callback invoked to start the supervisor and during hot code upgrades.
See Wallaby.Phantom.Driver.log/1
.
Invoked to maximize the currently focused window.
See Wallaby.Phantom.Logger.parse_log/1
.
Invoked to set the position of the currently focused window.
Invoked to get the handle for the currently focused window.
Invoked to get the list of handles for all windows.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Invoked to close the currently focused window.
Callback implementation for c:Wallaby.Driver.close_window/1
.
Invoked to change the driver focus to specified frame.
Callback implementation for c:Wallaby.Driver.focus_frame/2
.
Invoked to change the driver focus to parent frame.
Callback implementation for c:Wallaby.Driver.focus_parent_frame/1
.
Invoked to change the driver focus to window specified by handle.
Callback implementation for c:Wallaby.Driver.focus_window/2
.
Invoked to retrieve the position of the currently focused window.
Callback implementation for c:Wallaby.Driver.get_window_position/1
.
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke Supervisor.init/2
at the end of their
init callback to return the proper supervision flags.
Callback implementation for Supervisor.init/1
.
See Wallaby.Phantom.Driver.log/1
.
Invoked to maximize the currently focused window.
Callback implementation for c:Wallaby.Driver.maximize_window/1
.
See Wallaby.Phantom.Logger.parse_log/1
.
Invoked to set the position of the currently focused window.
Callback implementation for c:Wallaby.Driver.set_window_position/3
.
Invoked to get the handle for the currently focused window.
Callback implementation for c:Wallaby.Driver.window_handle/1
.
Invoked to get the list of handles for all windows.
Callback implementation for c:Wallaby.Driver.window_handles/1
.