Driver Class
Create a new Driver session, remember to call .dispose()
at the end to terminate the session.
Constructor
Item Index
Methods
- _createSession
- _getValue
- _logMethodCall
- _requestJSON
- _session
- adjust
- browser
- browserId
- browserName
- browserVersion
- chain
- compatibility
- deviceName
- deviceOrientation
- dispose
- getApplicationCacheStatus
- getLogs
- getLogTypes
- getSessions
- getStatus
- getValue
- helpers
- isAsync
- isSync
- platform
- quit
- sauceJobUpdate
- session
- sessionStorage
- setValue
- timeOut
Properties
- APPLICATION_CACHE_CHECKING static
- APPLICATION_CACHE_DOWNLOADING static
- APPLICATION_CACHE_IDLE static
- APPLICATION_CACHE_OBSOLETE static
- APPLICATION_CACHE_UNCACHED static
- APPLICATION_CACHE_UPDATE_READY static
- MODE_ASYNC static
- MODE_SYNC static
Events
Methods
_createSession
    
        - 
                    
                        desiredCapabilities
- 
                    
                        [requiredCapabilities]
Create a selenium session
Returns:
_getValue
    
        - 
                    
                        [value]
Returns value according to mode
Parameters:
- 
                    
                        [value]optional
Returns:
_requestJSON
    
        - 
                    
                        method
- 
                    
                        path
- 
                    
                        [body]
- 
                    
                        [options]
Performs a context dependent JSON request for the current session. The result is parsed for errors.
Returns:
_session
    
        ()
    
    
        
            Session
        
    
    
    
        private
    
    
    
    
    
    
    Get the session object of current session
Note: This function call is not logged!
Returns:
adjust
    
        - 
                    
                        [options]
Adjusts the configurations according to the browsers behavior.
Note: This is needed especially when screenshots should be taken since browsers behave here very different from each other.
Needs to be called only once per taxi instance.
Parameters:
- 
                    
                        [options]Object optionalPreparation options - 
                                
                                    [url='http://www.example.org']Int optionalDefault website for adjustment for browser 
- 
                                
                                    [horizontalPadding=0]Int optionalPadding of the document 
 
- 
                                
                                    
browserId
    
        ()
    
    
        
            String
        
    
    
    
    
    
    
    
    
    Gets a complete identifier of selected browser (+ version) and platform
Returns:
compatibility
    
        ()
    
    
        
            Compatibility
        
    
    
    
    
    
    
    
    
    Get the compatibility object. Direct-access. No need to wait.
Returns:
getLogs
    
        - 
                    
                        logType
Get the log for a given log type. Log buffer is reset after each request.
Parameters:
- 
                    
                        logTypeString
Returns:
getLogTypes
    
        ()
    
    
        
            Array.Get available log types
Returns:
getSessions
    
        - 
                    
                        remote
- 
                    
                        mode
Returns a list of the currently active sessions
Note: Appears not to be supported by the selenium-standalone-server!
Returns:
quit
    
        ()
    
    
    
    
    
    
    
    
    
    End this Driver session
Alias for dispose
sessionStorage
    
        ()
    
    
        
            SessionStorage
        
    
    
    
    
    
    
    
    
    Get the Session-Storage object. Direct-access. No need to wait.
Returns:
setValue
    
        - 
                    
                        name
- 
                    
                        value
Sets the value of an entry in the registry
Properties
APPLICATION_CACHE_CHECKING
    Int
    
    
    
    
        static
    
    
    Status of the HTML5 application cache - Checking
APPLICATION_CACHE_DOWNLOADING
    Int
    
    
    
    
        static
    
    
    Status of the HTML5 application cache - Downloading
APPLICATION_CACHE_IDLE
    Int
    
    
    
    
        static
    
    
    Status of the HTML5 application cache - Idle
APPLICATION_CACHE_OBSOLETE
    Int
    
    
    
    
        static
    
    
    Status of the HTML5 application cache - Obsolete
APPLICATION_CACHE_UNCACHED
    Int
    
    
    
    
        static
    
    
    Status of the HTML5 application cache - Uncached
APPLICATION_CACHE_UPDATE_READY
    Int
    
    
    
    
        static
    
    
    Status of the HTML5 application cache - Update-ready
Events
disposed
    
    
    
    
    
    
    Fired when the session is destroyed
