DMBrowser.KeywordAssert Method

Definition

Searches the specified string or array of strings in “innertext” of an HTML document (default timeout is 50 seconds).

Overloads

KeywordAssert (keyword, timeout)

Searches the specified string.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
public void KeywordAssert(string keyword, Timespan timeout = default(TimeSpan))
public void KeywordAssert(string keyword, Timespan timeout = default(TimeSpan))
public void KeywordAssert(string keyword, Timespan timeout = default(TimeSpan))

Parameters

 keyword  string

 timeout  TimeSpan

Examples

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
tab1.KeywordAssert ("file downloaded")
tab1.KeywordAssert ("file downloaded")
tab1.KeywordAssert ("file downloaded")

KeywordAssert (keywords)

Searches the specified massive of strings.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
public void KeywordAssert(string[] keyword)
public void KeywordAssert(string[] keyword)
public void KeywordAssert(string[] keyword)

Parameters

 keyword  string[]