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:
-
hashStringUnique hash of that fn call
-
resultStringSerialized 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:
-
expectedStringExpected alert text
-
hashStringUnique hash of that fn call
-
alertTextStringSerialized 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:
-
hashStringUnique hash of that fn call
-
resultStringSerialized 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:
-
messageMixedWhatever yu like
-
hashStringUnique hash of that fn call
Returns:
Promise
_promptTextCb
-
dimensions -
hash -
result
Sends out an event with the results of the promptText call
Parameters:
-
dimensionsObjectNew window width & height
-
hashStringUnique hash of that fn call
-
resultStringSerialized 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:
-
hashStringUnique hash of that fn call
-
sourceStringSerialized 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:
-
expectedStringExpected page title
-
hashStringUnique hash of that fn call
-
titleStringSerialized 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:
-
timeoutIntegerTime to wait in ms
-
hashStringUnique hash of that fn call
-
uuidStringUnique 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:
-
hashStringUnique hash of that fn call
alertText
-
expected -
hash
Checks the text of an alaert, prompt or confirm dialog
Parameters:
-
expectedStringExpected alert text
-
hashStringUnique hash of that fn call
dismissAlert
-
hash
Accepts (e.g. oressing the OK button) an javascript alert, prompt or confirm dialog
Parameters:
-
hashStringUnique hash of that fn call
noop
-
message -
hash
This function is non operational
Parameters:
-
messageMixedWhatever yu like
-
hashStringUnique hash of that fn call
promptText
-
dimensions -
hash
Sends text to a javascript prompt dialog box
Parameters:
-
dimensionsObjectNew window width & height
-
hashStringUnique hash of that fn call
source
-
hash
Gets the HTML source of a page
Parameters:
-
hashStringUnique hash of that fn call
title
-
expected -
hash
Checks the document title of a page
Parameters:
-
expectedStringExpected page title
-
hashStringUnique hash of that fn call
wait
-
timeout -
hash -
uuid
Wait for a specific amount of time
Parameters:
-
timeoutIntegerTime to wait in ms
-
hashStringUnique hash of that fn call
-
uuidStringUnique hash of that fn call
