Closed grokys closed 2 years ago
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:
appium-mac2-driver
Is there a way of doing this currently? If not:
https://github.com/appium/appium-mac2-driver/pull/145 should do the job
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.
In Selenium, the recommended way to check if an element is focused is to use:
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: