Open Hyphen31 opened 7 years ago
@Hyphen31 Would you like to raise a PR?
We're in the process of moving all our samples to using the WindowsDriver. There's no reason for it other than some of our samples were written before the WindowsDriver was available.
although in that example I see we are using WindowsDriver :)
We are currently using By.name in combination with the WinAppDriver to get around the missing function call.
WinAppDriver supports find by name, this is a link to a test inside the WinAppDriver using findElementByName.
I hope this might help to get this merged.
This issue is valid, please fix. The accessibility id
is not a substitute for the name
. This is actual issue for the WinAppDriver. Using regular @FindBy(name='Field Name')
is an option until you need to differentiate between desktop platforms and Web.
Description
The WindowsFindBy annotation defined as an interface in src/main/java/io/appium/java_client/pagefactory/WindowsFindBy.java does not contain a 'name' method .
This prevents using the WindowsFindBy annotation to identify Windows elements by their 'name' attribute in WinAppDriver.
WinAppDriver supports FindElementByName.
Environment