Class
AspNetHostActions

Implements automation actions for the AspNetHost browser.

Definition

Methods

Check(Element, bool)

Check an element or a radio button.

Declaration

cs-api-definition
public override void Check(Element targetElement, bool checkedState)

Parameters

targetElement

Element

The target to check.

checkedState

bool

The check state to set it to.

Overrides Actions.Check(Element, bool)

Click(Element)

Click an element.

Declaration

cs-api-definition
public override void Click(Element targetElement)

Parameters

targetElement

Element

The target element.

Overrides Actions.Click(Element)

DoAction(AspNetForm)

Perform the form postback.

Declaration

cs-api-definition
public void DoAction(AspNetForm form)

Parameters

form

AspNetForm

The form to post.

DoSelectDropDown(Element, string)

Select an item in a drop down.

Declaration

cs-api-definition
protected override void DoSelectDropDown(Element targetElement, string data)

Parameters

targetElement

Element

The target element.

data

string

The item to select and how to select it.

Overrides Actions.DoSelectDropDown(Element, string)

GetComputedStyle(Element, string)

Unsupported - There is no concept of current styles for AspNetHost

Declaration

cs-api-definition
public override string GetComputedStyle(Element targetElement, string style)

Parameters

targetElement

Element

The target element.

style

string

The style.

Returns

string

N/A - UnsupportedBrowserOperationException.

Overrides Actions.GetComputedStyle(Element, string)

InvokeEvent(Element, ScriptEventType)

Unsupported - There is no javascript engine running for this browser.

Declaration

cs-api-definition
public override void InvokeEvent(Element targetElement, ScriptEventType eventType)

Parameters

targetElement

Element

The target element.

eventType

ScriptEventType

The event type.

Overrides Actions.InvokeEvent(Element, ScriptEventType)

InvokeScript(string)

Unsupported - There is no javascript engine running for this browser.

Declaration

cs-api-definition
public override string InvokeScript(string script)

Parameters

script

string

The script to call.

Returns

string

N/A - UnsupportedBrowserOperationException.

Overrides Actions.InvokeScript(string)

ScrollToVisible(Element)

Unsupported - Does not apply for this browser.

Declaration

cs-api-definition
public override void ScrollToVisible(Element targetElement)

Parameters

targetElement

Element

Target element.

Overrides Actions.ScrollToVisible(Element)

SetText(Element, string)

Set the text for a target element.

Declaration

cs-api-definition
public override void SetText(Element targetElement, string text)

Parameters

targetElement

Element

The target element to set the text for.

text

string

The text to set.

Overrides Actions.SetText(Element, string)