Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Selenium2Library/keywords/_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ def drag_and_drop(self, source, target):
def drag_and_drop_by_offset(self, source, xoffset, yoffset):
"""Drags element identified with `source` which is a locator.

Element will be moved by xoffset and yoffset. each of which is a
Element will be moved by xoffset and yoffset, each of which is a
negative or positive number specify the offset.

Examples:
| Drag And Drop | myElem | 50 | -35 | # Move myElem 50px right and 35px down. |
| Drag And Drop By Offset | myElem | 50 | -35 | # Move myElem 50px right and 35px down. |
"""
src_elem = self._element_find(source, True, True)
ActionChains(self._current_browser()).drag_and_drop_by_offset(src_elem, xoffset, yoffset).perform()
Expand Down