Class UserInteraction
Inheritance
Inherited Members
Namespace: ArtOfTest.WebAii.DesktopAutomation
Assembly: ArtOfTest.WebAii.dll
Syntax
public class UserInteraction
Methods
Click()
Declaration
public void Click()
Click(MouseClickType)
Click(MouseClickType, Point)
Declaration
public void Click(MouseClickType clickType, Point offsetPoint)
Parameters
MouseClickType
clickType
|
System.Drawing.Point
offsetPoint
|
Click(MouseClickType, Point, OffsetReference)
Declaration
public void Click(MouseClickType clickType, Point offsetPoint, OffsetReference reference)
Parameters
MouseClickType
clickType
|
System.Drawing.Point
offsetPoint
|
OffsetReference
reference
|
Click(MouseClickType, Int32, Int32, OffsetReference)
Declaration
public void Click(MouseClickType clickType, int x, int y, OffsetReference reference)
Parameters
MouseClickType
clickType
|
System.Int32
x
|
System.Int32
y
|
OffsetReference
reference
|
Click(MouseClickType, Int32, Int32, OffsetReference, ActionPointUnitType)
Declaration
public void Click(MouseClickType clickType, int x, int y, OffsetReference reference, ActionPointUnitType unitType)
Parameters
MouseClickType
clickType
|
System.Int32
x
|
System.Int32
y
|
OffsetReference
reference
|
ActionPointUnitType
unitType
|
Click(MouseClickType, Int32, Int32, OffsetReference, ActionPointUnitType, Keys)
Declaration
public void Click(MouseClickType clickType, int x, int y, OffsetReference reference, ActionPointUnitType unitType, Keys modifierKeys)
Parameters
MouseClickType
clickType
|
System.Int32
x
|
System.Int32
y
|
OffsetReference
reference
|
ActionPointUnitType
unitType
|
System.Windows.Forms.Keys
modifierKeys
|
ClickPoint(MouseClickType, Point)
Declaration
public void ClickPoint(MouseClickType clickType, Point absolutePoint)
Parameters
MouseClickType
clickType
|
System.Drawing.Point
absolutePoint
|
ClickPoint(Point)
Declaration
public void ClickPoint(Point absolutePoint)
Parameters
System.Drawing.Point
absolutePoint
|
DetectHotSpot(Int32)
Declaration
public Point DetectHotSpot(int searchRadius)
Parameters
System.Int32
searchRadius
|
Returns
System.Drawing.Point
|
DetectHotSpot(Int32, Cursor)
Declaration
public Point DetectHotSpot(int searchRadius, Cursor cursor)
Parameters
System.Int32
searchRadius
|
System.Windows.Forms.Cursor
cursor
|
Returns
System.Drawing.Point
|
DragTo(DesktopElement)
DragTo(Int32, Int32)
Declaration
public void DragTo(int x, int y)
Parameters
System.Int32
x
|
System.Int32
y
|
DragTo(Int32, Int32, OffsetReference, ActionPointUnitType, DesktopElement, Int32, Int32, OffsetReference, ActionPointUnitType, Boolean)
Declaration
public void DragTo(int startOffsetX, int startOffsetY, OffsetReference startOffsetReference, ActionPointUnitType startUnitType, DesktopElement dropTarget, int endOffsetX, int endOffsetY, OffsetReference endOffsetReference, ActionPointUnitType endUnitType, bool skipValidateDropLocation)
Parameters
System.Int32
startOffsetX
|
System.Int32
startOffsetY
|
OffsetReference
startOffsetReference
|
ActionPointUnitType
startUnitType
|
DesktopElement
dropTarget
|
System.Int32
endOffsetX
|
System.Int32
endOffsetY
|
OffsetReference
endOffsetReference
|
ActionPointUnitType
endUnitType
|
System.Boolean
skipValidateDropLocation
|
DragTo(Int32, Int32, OffsetReference, DesktopElement, Int32, Int32, OffsetReference)
Declaration
public void DragTo(int startOffsetX, int startOffsetY, OffsetReference startOffsetReference, DesktopElement dropTarget, int endOffsetX, int endOffsetY, OffsetReference endOffsetReference)
Parameters
System.Int32
startOffsetX
|
System.Int32
startOffsetY
|
OffsetReference
startOffsetReference
|
DesktopElement
dropTarget
|
System.Int32
endOffsetX
|
System.Int32
endOffsetY
|
OffsetReference
endOffsetReference
|
DragTo(Int32, Int32, Boolean)
Declaration
public void DragTo(int x, int y, bool autoDetectStartHotSpot)
Parameters
System.Int32
x
|
System.Int32
y
|
System.Boolean
autoDetectStartHotSpot
|
DragTo(Int32, Int32, Boolean, Cursor, Int32)
Declaration
public void DragTo(int x, int y, bool autoDetectStartHotSpot, Cursor hotSpotCursor, int radius)
Parameters
System.Int32
x
|
System.Int32
y
|
System.Boolean
autoDetectStartHotSpot
|
System.Windows.Forms.Cursor
hotSpotCursor
|
System.Int32
radius
|
DragTo(Int32, Int32, Boolean, Cursor, Int32, Boolean)
Declaration
public void DragTo(int x, int y, bool autoDetectStartHotSpot, Cursor hotSpotCursor, int radius, bool skipValidateDropLocation)
Parameters
System.Int32
x
|
System.Int32
y
|
System.Boolean
autoDetectStartHotSpot
|
System.Windows.Forms.Cursor
hotSpotCursor
|
System.Int32
radius
|
System.Boolean
skipValidateDropLocation
|
DragTo(Int32, Int32, Int32, Int32, OffsetReference)
Declaration
public void DragTo(int x, int y, int xOffset, int yOffset, OffsetReference offsetRef)
Parameters
System.Int32
x
|
System.Int32
y
|
System.Int32
xOffset
|
System.Int32
yOffset
|
OffsetReference
offsetRef
|
DragTo(Int32, Int32, Int32, Int32, OffsetReference, Boolean)
Declaration
public void DragTo(int x, int y, int xOffset, int yOffset, OffsetReference offsetRef, bool skipValidateDropLocation)
Parameters
System.Int32
x
|
System.Int32
y
|
System.Int32
xOffset
|
System.Int32
yOffset
|
OffsetReference
offsetRef
|
System.Boolean
skipValidateDropLocation
|
HoverOver()
Declaration
public void HoverOver()
HoverOver(Point)
Declaration
public void HoverOver(Point p)
Parameters
System.Drawing.Point
p
|
HoverOver(Int32, Int32, OffsetReference)
Declaration
public void HoverOver(int x, int y, OffsetReference reference)
Parameters
System.Int32
x
|
System.Int32
y
|
OffsetReference
reference
|
HoverOver(Int32, Int32, OffsetReference, ActionPointUnitType)
Declaration
public void HoverOver(int x, int y, OffsetReference reference, ActionPointUnitType unitType)
Parameters
System.Int32
x
|
System.Int32
y
|
OffsetReference
reference
|
ActionPointUnitType
unitType
|
KeyDown(Keys)
Declaration
public void KeyDown(Keys key)
Parameters
System.Windows.Forms.Keys
key
|
KeyPress(Keys, Int32)
Declaration
public void KeyPress(Keys key, int holdFor)
Parameters
System.Windows.Forms.Keys
key
|
System.Int32
holdFor
|
KeyUp(Keys)
Declaration
public void KeyUp(Keys key)
Parameters
System.Windows.Forms.Keys
key
|
MouseEnter(OffsetReference)
MouseLeave(OffsetReference)
MouseMove(List<Point>, Int32, Boolean)
Declaration
public void MouseMove(List<Point> path, int delayBetweenPathPoints, bool firstPointIsElementCenter)
Parameters
System.Collections.Generic.List<System.Drawing.Point>
path
|
System.Int32
delayBetweenPathPoints
|
System.Boolean
firstPointIsElementCenter
|
TurnMouseWheel(Int32, MouseWheelTurnDirection, Boolean)
Declaration
public void TurnMouseWheel(int delta, MouseWheelTurnDirection direction, bool clickFirst)
Parameters
System.Int32
delta
|
MouseWheelTurnDirection
direction
|
System.Boolean
clickFirst
|
TypeText(String, Int32)
Declaration
public void TypeText(string text, int keyPressTime)
Parameters
System.String
text
|
System.Int32
keyPressTime
|
TypeText(String, Int32, Boolean)
Declaration
public void TypeText(string text, int keyPressTime, bool clickFirst)
Parameters
System.String
text
|
System.Int32
keyPressTime
|
System.Boolean
clickFirst
|
TypeText(String, Int32, Int32, Boolean, Boolean)
Declaration
public void TypeText(string text, int keyPressTime, int holdTime, bool clickFirst, bool supportUnicode = true)
Parameters
System.String
text
|
System.Int32
keyPressTime
|
System.Int32
holdTime
|
System.Boolean
clickFirst
|
System.Boolean
supportUnicode
|