Giter Site home page Giter Site logo

awslabs / wdio-aws-device-farm-service Goto Github PK

View Code? Open in Web Editor NEW
22.0 14.0 8.0 1.43 MB

AWS Device Farm service for WebdriverIO

Home Page: https://aws.amazon.com/device-farm/

License: Apache License 2.0

JavaScript 27.65% TypeScript 72.35%
aws aws-devicefarm wdio webdriverio-service typescript

wdio-aws-device-farm-service's Introduction

AWS Device Farm Service for WebdriverIO

AWS Device Farm service for WebdriverIO.

This service only supports desktop browser testing.

Upgrading to WebDriverIO v8

The package now provides support for WebDriverIO v8 starting from version v8.0.0. However, please note that WebDriverIO v7 will continue to be supported until the end of its LTS support in October 2023.

With the major version upgrade to v8, this package has transitioned to the ES module system. And it now emits both CommonJS (CJS-) and ECMAScript Modules (ESM-) compatible modules.

Installation

npm install --save-dev wdio-aws-device-farm-service

Example

You can run the provided example with npm run example. It requires:

  1. An AWS Device Farm project ARN as an environment variable PROJECT_ARN
  2. AWS Credentials (see docs). Note that AWS Device Farm only supports us-west-2. You can force an AWS region with the AWS_REGION environment variable.

For example, this is how it would look like using AWS temporary credentials:

export PROJECT_ARN="<your project arn>"
export AWS_ACCESS_KEY_ID="<aws access key id>"
export AWS_SECRET_ACCESS_KEY="<aws secret access key>"
export AWS_SESSION_TOKEN="<aws session token>"
export AWS_REGION="us-west-2"

npm run example

Security

See CONTRIBUTING for more information.

Getting Help

The best way to interact with our team is through GitHub. You can open an issue to get help or to report any issues you experience.

License

This project is licensed under the Apache-2.0 License.

wdio-aws-device-farm-service's People

Contributors

amazon-auto avatar arnulfojr avatar caglaburcu avatar daniilmc avatar dependabot[bot] avatar halit-carbon avatar hoxmot avatar javierluna avatar longfeiwamazonde avatar mohofo7 avatar nagelflorian avatar pasierb avatar workeitel avatar

Stargazers

 avatar  avatar  avatar  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

wdio-aws-device-farm-service's Issues

Safari Support

Hello! This tool has been great so far, very straightforward to set up.

I am wondering how to enable safari support?

My capabilities & services look like this

capabilities: [
    {
      maxInstances: 5,
      browserName: "chrome",
      acceptInsecureCerts: true,
    },
    {
      maxInstances: 5,
      browserName: "firefox",
      acceptInsecureCerts: true,
    },
    {
      maxInstances: 1,
      browserName: "safari",
    },
  ],
...

services: [
    [
      launcher,
      {
        projectArn: process.env.PROJECT_ARN,
      },
    ],
    [
      "safaridriver",
      {
        outputDir: "./logs",
        logFileName: "wdio-safaridriver.log",
      },
    ],
  ],

and i receive these errors when trying to run the test

[2-0] 2022-04-13T22:26:18.017Z ERROR webdriver: invalid argument: 2 validation errors detected: Value 'safari' at 'desiredCapabilities.browserName' failed to satisfy constraint: Member must satisfy value set: [firefox, chrome, internet explorer, MicrosoftEdge]; Value 'safari' at 'capabilities.alwaysMatch.browserName' failed to satisfy constraint: Member must satisfy value set: [firefox, chrome, internet explorer, MicrosoftEdge]
[2-0] 2022-04-13T22:26:18.021Z ERROR @wdio/runner: Error: Failed to create session.
[2-0] 2 validation errors detected: Value 'safari' at 'desiredCapabilities.browserName' failed to satisfy constraint: Member must satisfy value set: [firefox, chrome, internet explorer, MicrosoftEdge]; Value 'safari' at 'capabilities.alwaysMatch.browserName' failed to satisfy constraint: Member must satisfy value set: [firefox, chrome, internet explorer, MicrosoftEdge]

at first i thought this was an error with wdio or my config, but i am able to run tests with this same config locally and things are all working with safari.

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.