ashwithpoojary98 / javaflutterfinder

Flutter driver with Java implementation
MIT License
10 stars 5 forks source link

Using AndroidDriver instead of appium-flutter-driver #3

Closed hananmalka closed 1 year ago

hananmalka commented 1 year ago

Hi, I see you are using instance of AndroidDriver: driver = new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);

Should it work on a flutter app? In case of the platformName is iOS?

ashwithpoojary98 commented 1 year ago

driver = new AppiumDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities); you can make a driver generic that will work.

driver = new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities); for Android driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities); for ios

ashwithpoojary98 commented 1 year ago

I hope your doubt is clarified. Move issue to close state