Finds the active element on the page and returns it Element that is active
()
| 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. |