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
()
| 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. |