Biblioteca de Condições Esperadas Úteis Service
wdio-wait-for é um pacote de terceiros, para mais informações consulte GitHub | npm
wdio-wait-for é uma biblioteca Node.js para WebdriverIO que fornece um conjunto de condições comuns que proporcionam funcionalidades para aguardar certas condições até que uma tarefa definida seja concluída.
Instalação
Para usar o wdio-wait-for no seu projeto, execute:
npm i -D wdio-wait-for
Se você usa Yarn, execute:
yarn add --dev wdio-wait-for
API
- alertIsPresent
- numberOfWindowsToBe
- titleContains
- titleIs
- urlContains
- urlIs
- elementToBeClickable
- elementToBeEnabled
- elementToBeSelected
- invisibilityOf
- numberOfElementsToBe
- numberOfElementsToBeLessThan
- numberOfElementsToBeMoreThan
- presenceOf
- sizeOfElementToBe
- stalenessOf
- textToBePresentInElement
- textToBePresentInElementValue
- visibilityOf
- and
- not
- or