Methods
alert() → {sailbot}
- Source:
Returns:
chainable with webdriver native functions. EG:
alert()( .accept() | .dismiss() | .getText() | .cancel(arg0)...)
-
Type
-
sailbot
attribute(attribute) → {promise}
Parameters:
Name |
Type |
Description |
attribute |
string
|
name |
- Source:
Returns:
value (when get() used) or array of values (getAll())
-
Type
-
promise
clear() → {sailbot}
- Source:
Returns:
-
Type
-
sailbot
click(returnPromiseopt) → {sailbot|promise}
Parameters:
Name |
Type |
Attributes |
Description |
returnPromise |
Any
|
<optional>
|
pass any value to return a promise |
- Source:
Returns:
promise if a param is passed
-
Type
-
sailbot
|
promise
get(cssSelector) → {sailbot}
Parameters:
Name |
Type |
Description |
cssSelector |
string
|
|
- Source:
Returns:
-
Type
-
sailbot
getAll(cssSelector) → {sailbot}
Parameters:
Name |
Type |
Description |
cssSelector |
string
|
|
- Source:
Returns:
-
Type
-
sailbot
innerHtml() → {promise}
- Source:
Returns:
value (when get() used) or array of values (getAll())
-
Type
-
promise
isFound() → {sailbot}
- Source:
Returns:
-
Type
-
sailbot
isVisible() → {sailbot}
- Source:
Returns:
-
Type
-
sailbot
quit() → {sailbot}
- Source:
Returns:
-
Type
-
sailbot
Sailbot(optionsopt) → {object}
Namespace Object composed
Parameters:
Name |
Type |
Attributes |
Default |
Description |
options |
object
|
<optional>
|
{timeout: '30', port: 7055}
|
Pass a property 'dev' to launch and keep session/browser opened
Pass a property 'id': {string} session id, to attach to session |
- Source:
Returns:
sailbot
-
Type
-
object
sleep(ms) → {sailbot}
Parameters:
Name |
Type |
Description |
ms |
number
|
|
- Source:
Returns:
-
Type
-
sailbot
switchTo(frameopt) → {sailbot}
Switches to all of the frames in order passed in the array
Parameters:
Name |
Type |
Attributes |
Description |
frame |
array
|
<optional>
|
iframe's DOM node path -name or id.
Pass any string to switch to defaultContent() |
- Source:
Returns:
-
Type
-
sailbot
text() → {promise}
- Source:
Returns:
value (when get() used) or array of values (getAll())
-
Type
-
promise
to(url) → {sailbot}
Parameters:
Name |
Type |
Description |
url |
string
|
|
- Source:
Returns:
-
Type
-
sailbot
waitFor(cssSelector) → {sailbot}
Parameters:
Name |
Type |
Description |
cssSelector |
string
|
|
- Source:
Returns:
chain with with isFound() or isVisible()
-
Type
-
sailbot
write(text) → {sailbot}
Parameters:
Name |
Type |
Description |
text |
string
|
|
- Source:
Returns:
-
Type
-
sailbot