robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

Support for clicking and double clicking certain position of an element #189

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by palani.selvam on 26 Apr 2011

Explain the new feature or other enhancement idea you have.

Please add keywords for clickAt, doubleClickAt Selenese commands

Purpose: One of my pages needed clickAt instead of click. I have gone ahead and extended SeleniumLibrary.

I would like to have keywords for clickAt and doubleClickAt

Methods added to SeleniumLibrary in click.py :

def _click_point(self, locator, coordString='0,0', dont_wait=''):
    """ Added by Palani for EYC
    """
    self._selenium.click_at(locator, coordString)
    if not dont_wait:
        self.wait_until_page_loaded()
def click_element_point(self, locator, coordString="10,5",

dont_wait=''): """Click element identified by locator on the given relative position.

    Key attributes for arbitrary elements are `id` and `name`. See
    `introduction` for details about locating elements and about

meaning of dont_wait argument.

    'locator' is an element locator
    'coordString' is specifies the x,y position (i.e. - 10,20) of

the mouse event relative to the element returned by the locator. """

Added by Palani for EYC

    self._info("Clicking element '%s' on relative position '%s'" %

(locator, coordString) ) self._click_point(self._parse_locator(locator), coordString, dont_wait)

spooning commented 9 years ago

Originally submitted to Google Code by @yanne on 29 Apr 2011

This issue was updated by revision 8930394b90bf.

We decided to add coordinate support for Click Element instead of adding new Click At keyword. We also noticed that there is no Double Click Element keyword and will add that separately.

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 29 Apr 2011

Double Click Element keyword is issue 192 . We'll implement it so that it has support for coordinates.

spooning commented 9 years ago

Originally submitted to Google Code by @yanne on 1 May 2011

Now both Click Element and Double Click Element support giving position as an argument.

spooning commented 9 years ago

Originally submitted to Google Code by @yanne on 6 Aug 2012

Issue 244 has been merged into this issue.