Re: Spec Feedback - Visibility


I think that the note in that section is helpful here. The typical usage
pattern here is something like:

WebElement element = driver.findElement("foo"));
if (element.isDisplayed()) {;

That is, users tend to use the displayed check to determine whether or not
it's safe to proceed. As such, although "a" would be lovely, because tries to hit the middle of the element, "c" should be what
we use (that is, "is there some sequence of steps that would pull the
centre of this element into view so that I could then click it?")

What do you think? And would you like some clearer language in the spec for

"b" seems excessively demanding, particularly if there's a large element
that's bigger than the view :)


On Tue, Oct 29, 2013 at 5:54 PM, John Jansen <>wrote:

> Question on visibility [1]:
> I am not sure if an element is visible. If:
> a)      any part of the element is in view
> b)      and only if the entire rectangle of the element is in view
> c)       and only if the middle point is in the view
> [1]

Received on Thursday, 31 October 2013 18:45:17 UTC