How to use the protractor-helper.clickWhenClickable function in protractor-helper

To help you get started, we’ve selected a few protractor-helper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wlsf82 / protractor-components-and-page-objects / test / e2e / specs / contact.spec.js View on Github external
it("then all required fields are shown in red, meaning error", () => {
                helper.clickWhenClickable(contactPage.form.submitButton);

                expect(contactPage.nameField.getAttribute("warning-color")).toEqual("red");
                expect(contactPage.messageField.getAttribute("warning-color")).toEqual("red");
            });
        });