3.0.28 • Published 20 days ago

@appium/execute-driver-plugin v3.0.28

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
20 days ago

@appium/execute-driver-plugin

Appium plugin for running a driver script in a child process

NPM version Downloads

This plugin adds a new driver command that allows executing scripts in a child process. Currently, the only supported driver type is webdriverio, therefore the script must also be written in JS.

Motivation

Running a driver script in a child process adds a degree of parallelisation, which may result in faster test execution.

Installation

appium plugin install execute-driver

The plugin must be explicitly activated when launching the Appium server. Since the input script can be arbitrary JavaScript, this is an insecure feature, and must also be explicitly enabled:

appium --use-plugins=execute-driver --allow-insecure=execute_driver_script

Usage

const script = `return await driver.getTimeouts();`;
const {result, logs} = await driver.executeDriverScript(script);
// 'result' contains the data returned by the script (in this case, the response to 'getTimeouts')
// 'logs' contains everything logged to console during script execution

Refer to your Appium client documentation for the exact syntax of this command.

License

Apache-2.0

3.0.28

20 days ago

3.0.27

25 days ago

3.0.26

1 month ago

3.0.25

3 months ago

3.0.24

3 months ago

3.0.23

4 months ago

3.0.22

5 months ago

3.0.21

5 months ago

3.0.20

6 months ago

3.0.18

7 months ago

3.0.19

7 months ago

3.0.16

9 months ago

3.0.17

9 months ago

3.0.15

10 months ago

3.0.14

11 months ago

3.0.12

1 year ago

3.0.13

12 months ago

3.0.11

1 year ago

3.0.10

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.9

1 year ago

3.0.4

1 year ago

3.0.2

1 year ago

3.0.5

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago