1 2 3 4 5 6 7 8 9 10 11 12
| it('should get the location of one or multiple elements', function () { browser.url('http://github.com');
var location = browser.getLocation('.octicon-mark-github'); console.log(location);
var xLocation = browser.getLocation('.octicon-mark-github', 'x') console.log(xLocation);
var yLocation = browser.getLocation('.octicon-mark-github', 'y') console.log(yLocation); });
|