Moving code from prior to java-client ver8.00 to ver8.5.
I have statements like driver.findElementByAccessibilityId("slider1")
It has to work for both Android and iOS devices, because our app is written as a Flutter app.
I am aware that now the present webdriver is the direct sub class of RemoteWebDriver. But I could not find a equivalent method like findElementByAccessibilityId in RemoteWebDriver class or AppiumDriver classes.
Environment
Java client build version or git revision if you use some snapshot:8.5
Appium server version or git revision if you use some snapshot:2.0.0.-beta66
Desktop OS/version used to run Appium if necessary:Mac Ventura 13.3.1a
Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe:v18.15.0
Mobile platform/version under test:Android and iOS both at 13
Please create a gist with the pasted stacktrace of the exception thrown by java.
Link To Appium Logs
Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.
Description
Moving code from prior to java-client ver8.00 to ver8.5. I have statements like driver.findElementByAccessibilityId("slider1") It has to work for both Android and iOS devices, because our app is written as a Flutter app. I am aware that now the present webdriver is the direct sub class of RemoteWebDriver. But I could not find a equivalent method like findElementByAccessibilityId in RemoteWebDriver class or AppiumDriver classes.
Environment
Details
Please provide more details, if necessary.
Code To Reproduce Issue [ Good To Have ]
Please remember: it's easier to reproduce and fix the bug with sample code. You can git clone https://github.com/appium/appium/tree/master/sample-code or https://github.com/appium/appium/tree/master/sample-code/apps and reproduce an issue using Java and sample apps. Also you can create a gist with pasted java code sample or put it here using markdown. About markdown please read Mastering markdown and Writing on GitHub
Exception Stacktraces
Please create a gist with the pasted stacktrace of the exception thrown by java.
Link To Appium Logs
Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.