UNPKG

cucumber-protractor

Version:

POM CukeTractor - Bootstrap your cucumber tests with cucumber, protractor and a structured way of creating page objects and component objects

55 lines (54 loc) 2.29 kB
## Methods for combining actions and assertions | Method name | Args | | --- | --- | | appendInputFieldValue | (value, locatorKey) | | appendReactInputFieldValue | (text, locatorKey) | | clearInputFieldValue | (locatorKey) | | clickElement | (locatorKey) | | disableAnimations | none | | goToPage | (pageName) | | pressKey | (key) | | setCookie | (name, value) | | setInputFieldValue | (locatorKey, value) | | setReactInputFieldValue | (locatorKey, text) | | setSelectValueByOptionText | (locatorKey, itemText) | | submitForm | (locatorKey) | | checkAttribute | (locatorKey, expectedAttribute, expectedValue) | | hasClass | (locatorKey, className) | | doesNotHaveClass | (locatorKey, className) | | checkColour | (locatorKey, expectedColour, property) | | checkContainsAnyText | (locatorKey) | | checkDoesNotContainAnyText | (locatorKey) | | checkContainsText | (locatorKey, expectedText) | | checkDoesNotContainText | (locatorKey, expectedText) | | checkCookieContains | (cookieName, expectedValue) | | checkCookieDoesNotContain | (cookieName, expectedValue) | | checkCookieContent | (cookieName, expectedValue) | | checkCookieValueIsNot | (cookieName, expectedValue) | | checkCookieExists | (cookieName) | | checkCookieDoesNotExist | (cookieName) | | checkElementBackgroundColour | (locatorKey, expectedColour) | | checkElementBorderColour | (position, locatorKey, expectedColour) | | checkElementColour | (locatorKey, expectedColour) | | checkElementExists | (locatorKey) | | checkElementDoesNotExist | (locatorKey) | | checkElementExistsNTimes | (locatorKey, count) | | checkElementDoesNotExistNTimes | (locatorKey, count) | | checkFocus | (locatorKey) | | checkInputIsEmpty | (locatorKey) | | checkInputIsNotEmpty | (locatorKey) | | checkInputValue | (locatorKey, expectedValue) | | checkInputValueIsNot | (locatorKey, expectedValue) | | checkIsEnabled | (locatorKey) | | checkIsDisabled | (locatorKey) | | checkIsOpenedInNewWindow | (href) | | checkIsSelected | (locatorKey) | | checkIsDeselected | (locatorKey) | | checkTitle | (expectedTitle) | | checkTitleIsNot | (expectedTitle) | | setPageObjectThenCheckUrl | (pageName) | | checkUrlIs | (url) | | checkUrlIsNot | (url) | | checkUrlContainsString | (expectedUrlPart) | | checkVisible | (locatorKey) | | checkHidden | (locatorKey) |