![]() | MenuItemWithCloseClick Method |
Namespace: TescoSW.MW.UITests.Common.PageModel.Components.Menus
Exception | Condition |
---|---|
ElementNotVisibleException | Thrown when the target element is not visible. |
StaleElementReferenceException | Thrown when the target element is no longer valid in the document DOM. |
Click this element. If the click causes a new page to load, the Click method will attempt to block until the page has loaded. After calling the Click method, you should discard all references to this element unless you know that the element and the page will still be present. Otherwise, any further operations performed on this element will have an undefined. behavior.
If this element is not clickable, then this operation is ignored. This allows you to simulate a users to accidentally missing the target when clicking.