0.49.0 • Published 3 months ago

@qavajs/steps-wdio v0.49.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

npm version

@qavajs/steps-wdio

Step library to work with webdriverio in qavajs framework

Installation

npm install @qavajs/steps-wdio

Configuration

const App = require('./page_object');
module.exports = {
    default: {
        require: [
            'node_modules/@qavajs/steps-wdio/index.js'
        ],
        browser: {
            timeout: {
                present: 10000,
                visible: 20000,
                clickable: 15000,
                page: 10000,
                implicit: 0, //wdio implicit wait for element,
                element: 2000 ,//timeout to element to be accesible,
                value: 5000, // expect value timeout
                valueInterval: 500 //expect value interval
            },
            capabilities: {
                browserName: 'chrome'
            }
        },
        pageObject: new App()
    }
}

Screenshots

@qavajs/steps-wdio has build-in capability to take screenshot on particular event. If you need to add screenshot to your report add screenshot property to profile config. Supported events:

  • onFail
  • beforeStep
  • afterStep
module.exports = {
    default: {
        browser: {
            capabilities: {
                browserName: 'chrome'
            },
            screenshot: {
                event: ['onFail']
            }
        }
    }
}

Snapshot

@qavajs/steps-wdio has build-in capability to take page snapshot on particular event. Supported events:

  • onFail
  • beforeStep
  • afterStep
module.exports = {
    default: {
        browser: {
            capabilities: {
                browserName: 'chrome'
            },
            snapshot: {
                event: ['onFail']
            }
        }
    }
}

Typescript

To properly use globals exposed by @qavajs/steps-wdio add corresponding types to tsconfig.json

{
  "compilerOptions": {
    "types": [
      "@qavajs/steps-wdio/globals"
    ]
  }
}

reuseSession

reuseSession flag allows to share session between tests in frames of process. But setting of this flag transfer session control to user.

module.exports = {
    default: {
        browser: {
            reuseSession: true
        }
    }
}
0.49.0

3 months ago

0.48.0

3 months ago

0.47.0

4 months ago

0.46.0

4 months ago

0.45.0

6 months ago

0.44.1

6 months ago

0.42.0

8 months ago

0.43.0

7 months ago

0.40.0

9 months ago

0.41.0

8 months ago

0.39.0

9 months ago

0.38.0

10 months ago

0.37.0

10 months ago

0.36.0

11 months ago

0.35.0

11 months ago

0.34.0

11 months ago

0.44.0

7 months ago

0.33.0

12 months ago

0.0.30

1 year ago

0.32.0

1 year ago

0.31.0

1 year ago

0.0.29

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago