Giter Site home page Giter Site logo

example-recipes's Introduction

WebdriverIO Example Recipes Test

This repository contains a set of common automation recipes using WebdriverIO. Many of them are used in the official project docs and tested here in CI.

Prerequisite

Make sure to run this first, to set up this repository:

npm install

Run Examples

Check-out the script section in the package.json file for all available examples.

Contributing

We always appreciated contributions that add more examples to this repository. Ensure to pay attention to the following things:

  • keep it simple: a plain JavaScript file should cover the use case
  • test it: all examples should be tested in CI to ensure they don't break
  • document it: ensure there is a README.md that contains how to run the example

Feel free to raise issues if you feel like there are interesting examples missing.

example-recipes's People

Contributors

anthonyquy avatar christian-bromann avatar dependabot[bot] avatar harsha509 avatar m-hammad-faisal avatar seanpoulter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

example-recipes's Issues

Create set of common automation recipes

In order to help folks with common automation challenges it would be nice to have a repository with recipes and showcases that is tested and applicable for users through copy&paste.

As an example page for tests I recommend guineapig.webdriver.io. We can follow the format we find on the Cypress recipe repo.

Any suggestions on format, and use cases? I could easily think of:

  • download/upload (local vs remote)
  • drag&drop
  • API mocking
  • usage of react$ and react$$
  • usage of page objects
  • ...?

Rename this repo

Unfortunately a repo name of recipes isn't very descriptive. Perhaps webdriverio-recipes or something similar might be a little better naming convention.

browser.emulate cmd is not override the geolocation

I'm trying to set the geolocation in order to test different scenarios for different countries.

await browser.emulate('geolocation', {
latitude,
longitude,
accuracy,
});
Testing URL-https://www.google.com/maps
capabilities -webSocketUrl: true

"webdriverio": "8.27.0"
"devtools": "8.27.0",
"webdriver": "8.27.0",
"selenium-standalone": "9.3.1",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.