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

Method Click

dotnet/src/webdriver/WebElement.cs:318–324  ·  view source on GitHub ↗

Clicks this element. Click this element. If the click causes a new page to load, the method will attempt to block until the page has loaded. After calling the 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

()

Source from the content-addressed store, hash-verified

316 /// <exception cref="InvalidElementStateException">Thrown when the target element is not enabled.</exception>
317 /// <exception cref="StaleElementReferenceException">Thrown when the target element is no longer valid in the document DOM.</exception>
318 public virtual void Click()
319 {
320 Dictionary<string, object> parameters = new Dictionary<string, object>();
321 parameters.Add("id", this.Id);
322
323 this.Execute(DriverCommand.ClickElement, parameters);
324 }
325
326 /// <summary>
327 /// Finds the first <see cref="IWebElement"/> using the given method.

Callers 1

SubmitMethod · 0.95

Calls 2

ExecuteMethod · 0.95
AddMethod · 0.45

Tested by

no test coverage detected