public class RobotsMouse extends Object implements org.openqa.selenium.interactions.Mouse
Constructor and Description |
---|
RobotsMouse(org.openqa.selenium.interactions.Mouse mouse)
Wraps driver's mouse to use simplified RPA methods on it
|
Modifier and Type | Method and Description |
---|---|
void |
click(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
|
void |
click(org.openqa.selenium.interactions.internal.Coordinates coordinates,
int clicks)
Driver Type: Desktop
|
RobotsMouse |
click(int x,
int y)
Clicks on the point specified by coordinates.
|
RobotsMouse |
click(int clicks,
int x,
int y)
Clicks n-times on the point specified by coordinates.
|
void |
contextClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
|
RobotsMouse |
contextClick(int x,
int y)
Emulates the mouse right-click on the point specified by coordinates.
|
void |
doubleClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
|
RobotsMouse |
doubleClick(int x,
int y)
Double clicks on the point specified by coordinates.
|
void |
mouseDown(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
|
RobotsMouse |
mouseDown(int x,
int y)
Emulates the mouse down action (without mouse up) on the point specified by coordinates.
|
void |
mouseMove(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
|
void |
mouseMove(org.openqa.selenium.interactions.internal.Coordinates where,
long xOffset,
long yOffset)
Driver Type: Desktop, Web
|
RobotsMouse |
mouseMove(int x,
int y)
Emulates the mouse move to the point specified by coordinates.
|
RobotsMouse |
mouseMove(int x,
int y,
int xOffset,
int yOffset)
Emulates the mouse move to the point specified by coordinates.
|
void |
mouseUp(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
|
RobotsMouse |
mouseUp(int x,
int y)
Emulates the mouse up action on the point specified by coordinates.
|
void |
tripleClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop
|
RobotsMouse |
tripleClick(int x,
int y)
Triple clicks on the point specified by coordinates.
|
void |
wheelClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop
|
RobotsMouse |
wheelClick(int x,
int y)
Clicks wheel on the point specified by coordinates.
|
void |
wheelDown(int times)
Driver Type: Desktop
|
void |
wheelUp(int times)
Driver Type: Desktop
|
public RobotsMouse(org.openqa.selenium.interactions.Mouse mouse)
mouse
- driver's Mouse objectpublic void click(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
click
in interface org.openqa.selenium.interactions.Mouse
Mouse.click(Coordinates)
public void click(org.openqa.selenium.interactions.internal.Coordinates coordinates, int clicks)
Driver Type: Desktop
click
in interface org.openqa.selenium.interactions.Mouse
Mouse.click(Coordinates, int)
public void doubleClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
doubleClick
in interface org.openqa.selenium.interactions.Mouse
Mouse.doubleClick(Coordinates)
public void tripleClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop
tripleClick
in interface org.openqa.selenium.interactions.Mouse
Mouse.tripleClick(Coordinates)
public void mouseDown(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
mouseDown
in interface org.openqa.selenium.interactions.Mouse
Mouse.mouseDown(Coordinates)
public void mouseUp(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
mouseUp
in interface org.openqa.selenium.interactions.Mouse
Mouse.mouseUp(Coordinates)
public void mouseMove(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
mouseMove
in interface org.openqa.selenium.interactions.Mouse
Mouse.mouseMove(Coordinates)
public void mouseMove(org.openqa.selenium.interactions.internal.Coordinates where, long xOffset, long yOffset)
Driver Type: Desktop, Web
mouseMove
in interface org.openqa.selenium.interactions.Mouse
Mouse.mouseMove(Coordinates, long, long)
public void contextClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop, Web
contextClick
in interface org.openqa.selenium.interactions.Mouse
Mouse.contextClick(Coordinates)
public void wheelClick(org.openqa.selenium.interactions.internal.Coordinates where)
Driver Type: Desktop
wheelClick
in interface org.openqa.selenium.interactions.Mouse
Mouse.wheelClick(Coordinates)
public void wheelUp(int times)
Driver Type: Desktop
wheelUp
in interface org.openqa.selenium.interactions.Mouse
Mouse.wheelUp(int)
public void wheelDown(int times)
Driver Type: Desktop
wheelDown
in interface org.openqa.selenium.interactions.Mouse
Mouse.wheelDown(int)
public RobotsMouse click(int x, int y)
Driver Type: Desktop, Web
x
- click coordinatey
- click coordinatepublic RobotsMouse click(int clicks, int x, int y)
Driver Type: Desktop
clicks
- number of clicksx
- click coordinatey
- click coordinatepublic RobotsMouse doubleClick(int x, int y)
Driver Type: Desktop, Web
x
- click coordinatey
- click coordinatepublic RobotsMouse tripleClick(int x, int y)
Driver Type: Desktop
x
- click coordinatey
- click coordinatepublic RobotsMouse wheelClick(int x, int y)
Driver Type: Desktop
x
- click coordinatey
- click coordinatepublic RobotsMouse mouseDown(int x, int y)
Driver Type: Desktop, Web
x
- click coordinatey
- click coordinatepublic RobotsMouse mouseUp(int x, int y)
Driver Type: Desktop, Web
x
- click coordinatey
- click coordinatepublic RobotsMouse mouseMove(int x, int y)
Driver Type: Desktop, Web
x
- click coordinatey
- click coordinatepublic RobotsMouse mouseMove(int x, int y, int xOffset, int yOffset)
Driver Type: Desktop, Web
x
- click coordinatey
- click coordinatexOffset
- offset by x axisyOffset
- offset by y axispublic RobotsMouse contextClick(int x, int y)
Driver Type: Desktop, Web
x
- click coordinatey
- click coordinateCopyright 2016, WorkFusion, Inc.