getLocationInView
Determine an element’s location on the screen once it has been scrolled into view.
Usage
1 | browser.getLocationInView(selector); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | element with requested position offset |
Example
1 | it('should get the location of one or multiple elements in view', function () { |
Returns
- <Object/Object[]>: The X and Y coordinates for the element on the page (
{x:number, y:number}
)