protractor-components
Simple component builder for protractor projects
Installing
npm i protractor-components
API
Component
simple class that can get only the common things like getText
, getAttribute
, getCssValue
, etc.
As protractor, all these common types return Promise
Component.prototype.root
- root element that find when you call constructor(new
keyword).
Collection
Collection like ElementArrayFinder
, but you can use for await ... of
syntax
Example
// reason.component.ts;;// e2e.ts;;describe'...',
collection
example
;;;
TODO
- JSDoc from protractor for
Component
andCollection
- more comprehensive types
- more common components(
Form
,Selector
,MultipleSelector
,Checkbox
,RadioButton
,Input
(color picker, range, date, upload) ,Table
) - add module
protractor-components/common
- [] add API for angular(window.ng.probe function) and react(resq library) components