()
| 890 | } |
| 891 | |
| 892 | func (wd *remoteWD) ActiveElement() (WebElement, error) { |
| 893 | verb := "GET" |
| 894 | if wd.browser == "firefox" && wd.browserVersion.Major < 47 { |
| 895 | verb = "POST" |
| 896 | } |
| 897 | url := wd.requestURL("/session/%s/element/active", wd.id) |
| 898 | response, err := wd.execute(verb, url, nil) |
| 899 | if err != nil { |
| 900 | return nil, err |
| 901 | } |
| 902 | return wd.DecodeElement(response) |
| 903 | } |
| 904 | |
| 905 | // ChromeDriver returns the expiration date as a float. Handle both formats |
| 906 | // via a type switch. |
nothing calls this directly
no test coverage detected