Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to check focused state of element. #144

Closed
grokys opened this issue Jun 28, 2022 · 2 comments
Closed

Unable to check focused state of element. #144

grokys opened this issue Jun 28, 2022 · 2 comments

Comments

@grokys
Copy link

grokys commented Jun 28, 2022

In Selenium, the recommended way to check if an element is focused is to use:

element.equals(driver.switchTo().activeElement());

However this does not work using the appium-mac2-driver as it appears that it's not possible to compare two elements for equality in appium:

Is there a way of doing this currently? If not:

  • Would it make sense to expose the focused state as an attribute?
  • Should there be a way of comparing elements on the server?
@mykola-mokhnach
Copy link
Contributor

#145 should do the job

@grokys
Copy link
Author

grokys commented Jun 28, 2022

Wow, thank you! I didn't expect a reply so quickly, never mind a PR ;) I will get the driver building locally and try this out.

@grokys grokys closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants