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

ExtensionMethodsWaitForElementValue Method (By, String, Int32, Boolean)

Metoda ověřuje, zda má "By" objekt danou hodnotu - Příklad použití var randomByObject = By.CssSelector("..."); randomByObject.WaitForElementValue("50");

Namespace:  TescoSW.MW.UITests.Common
Assembly:  TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 15.2.7099.36746
Syntax
C#
public static void WaitForElementValue(
	this By element,
	string value,
	int interval = 8,
	bool withThrow = false
)

Parameters

element
Type: By
"By" objekt
value
Type: SystemString
hodnota objektu
interval (Optional)
Type: SystemInt32
doba v sekundách po kterou se má čekat na předanou akci
withThrow (Optional)
Type: SystemBoolean
v případě chyby se místo ukončení assertem vyhodí výjimka

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type By. 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