How to use the nightwatch-api.client.url 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 / seedpicker-steps.js View on Github external
Given(/^I open the Seedpicker calculator$/, async () => {
    const workingDir = process.cwd()
    const fileUrl = "file://" + workingDir + "/calculator/last-word.html"
    await browser
        .url(fileUrl)
        .waitForElementVisible('body', 1000)
});
Then(/^I see the Seedpicker page$/, async function () {
github mucsi96 / nightwatch-api / packages / cucumber-selenium-example / step-definitions / steps.js View on Github external
Given(/^I open Google`s search page$/, async () => {
  await client.url('http://google.com');
});
github merland / seedpicker / step_definitions / dice-steps.js View on Github external
Given(/^I open the Dice randomizer$/, async () => {
    const workingDir = process.cwd()
    const fileUrl = "file://" + workingDir + "/calculator/dice.html"
    await browser
        .url(fileUrl)
        .waitForElementVisible('body', 1000)
});
Given(/^I enter (\d+) in dice number (\d+)$/, async (dieValue, diceNo) => {
github mucsi96 / nightwatch-api / packages / cucumber-selenium-example / step-definitions / steps.js View on Github external
Given(/^I open DuckDuckGo search page$/, async () => {
  await client.url('https://duckduckgo.com/');
});

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 4 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages