Class
InternetExplorerActions

Internet Explorer action support class.

Definition

Namespace:ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class InternetExplorerActions : Actions

Inheritance: objectActionsInternetExplorerActions

Inherited Members Actions.InvokeEvent(Element, ScriptEventType)Actions.Click(Element)Actions.SetText(Element, string)Actions.SetText(Control, string)Actions.ScrollToVisible(Element, ScrollToVisibleType)Actions.ScrollToVisible(Element)Actions.ScrollToVisible(Element, ScrollToVisibleType, Rectangle)Actions.SelectDropDown(Element, int)Actions.SelectDropDown(Element, string, bool)Actions.SelectDropDown(Element, string)Actions.Check(Element, bool)Actions.AnnotateElement(Element, string)Actions.OpenPdfForValidation(string)Actions.AnnotateMessage(string)Actions.CheckConsoleForJsErrors()Actions.ValidateTargetElement(Element)Actions.DoSelectDropDown(Element, string)Actions.EnableResponsiveWebMode(bool)Actions.BrowserActions.WaitCheckInterval

Fields

ArtOfTestPlugin

Declaration

cs-api-definition
public static readonly string ArtOfTestPlugin

Field Value

string

Methods

ConnectIEDialog(string, int)

Connect an IE modal or modeless dialog to the Manager.

Declaration

cs-api-definition
public void ConnectIEDialog(string caption, int delaySearchPeriod)

Parameters

caption

string

The full or partial caption of the dialog to connect.

delaySearchPeriod

int

Optionally, you can delay the search (in milli-seconds) for the dialog to make sure windows has actually created the window before looking for it. Else 0.

ConnectToBrowserInstance(int, string, int)

Declaration

cs-api-definition
public static object ConnectToBrowserInstance(int timeout, string pipename, int procId)

Parameters

timeout

int

pipename

string

procId

int

Returns

object

DeleteInternetTempFiles(bool, string, bool)

Delete IE's Temp. Internet Files caches http://support.microsoft.com/kb/326201

Declaration

cs-api-definition
protected void DeleteInternetTempFiles(bool deleteCookies, string givenDomain, bool specific)

Parameters

deleteCookies

bool

givenDomain

string

specific

bool

GetComputedStyle(Element, string)

Get computed style for an element.

Declaration

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

Parameters

targetElement

Element

The target element.

style

string

The style to get.

Returns

string

The styles value or string.empty if the style is not present.

Overrides Actions.GetComputedStyle(Element, string)

GetIEContentWindowServer(Window, int)

Get IE's content window. (Internet Explorer_Server)

Declaration

cs-api-definition
public static Window GetIEContentWindowServer(Window parent, int initialDelay)

Parameters

parent

Window

initialDelay

int

Returns

Window

Window object representing IE's content window. null if not found.

GetNativeInstance(IntPtr)

Get a reference to the IE IWebBrowser2 object.

Declaration

cs-api-definition
public static object GetNativeInstance(IntPtr hwnd)

Parameters

hwnd

IntPtr

Returns

object

The hwnd handle of the browser to find.

InvokeScript(string)

Runs Javascript code in the browser. Internet Explorer requires the string containing the code to run to be escaped, and Firefox requires that the string not be escaped.

Declaration

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

Parameters

script

string

A string containing the Javascript code to execute

Returns

string

A string representation of the value returned by the evaluated Javascript code

Overrides Actions.InvokeScript(string)

InvokeScript<T>(string)

Invoke a JavaScript method in the browser.

Declaration

cs-api-definition
public override T InvokeScript<T>(string script)

Parameters

script

string

The name of the method to call.

Returns

T

The response returned by the JavaScript method.

Overrides Actions.InvokeScript<T>(string)