appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.21k stars 756 forks source link

Added ByWindowsAutomation to AppiumBy.java #2112

Closed itaibh closed 8 months ago

itaibh commented 8 months ago

Change list

Added ByWindowsAutomation to AppiumBy.

Types of changes

What types of changes are you proposing/introducing to Java client? Put an x in the boxes that apply

Details

Until version 8.6 there was the MobileBy class which had all the features now moved to AppiumBy, but not all features were migrated there. I added the missing ByWindowsAutomation that existed in the now removed MobileBy and was provided no replacement.

linux-foundation-easycla[bot] commented 8 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

mykola-mokhnach commented 8 months ago

This locator has been deprecated and removed deliberately as it was not used anywhere

itaibh commented 8 months ago

@mykola-mokhnach How can you tell for sure it wasn't used anywhere? I have a code that is using it.

mykola-mokhnach commented 8 months ago

Just to be precise - it was not used in any drivers that we maintain. Of course there might be third party drivers we don't know about and they may use different locator types. The idea was for that we introduce more flexible system where corresponding drivers may also define custom locator types, so there is a clear relationship between them.

itaibh commented 8 months ago

ok, I see. thanks.