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

Method ActiveElement

dotnet/src/webdriver/TargetLocator.cs:217–221  ·  view source on GitHub ↗

Finds the active element on the page and returns it Element that is active

()

Source from the content-addressed store, hash-verified

215 /// </summary>
216 /// <returns>Element that is active</returns>
217 public IWebElement ActiveElement()
218 {
219 Response response = this.driver.Execute(DriverCommand.GetActiveElement, null);
220 return this.driver.GetElementFromResponse(response)!;
221 }
222
223 /// <summary>
224 /// Switches to the currently active modal dialog for this particular driver instance.

Calls 2

ExecuteMethod · 0.45