Click or drag to resize
Tesco SW, a.s.

ExtensionMethodsWaitForTextContains Method

Ověří jestlim properta Text obsahuje hledaný řetězec

Namespace:  TescoSW.MW.UITests.Common
Assembly:  TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 21.2.8103.33088
Syntax
C#
public static void WaitForTextContains(
	this IWebElement element,
	string pattern,
	bool shouldContain = true,
	string message = null,
	int interval = 8
)

Parameters

element
Type: IWebElement
Element, jehož text se ověřuje
pattern
Type: SystemString
Hledaný řetězec
shouldContain (Optional)
Type: SystemBoolean
Příznak, jestli má obsahovat text nebo nemá
message (Optional)
Type: SystemString
Chybová hláška, pokud text nebude přítomen a test spadne
interval (Optional)
Type: SystemInt32
doba v sekundách po kterou se má čekat na předanou akci

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWebElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also