Click or drag to resize
Tesco SW, a.s.

BaseElementClick Method

Clicks this element.

Namespace:  TescoSW.MW.UITests.Common.PageModel.Components
Assembly:  TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 15.2.7099.36746
Syntax
C#
public virtual void Click()

Implements

IWebElement.Click
Exceptions
ExceptionCondition
ElementNotVisibleExceptionThrown when the target element is not visible.
StaleElementReferenceExceptionThrown when the target element is no longer valid in the document DOM.
Remarks

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.

See Also