Methods
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
buttonText |
String
|
|
- Source:
(async) clickOnDiv(page, text)
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
text |
String
|
|
- Source:
(async) clickOnElement(page, querySelector, property) → {Promise.<Boolean>}
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
querySelector |
String
|
|
property |
Object
|
|
- Source:
Returns:
whether an element has been clicked or not
-
Type
-
Promise.<Boolean>
(async) clickOnElements(page, querySelector, properties) → {Promise.<Boolean>}
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
querySelector |
String
|
|
properties |
Object
|
|
- Source:
Returns:
whether an element has been clicked or not
-
Type
-
Promise.<Boolean>
(async) elementExists(page, querySelector, property) → {Promise.<Boolean>}
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
querySelector |
String
|
|
property |
Object
|
|
- Source:
Returns:
whether the element exists or not
-
Type
-
Promise.<Boolean>
(async) evaluate(page, js, args) → {Promise.<any>}
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
js |
function
|
|
args |
*
|
|
- Source:
Returns:
-
Type
-
Promise.<any>
(async) loadElementsFromList(page, boxSelector, fetchFunction, compareFunction, minElements) → {Promise.<any>}
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
boxSelector |
String
|
|
fetchFunction |
function
|
|
compareFunction |
function
|
|
minElements |
Number
|
|
- Source:
Returns:
elements
-
Type
-
Promise.<any>
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
boxSelector |
String
|
scrolls to the end of the box |
- Source:
Parameters:
Name |
Type |
Description |
page |
puppeteer.Page
|
|
scroll |
Number
|
how much you want to scroll |
boxSelector |
String
|
|
- Source:
StringToNumber(str) → {Number}
Parameters:
Name |
Type |
Description |
str |
String
|
|
- Source:
Returns:
-
Type
-
Number
wait(time) → {Promise.<any>}
Parameters:
Name |
Type |
Description |
time |
Number
|
|
- Source:
Returns:
-
Type
-
Promise.<any>