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

Method ActiveElement

dotnet/src/webdriver/TargetLocator.cs:216–220  ·  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

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

Calls 2

ExecuteMethod · 0.45