Guest User

Untitled

a guest
Jan 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Selenium.prototype.doClickAt = function(locator, coordString) {
  2. /**
  3. * Clicks on a link, button, checkbox or radio button. If the click action
  4. * causes a new page to load (like a link usually does), call
  5. * waitForPageToLoad.
  6. *
  7. * @param locator an element locator
  8. * @param coordString specifies the x,y position (i.e. - 10,20) of the mouse
  9. * event relative to the element returned by the locator.
  10. *
  11. */
  12. var element = this.browserbot.findElement(locator);
  13. var clientXY = getClientXY(element, coordString)
  14. this.doMouseMove(locator);
  15. this.doMouseDown(locator);
  16. this.browserbot.clickElement(element, clientXY[0], clientXY[1]);
  17. this.doMouseUp(locator);
  18. };
Add Comment
Please, Sign In to add comment