robot framework + selenium2-- simulated mouse

mouse down Keywords: simulate pressing the left mouse receives a key operation of the parameter [locator], can be positioned by id, name, xpath like



mouse down                                        id=kw

=====================================================================================================================================================


Keywords mouse up: for releasing the left mouse button depressed receiving a keyword parameter [locator], can be positioned by id, name, xpath like



mouse down                                        id=kw

=====================================================================================================================================================


mouse down on image Keywords: simulate pressing the mouse on a picture of a page on the left operation receiving a keyword parameter [locator], can be positioned by id, src, alt, etc.



mouse down on image                                 https://…….png


=====================================================================================================================================================


mouse down on link Keywords: simulate pressing the mouse over a link on the left page operation receiving a keyword parameter [locator], can be positioned by id, href, link text, etc.



mouse down on link                                   http://map.baidu.com


=====================================================================================================================================================


mouse out Keywords: mouse leaves the simulated operation of one element on the page receiving a keyword parameter [locator], can be positioned by id, name, xpath like



open browser                                 https://www.baidu.com                              chrome

mouse down                                   id=kw

mouse out                                    id=kw

close browser


=====================================================================================================================================================


Double the Click Element Keywords: receiving the analog double-clicking a key parameter [locator], can be positioned by id, name, xpath like



double click element                         id=iwe


=====================================================================================================================================================


drag and drop Keywords: drag operation received analog [Source | target] two parameters, these two parameters are located by locator


drag and drop                              elementA                            elementB


=====================================================================================================================================================


drag and drop by offset keywords: receiving a drag operation simulation [Source | xoffset | yoffset] three parameters, source locator positioned by

                                                                             The drag source element having x, y coordinates of the position of the mark


drag and drop by offset                   elemnet                100                            -40


=====================================================================================================================================================

 

Guess you like

Origin www.cnblogs.com/xiaobaibailongma/p/12334156.html