IWebElementClick Method WebDriver
Clicks this element.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0

void Click()

ElementNotVisibleExceptionThrown when the target element is not visible.
StaleElementReferenceExceptionThrown 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.

See Also