Class
CapturedCommand

Definition

Namespace:ArtOfTest.Common.Design.Translation

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public abstract class CapturedCommand

Inheritance: objectCapturedCommand

Derived Classes: HtmlCapturedCommandXamlCapturedCommand

Constructors

CapturedCommand(CommandTypeBase, ITargetElement, ActionPoint, ITargetElement, ActionPoint, Graphics, object)

Create a new captured command

Declaration

cs-api-definition
protected CapturedCommand(CommandTypeBase commandType, ITargetElement element, ActionPoint xyOffset, ITargetElement element2, ActionPoint xyOffset2, Graphics graphics, object data)

Parameters

commandType

CommandTypeBase

element

ITargetElement

The target element of this command.

xyOffset

ActionPoint

element2

ITargetElement

xyOffset2

ActionPoint

graphics

Graphics

The graphics object of the drawing surface clipped at the Rectangle

data

object

Any data associated with this command.

Properties

CommandType

The captured command type from the recording surface.

Declaration

cs-api-definition
public CommandTypeBase CommandType { get; set; }

Property Value

CommandTypeBase

Data

Any custom data to associate with this captured command.

Declaration

cs-api-definition
public object Data { get; set; }

Property Value

object

Element

The target element of this captured command.(Else null)

Declaration

cs-api-definition
public ITargetElement Element { get; set; }

Property Value

ITargetElement

Element2

The second target element of this command (Else null)

Declaration

cs-api-definition
public ITargetElement Element2 { get; set; }

Property Value

ITargetElement

ElementRect

Gets the element rectangle relative to the parent browser window.

Declaration

cs-api-definition
public Rectangle ElementRect { get; set; }

Property Value

Rectangle

ElementScreenRect

Gets the element rectangle in screen coordinates.

Declaration

cs-api-definition
public Rectangle ElementScreenRect { get; set; }

Property Value

Rectangle

Graphics

Graphic object of Element

Declaration

cs-api-definition
public Graphics Graphics { get; set; }

Property Value

Graphics

ModifierKeys

Declaration

cs-api-definition
public Keys ModifierKeys { get; set; }

Property Value

Keys

RequiresConfirmation

Gets or sets whether the recording host waits for confirmation before adding this captured command to the list of recorded automation descriptors

Declaration

cs-api-definition
public bool RequiresConfirmation { get; set; }

Property Value

bool

TechnologyType

Declaration

cs-api-definition
public abstract TechnologyType TechnologyType { get; }

Property Value

TechnologyType

Timestamp

The time when the command was captured in UTC

Declaration

cs-api-definition
public DateTime? Timestamp { get; set; }

Property Value

DateTime?

XYOffset

XY Cordinates of action on the target element

Declaration

cs-api-definition
public ActionPoint XYOffset { get; set; }

Property Value

ActionPoint

XYOffset2

XY Coordinates of action on element2

Declaration

cs-api-definition
public ActionPoint XYOffset2 { get; set; }

Property Value

ActionPoint

Extension Methods