Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Please add ExpectedConditions.currentUrlIs and ExpectedConditions.currentUrlContains #6842

Open
@lukeis

Description

@lukeis

Originally reported on Google Code with ID 6842

Please add:

org.openqa.selenium.support.ui.ExpectedConditions.currentUrlIs
org.openqa.selenium.support.ui.ExpectedConditions.currentUrlContains

just like there is already available:

org.openqa.selenium.support.ui.ExpectedConditions.titleIs
org.openqa.selenium.support.ui.ExpectedConditions.titleContains

Note that I've implemented them myself like: 

ExpectedCondition<Boolean> expectedCondition = new ExpectedCondition<Boolean>() {
    public Boolean apply(WebDriver webDriver) {
        String currentUrl = webDriver.getCurrentUrl();
        return currentUrl.equals(url);
    }
};

but it would be useful to add this to org.openqa.selenium.support.ui.ExpectedConditions.

Reported by [email protected] on 2014-01-14 19:15:19

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions