Dalek.DriverNative Class
Launches the browsers to test and handles the webdriver requests & responses
Item Index
Methods
_actionQueueNonReturneeTemplate
-
fnName
-
hash
-
uuid
Generates a chain of webdriver calls for webdriver methods that don't have a return value TODO: Name is weird, should be saner
Parameters:
-
fnName
StringName of the webdriver function that should be called
-
hash
StringUnique action hash
-
uuid
StringUnique action hash
_createNonReturnee
-
fnName
Creates an anonymus function that calls a webdriver method that has no return value, emits an empty result event if the function has been run TODO: Name is weird, should be saner
Parameters:
-
fnName
StringName of the webdriver function that should be called
Returns:
fn
_driverStatus
-
statusInfo
Loads the browser driver status
Parameters:
-
statusInfo
ObjectDriver status information
Returns:
promise Driver status promise
_generateDummyDriverMessageFn
-
fnName
-
hash
-
uuid
Creates a driver notification with an empty value TODO: Name is weird, should be saner
Parameters:
-
fnName
StringName of the webdriver function that should be called
-
hash
StringUnique action hash
-
uuid
StringUnique action hash
Returns:
promise Driver message promise
_initializeProperties
-
opts
Initializes the driver properties
Parameters:
-
opts
ObjectOptions needed to kick off the driver
_initializeProperties
-
browser
Binds listeners on browser events
Parameters:
-
browser
ObjectBrowser module
_sessionStatus
-
sessionInfo
Loads the browser session status
Parameters:
-
sessionInfo
ObjectSession information
Returns:
promise Browser session promise
_startBrowserSession
-
deferred
Creates a new webdriver session Gets the driver status Gets the session status Resolves the promise (e.g. let them tests run)
Parameters:
-
deferred
ObjectBrowser session deferred
create
-
opts
Creates a new driver instance
Parameters:
-
opts
ObjectOptions needed to kick off the driver
Returns:
driver
end
()
chainable
Starts to execution of a batch of tests
flushQueue
()
chainable
Flushes the action queue (e.g. commands that should be send to the wbdriver server)
isMultiBrowser
()
Bool
Determines if the driver is a "multi" browser driver, e.g. can handle more than one browser
Returns:
isMultiBrowser Driver can handle more than one browser
start
()
Object
Checks if a webdriver session has already been established, if not, create a new one
Returns:
promise Driver promise
verifyBrowser
()
Bool
Verifies a browser request TODO: Still a noop, need to add "verify the browser" logic
Returns:
isVerifiedBrowser Driver can handle this browser