page
<[object]> The page object returned fromawait browser.newPage();
in puppeteercheckCB
<[function]> A function that is called to check input values in form.check() and input.check(). You must get the params passed to this function and pass it to you test suit's expect functions. Your test must fail if they are not equal.value
Current input's valueexpectedValue
Expected value for this input.
- returns: <[object]>
Form
<[object]>Input
<[object]>Utils
<[object]>
Provides methods to handle multiple inputs
inputs
<[array]<[object]>> An array of objects that describes the input and the data to be checkedcheckData
<[string]> This one overrides the data key in check function. This is usefull when using the same inputData in fill and check function and the value is formatted.data
<[string]> The value you want to fill in your inputlabel
<[string]> The input's labelplaceholder
<[string]> The input's placeholdertype
<[string]> For now, the only type supported is text
- returns: <[Promise]>
inputs
<[array]<[object]>> An array of objects that describes the input and the data to be filleddata
<[string]> The value you want to fill in your inputlabel
<[string]> The input's labelplaceholder
<[string]> The input's placeholdertype
<[string]> For now, the only type supported is text
- returns: <[Promise]>
options
<[object]>waitForNavigation
<[boolean]> wait for navigation after submit the form. Defaults totrue
identificator
<[object]> An object that describes the element in a human way (using screen things like label instead of id and test-id)label
<[string]> The element's labelplaceholder
<[string]> The element's placeholdertag
<[string]> The element's tag nametext
<[string]> The element's text
- returns: <[Promise]>
Provides methods to handle inputs
input
<[object]> An object that describes the input and the data to be checkedcheckData
<[string]> This one overrides the data key in check function. This is usefull when using the same inputData in fill and check function and the value is formatted.data
<[string]> The value you want to fill in your inputlabel
<[string]> The input's labelplaceholder
<[string]> The input's placeholdertype
<[string]> For now, the only type supported is text
- returns: <[Promise]>
This method get the input matching label, placeholder and type, scrolls it into view if needed, click into it and fill in your data.
input
<[object]> An object that describes the input and the data to be filleddata
<[string]> The value you want to fill in your inputlabel
<[string]> The input's labelplaceholder
<[string]> The input's placeholdertype
<[string]> For now, the only type supported is text
- returns: <[Promise]>
input
<[object]> An object that describes the inputlabel
<[string]> The input's labelplaceholder
<[string]> The input's placeholdertype
<[string]> For now, the only type supported is text
- returns: <[Promise]<[string]>>
This method get the input matching label, placeholder and type, scrolls it into view if needed, click into it, get it's value and return it.
identificator
<[object]> An object that describes the element in a human way (using screen things like label instead of id and test-id)label
<[string]> The element's labelplaceholder
<[string]> The element's placeholdertag
<[string]> The element's tag nametext
<[string]> The element's text
- returns: <[Promise]>
identificator
<[object]> An object that describes the element in a human way (using screen things like label instead of id and test-id)label
<[string]> The element's labelplaceholder
<[string]> The element's placeholdertag
<[string]> The element's tag nametext
<[string]> The element's text
- returns: <[Promise]>
identificator
<[object]> An object that describes the element in a human way (using screen things like label instead of id and test-id)label
<[string]> The element's labelplaceholder
<[string]> The element's placeholdertag
<[string]> The element's tag nametext
<[string]> The element's text
- returns: <[Promise]<[ElementHandle]>>
identificator
<[object]> An object that describes the element in a human way (using screen things like label instead of id and test-id)label
<[string]> The element's labelplaceholder
<[string]> The element's placeholdertag
<[string]> The element's tag nametext
<[string]> The element's text
- returns: <[Promise]>