page-object icon indicating copy to clipboard operation
page-object copied to clipboard

Accessors should create method for checking element presence

Open jkotests opened this issue 6 years ago • 0 comments

The standard accessor methods create <name>? to check the existence of an element. In most cases, I would expect people care about the presence (ie exists AND visible).

Ideally, we would change <name>? to check presence. Note that this would be a backwards-incompatible change.

The other option is to add another standard method, but the naming may get confusing.

Originally reported on the Watir-General mailing list: https://groups.google.com/forum/#!msg/watir-general/YapRI27qa3Q/x_lkL1wIEQAJ

jkotests avatar Jan 31 '19 18:01 jkotests