ashwithpoojary98 / javaflutterfinder

Flutter driver with Java implementation
MIT License
12 stars 4 forks source link

not able to click on drop down on a flutter mobile app though appium automation using java #23

Open Rahul1970 opened 3 months ago

Rahul1970 commented 3 months ago

Hi ashwith

I am working on automation of a flutter mobile application. i am trying to perform click on a component which is a dropdown i.e upon clicking on it a bottomsheet with a list of option appears which has flutter view as its default view. but i am not able to do so FlutterElement element3 = find.byValueKey("SALUTATION"); element3.click(); Even though in the log it is showing that the element exist it is not being clicked. Please help.

This is the log i am getting in console.

[581e94f6] [0m [38;5;147m[FlutterDriver@de42] [0m Calling AppiumDriver.click() with args: ["eyJrZXlWYWx1ZVR5cGUiOiJTdHJpbmciLCJrZXlWYWx1ZVN0cmluZyI6IlNBTFVUQVRJT04iLCJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSJ9","581e94f6-74ce-4bc9-a042-22ece1b38aa0"] [38;5;64m[581e94f6] [0m [38;5;54m[FlutterDriver] [0m Executing Flutter driver command 'click' [38;5;64m[581e94f6] [0m [38;5;54m[FlutterDriver] [0m >>> {"command":"tap","keyValueType":"String","keyValueString":"SALUTATION","finderType":"ByValueKey"} [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Shutting down because we waited 240 seconds for a command [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Deleting UiAutomator2 session [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Stopping chromedriver for context WEBVIEW_com.mobile.offlineplay [38;5;64m[581e94f6] [0m [38;5;99m[Chromedriver@d73e] [0m Changed state to 'stopping' [38;5;64m[581e94f6] [0m [38;5;99m[Chromedriver@d73e] [0m Proxying [DELETE /] to DELETE [http://127.0.0.1:64855/session/8b85960b52fdf9e6fab23e62cc7502ff] with no body [38;5;64m[581e94f6] [0m [38;5;99m[Chromedriver@d73e] [0m Got response with status 200: {"value":null} [38;5;64m[581e94f6] [0m [38;5;99m[Chromedriver@d73e] [0m Changed state to 'stopped' [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Deleting UiAutomator2 server session [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Matched '/' to command name 'deleteSession' [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Proxying [DELETE /] to DELETE [http://127.0.0.1:8205/session/2503dedc-5458-4f6c-a090-5ea95eda24c1] with no body [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Got response with status 200: {"sessionId":"2503dedc-5458-4f6c-a090-5ea95eda24c1","value":null} [38;5;64m[581e94f6] [0m [38;5;229m[ADB] [0m Running 'C:\Users\Rahul.singh2\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys activity services io.appium.settings/.recorder.RecorderService' [38;5;64m[581e94f6] [0m [38;5;229m[ADB] [0m Running 'C:\Users\Rahul.singh2\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.mobile.offlineplay' [38;5;64m[581e94f6] [0m [38;5;160m[Logcat] [0m Stopping logcat capture [38;5;64m[581e94f6] [0m [38;5;229m[ADB] [0m Removing forwarded port socket connection: 8205 [38;5;64m[581e94f6] [0m [38;5;229m[ADB] [0m Running 'C:\Users\Rahul.singh2\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp:8205' [38;5;199m[a647ca52] [0m [38;5;54m[FlutterDriver] [0m Connection to ws://127.0.0.1:46319/PZs9h8uhwHg=/ws closed [38;5;64m[581e94f6] [0m [38;5;-181m[AndroidUiautomator2Driver@1b10] [0m Restoring hidden api policy to the device default configuration [38;5;64m[581e94f6] [0m [38;5;229m[ADB] [0m Running 'C:\Users\Rahul.singh2\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' [38;5;199m[a647ca52] [0m [38;5;74m[Instrumentation] [0m . [38;5;199m[a647ca52] [0m [38;5;74m[Instrumentation] [0m Time: 316.348 [0m The process has exited with code 0

ashwithpoojary98 commented 1 month ago

Hi @Rahul1970, could you please add more logs and a code snippet to help us better understand the issue?