 | ExtensionMethodsTryFindElementOrNull Method (IWebElement, By, Int32, Int32) |
Pokusí se najít element a pokud není nalezen, tak vrací místo výjimky null
Namespace:
TescoSW.MW.UITests.Common
Assembly:
TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 21.2.8103.33088
Syntaxpublic static IWebElement TryFindElementOrNull(
this IWebElement element,
By[] selectors,
int timeoutInterval = 8,
int waitingInterval = 100
)
Parameters
- element
- Type: IWebElement
Kontext hledání - selectors
- Type: By
Selektory použitý pro najití elementu - timeoutInterval (Optional)
- Type: SystemInt32
doba v sekundách po kterou se má čekat na předanou akci - waitingInterval (Optional)
- Type: SystemInt32
interval čekání mezi jednotlivými kontrolami v milisekundách
Return Value
Type:
IWebElement[Missing <returns> documentation for "M:TescoSW.MW.UITests.Common.ExtensionMethods.TryFindElementOrNull(OpenQA.Selenium.IWebElement,OpenQA.Selenium.By[],System.Int32,System.Int32)"]
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