_element.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:robotframework-weblibrary 作者: Netease-AutoTest 项目源码 文件源码
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
        negative or positive number specify the offset.

        Examples:
        | 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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号