 | StableWebElementFindElement Method |
Finds the first IWebElement using the given method.
Namespace:
TescoSW.MW.UITests.Common.PageModel
Assembly:
TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 21.2.8103.33088
Syntaxpublic IWebElement FindElement(
By by
)
Parameters
- by
- Type: By
The locating mechanism to use.
Return Value
Type:
IWebElementThe first matching
IWebElement on the current context.
Implements
ISearchContext.FindElement(By)
ExceptionsException | Condition |
---|
NoSuchElementException | If no element matches the criteria. |
See Also