Skip to content

add closeExtraTabs to browser #431

Description

@kellyselden

so you can clean up new tabs in an afterEach, without closing the main tab if there was a test error and it didn't create a second tab.

something like

async function closeExtraTabs() {
  while (await this.browser._browser.getWindowHandles() > 1) {
    await this.browser.closeTab();
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions