 | ExtensionMethodsWaitForAttributeValue Method (IWebElement, String, String, Int32, Boolean, String) |
Metoda ověřuje, zda má vlastnost objektu "IWebElement" požadovanou hodnotu
- Příklad použití
var randomFieldInput = By.CssSelector("...");
IWebElement randomIWebElement = driver.FindElement(randomFieldInput);
randomIWebElement.WaitForAttributeValue("value", "testValue");
Namespace:
TescoSW.MW.UITests.Common
Assembly:
TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 15.2.7099.36746
Syntaxpublic static IWebElement WaitForAttributeValue(
this IWebElement element,
string attr,
string value,
int interval = 8,
bool withThrow = false,
string message = null
)
Parameters
- element
- Type: IWebElement
"IWebElement" objekt - attr
- Type: SystemString
název vlastnosti objektu - value
- Type: SystemString
hodnota vlastnosti 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 - message (Optional)
- Type: SystemString
[Missing <param name="message"/> documentation for "M:TescoSW.MW.UITests.Common.ExtensionMethods.WaitForAttributeValue(OpenQA.Selenium.IWebElement,System.String,System.String,System.Int32,System.Boolean,System.String)"]
Return Value
Type:
IWebElement[Missing <returns> documentation for "M:TescoSW.MW.UITests.Common.ExtensionMethods.WaitForAttributeValue(OpenQA.Selenium.IWebElement,System.String,System.String,System.Int32,System.Boolean,System.String)"]
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