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.

ExpectedCondition is defined as a function accepting WebDriver, but it should accept SearchContext instead #7053

Open
@lukeis

Description

@lukeis

Originally reported on Google Code with ID 7053

ExpectedCondition is defined as a function accepting WebDriver, which means that any
ExpectedConditions method that performs a search will be scoped to the entire page.
If ExpectedCondition were defined like this...

public interface ExpectedCondition<T> extends Function<SearchContext,T>

... client code would be able to restrict search operations to specific contexts.

Because WebDriver is a SearchContext, this revised definition of ExpectedCondition
should have no impact on existing client code.

Reported by scoba63 on 2014-03-03 19:05:54

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions