Dalek.DriverNative.Commands.Page Class
Page related methods
Item Index
Methods
_acceptAlertCb
-
hash
-
result
Sends out an event with the results of the acceptAlert
call
Parameters:
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the toFrame call
Returns:
promise Exists promise
_alertTextCb
-
expected
-
hash
-
alertText
Sends out an event with the results of the alertText
call
Parameters:
-
expected
StringExpected alert text
-
hash
StringUnique hash of that fn call
-
alertText
StringSerialized JSON with the results of the alertText call
Returns:
promise alertText promise
_dismissAlertCb
-
hash
-
result
Sends out an event with the results of the dismissAlert
call
Parameters:
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the toFrame call
Returns:
promise Exists promise
_noopCb
-
message
-
hash
Sends out an event with the results of the noop
call
Parameters:
-
message
MixedWhatever yu like
-
hash
StringUnique hash of that fn call
Returns:
Promise
_promptTextCb
-
dimensions
-
hash
-
result
Sends out an event with the results of the promptText
call
Parameters:
-
dimensions
ObjectNew window width & height
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the toFrame call
Returns:
promise Exists promise
_sourceCb
-
hash
-
source
Sends out an event with the results of the source
call
Parameters:
-
hash
StringUnique hash of that fn call
-
source
StringSerialized JSON with the results of the source call
Returns:
Promise
_titleCb
-
expected
-
hash
-
title
Sends out an event with the results of the title
call
Parameters:
-
expected
StringExpected page title
-
hash
StringUnique hash of that fn call
-
title
StringSerialized JSON with the results of the title call
Returns:
promise Title promise
_waitCb
-
timeout
-
hash
-
uuid
Sends out an event with the results of the wait
call
Parameters:
-
timeout
IntegerTime to wait in ms
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
Returns:
promise WaitForElement promise
acceptAlert
-
hash
Accepts (e.g. oressing the OK button) an javascript alert, prompt or confirm dialog
Parameters:
-
hash
StringUnique hash of that fn call
alertText
-
expected
-
hash
Checks the text of an alaert, prompt or confirm dialog
Parameters:
-
expected
StringExpected alert text
-
hash
StringUnique hash of that fn call
dismissAlert
-
hash
Accepts (e.g. oressing the OK button) an javascript alert, prompt or confirm dialog
Parameters:
-
hash
StringUnique hash of that fn call
noop
-
message
-
hash
This function is non operational
Parameters:
-
message
MixedWhatever yu like
-
hash
StringUnique hash of that fn call
promptText
-
dimensions
-
hash
Sends text to a javascript prompt dialog box
Parameters:
-
dimensions
ObjectNew window width & height
-
hash
StringUnique hash of that fn call
source
-
hash
Gets the HTML source of a page
Parameters:
-
hash
StringUnique hash of that fn call
title
-
expected
-
hash
Checks the document title of a page
Parameters:
-
expected
StringExpected page title
-
hash
StringUnique hash of that fn call
wait
-
timeout
-
hash
-
uuid
Wait for a specific amount of time
Parameters:
-
timeout
IntegerTime to wait in ms
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call