MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Click

Method Click

dotnet/src/support/UI/PopupWindowFinder.cs:105–113  ·  view source on GitHub ↗

Clicks on an element that is expected to trigger a popup browser window. The that, when clicked, invokes the popup browser window. The window handle of the popup browser window. Thrown if no popup window appears within the specified timeout. <excep

(IWebElement element)

Source from the content-addressed store, hash-verified

103 /// <exception cref="WebDriverTimeoutException">Thrown if no popup window appears within the specified timeout.</exception>
104 /// <exception cref="ArgumentNullException">Thrown if the element to click is <see langword="null"/>.</exception>
105 public string Click(IWebElement element)
106 {
107 if (element is null)
108 {
109 throw new ArgumentNullException(nameof(element), "element cannot be null");
110 }
111
112 return this.Invoke(element.Click);
113 }
114
115 /// <summary>
116 /// Invokes a method that is expected to trigger a popup browser window.

Callers 1

SetSelectedMethod · 0.45

Calls 1

InvokeMethod · 0.95

Tested by

no test coverage detected