How to use the nightwatch-api.client.click function in nightwatch-api

To help you get started, we’ve selected a few nightwatch-api 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 merland / seedpicker / step_definitions / dice-steps.js View on Github external
When(/^I randomly enter (\d+) words$/, async function (noOfWords) {
    for (let i = 1; i <= noOfWords; i++) {
        for (let dieNo = 1; dieNo <= 11; dieNo++) {
            await browser.setValue(`#d${dieNo}`, step_helpers.randomDiceTrow())
        }

        await step_helpers.sleep_for_debug(50)
        await browser.click('#add_word')
    }
    console.log('');
});
Then(/^the phrase should have (\d+) words$/, async function (expectedLength) {
github merland / seedpicker / step_definitions / dice-steps.js View on Github external
When(/^I click the "([^"]*)" button$/, async function (button) {
    await browser.click(buttons[button])
});
Then(/^the word in the word list should be "([^"]*)"$/, async function (word) {
github merland / seedpicker / step_definitions / seedpicker-steps.js View on Github external
When(/^I click the Advanced button$/, async () => {
    await browser
        .click('#toggle_advanced_btn')
});
Then(/^I should see the Advanced-section$/, async () => {
github merland / seedpicker / step_definitions / seedpicker-steps.js View on Github external
When(/^I click the Calculate button$/, async () => {
    await browser.click('#seed-submit')
});
When(/^I press ENTER$/, async () => {
github merland / seedpicker / step_definitions / seedpicker-steps.js View on Github external
When(/^I click the close-x on the QR-code dialog$/, async () => {
    await browser
        .click('.modal-close')
});
Then(/^the QR-code dialog should go away$/, async () => {

nightwatch-api

[![npm version](https://badge.fury.io/js/nightwatch-api.svg)](https://badge.fury.io/js/nightwatch-api) [![Build Status](https://github.com/mucsi96/nightwatch-api/workflows/Build/badge.svg?branch=master)](https://github.com/mucsi96/nightwatch-api/actions)

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages