isVisible
Return true if the selected DOM-element found by given selector is visible. Returns an array if multiple DOM-elements are found for the given selector.
Usage
1 | browser.isVisible(selector); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | DOM-element |
Example
1 | <div id="notDisplayed" style="display: none"></div> |
1 | it('should detect if an element is visible', function () { |
Returns
- <Boolean/Boolean[]>: true if element(s)* [is|are] visible