Skip to content

How can I switch to another window? #17

@benweizhu

Description

@benweizhu

Hi,

When I click a link, it opens another tab, how can I switch selenium to another tab with simplelenium?

Things like this:

ArrayList tabs2 = new ArrayList (driver.getWindowHandles());
driver.switchTo().window(tabs2.get(1));
driver.close();
driver.switchTo().window(tabs2.get(0));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions