Closed ChandanMySelenium closed 1 month ago
What about flutter:longTap
command? https://github.com/appium/appium-flutter-driver
yes, figured it out after some time. Thank you for your replay. is there any function to achieve drag and drop.
I think no to drag and drop. What I could share is NATIVE_APP context may help, but FLUTTER context may not. https://github.com/appium/appium-flutter-driver/issues/332
code:
public static AppiumDriver driver; public static FlutterFinder finder; public static void main(String[] args) { try { DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("platformName", "Android"); capabilities.setCapability("appium:deviceName", "ZF6223VKHF"); capabilities.setCapability("appium:app", "C:\Users\ChandanM\StudioProjects\alink\build\app\outputs\flutter-apk\app-debug.apk"); capabilities.setCapability("appium:automationName", "Flutter"); capabilities.setCapability("appium:appPackage", "com.afs.alink"); capabilities.setCapability("appium:appActivity", "com.afs.alink.MainActivity");
i am trying to perform long press on flutter element but, i am getting error message":"Method has not yet been implemented","stacktrace":"NotYetImplementedError: serverlog image:-