diff --git a/src/Selenium2Library/keywords/_element.py b/src/Selenium2Library/keywords/_element.py index f4615cb1f..9db21ab2d 100644 --- a/src/Selenium2Library/keywords/_element.py +++ b/src/Selenium2Library/keywords/_element.py @@ -274,7 +274,7 @@ def click_element(self, locator): def click_element_at_coordinates(self, locator, xoffset, yoffset): """Click element identified by `locator` at x/y coordinates of the element. - Cursor is moved and the center of the element and x/y coordinates are + Cursor is moved and the center of the element and x/y coordinates are calculted from that point. Key attributes for arbitrary elements are `id` and `name`. See @@ -384,7 +384,7 @@ def mouse_up(self, locator): element = self._element_find(locator, True, False) if element is None: raise AssertionError("ERROR: Element %s not found." % (locator)) - ActionChains(self._current_browser()).click_and_hold(element).release(element).perform() + ActionChains(self._current_browser()).release(element).perform() def open_context_menu(self, locator): """Opens context menu on element identified by `locator`.""" diff --git a/test/acceptance/keywords/click_element_at_coordinates.txt b/test/acceptance/keywords/click_element_at_coordinates.txt index 8c6128834..7a4fef51c 100644 --- a/test/acceptance/keywords/click_element_at_coordinates.txt +++ b/test/acceptance/keywords/click_element_at_coordinates.txt @@ -7,8 +7,8 @@ Resource ../resource.txt Click Element At Coordinates [Documentation] LOG 2 Click clicking element 'Clickable' in coordinates '10', '20'. Click Element At Coordinates Clickable ${10} ${20} - Element Text Should Be outputX 10 - Element Text Should Be outputY 20 + Element Text Should Be outputX 110 + Element Text Should Be outputY 120 *** Keywords *** Initialize page diff --git a/test/acceptance/keywords/javascript.txt b/test/acceptance/keywords/javascript.txt index a8fa58a4a..a0f621a20 100644 --- a/test/acceptance/keywords/javascript.txt +++ b/test/acceptance/keywords/javascript.txt @@ -29,9 +29,11 @@ Mouse Down On Link [Setup] Go To Page "javascript/mouse_events.html" Mouse Down On Image image_mousedown Text Field Should Contain textfield onmousedown + Mouse Up image_mousedown Input text textfield ${EMPTY} - Mouse Down On Link onmousedown + Mouse Down On Link link_mousedown Text Field Should Contain textfield onmousedown + Mouse Up link_mousedown Confirm Action Click Button Change the title diff --git a/test/acceptance/keywords/lists.txt b/test/acceptance/keywords/lists.txt index 83dc793a2..ad6bdc1ac 100644 --- a/test/acceptance/keywords/lists.txt +++ b/test/acceptance/keywords/lists.txt @@ -99,7 +99,7 @@ Select Non-Existing Item From Multi-Selection List ... Select From List possible_channels Tin Can Phone Email Smoke Signals Unselect Non-Existing Item From List - [Documentation] LOG 5 Unselecting non-existing items will not throw an error. + [Documentation] LOG 3 Unselecting option(s) 'Tin Can Phone, Smoke Signals, Email' from list 'possible_channels'. [Tags] OnlyThisOne Unselect From List possible_channels Tin Can Phone Smoke Signals Unselect From List possible_channels Tin Can Phone Smoke Signals Email diff --git a/test/resources/html/javascript/mouse_events.html b/test/resources/html/javascript/mouse_events.html index 163c31841..dd1c054f7 100644 --- a/test/resources/html/javascript/mouse_events.html +++ b/test/resources/html/javascript/mouse_events.html @@ -16,12 +16,12 @@ -both -onmousedown - \ No newline at end of file +