Clicks on an element that is expected to trigger a popup browser window.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public string Click( IWebElement element )
Parameters
- element
- Type: OpenQA.Selenium IWebElement
The IWebElement that, when clicked, invokes the popup browser window.
Return Value
The window handle of the popup browser window.Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium WebDriverTimeoutException | Thrown if no popup window appears within the specified timeout. |
![]() | Thrown if the element to click is . |
See Also