Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Add a SauceLabs.stopSession() method #85

@nadvolod

Description

@nadvolod

It can actually be a little error prone to stop a sauce session because we can get back a null driver for multiple reasons. Let's wrap this command into a nice method for our clients so that it's not error prone and easier to use.

            if(_driver != null)
                ((IJavaScriptExecutor)_driver).ExecuteScript("sauce:job-result=" + (passed ? "passed" : "failed"));
            _driver?.Quit();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions