 | BaseElementFindElement Method |
Finds the first IWebElement using the given method.
Namespace:
TescoSW.MW.UITests.Common.PageModel.Components
Assembly:
TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 15.2.7099.36746
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