When to use AppiumDriver<?> driver parameter? Will that be used for both Android and IOS drivers?

I want to setup a method common for iOS and Android both. Can I write AppiumDriver<?> driver as a parameter and pass any of the drivers(Android and iOS) and expect the same behavior ( at least for find elements)? I don’t have mac so can’t verify the iOS way.

You can Pass AndroidElement to that

Can’t I pass iOSElement?

Ya You can Use it for iOS also

1 Like