UI Device Destroy (sui:device-destroy)

UI Device Destroy (sui:device-destroy)

Destroying the previously created driver instance with name

The tear down of the scenario automatically destroys any created device. Please use this only if you want to e.g restart your app or test how your software behaves with data up on unexpected closure or you don’t need the browser open anymore and want to save resources (e.g selenium grid)

Release in: 2.3.0-GA

Usage

<sui:device-destroy name=""! />

! - mandatory

Example

after destroying a device to be able to perform any ui action, please always start using another device

it is possible to do api calls / core functionalities (e.g asserts, reading files..) without any active device

Example

Behaviour

Example

Behaviour

<sui:device-destroy name="defaultDriver" /> <sui:device-create device="${@chrome()}" name="myChrome" use="true" />

stops the default driver and creates a new chrome device and starts using it

<sui:device-destroy name="myFirefox" /> <sui:device-use name="myWinApp" />

stops device named “myFirefox” and stars using the previously created myWinApp device