Clicks this element.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium ElementNotVisibleException | Thrown when the target element is not visible. |
OpenQA.Selenium StaleElementReferenceException | Thrown 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