appium / appium/appium-flutter-driver
how we can handle Flutter: wait for drop down list
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 539
- Forks
- 195
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 4
Description
public void selectRandomCustomerCategory() {
try {
// Step 1: Click the dropdown
FlutterElement categoryDropdown = flutterFinder
.byValueKey(TestKeys.customerCreateEditPageTestKeys.category);
categoryDropdown.click();
logger.info("Category dropdown clicked");
// Step 2: Define possible categories
String[] categories = { "Manager", "Founder" };
// Step 3: Randomly choose one
String chosen = categories[new Random().nextInt(categories.length)];
String key = "customer_create_edit_page_category_" + capitalize(chosen);
logger.info("Randomly selecting category: {}", key);
// Step 4: Click the selected category directly
FlutterElement selectedElement = flutterFinder.byValueKey(key);
selectedElement.click();
logger.info("Category selected: {}", key);
} catch (Exception e) {
logger.error("Failed to select random customer category", e);
}
}
FlutterDriver@3815][0m Calling AppiumDriver.click() with args: ["eyJrZXlWYWx1ZVR5cGUiOiJTdHJpbmciLCJrZXlWYWx1ZVN0cmluZyI6ImN1c3RvbWVyX2NyZWF0ZV9lZGl0X3BhZ2VfY2F0ZWdvcnkiLCJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSJ9","750ce59e-69ba-4af9-b1f6-3191b0867355"]
[38;5;191m[750ce59e][0m[38;5;54m[FlutterDriver][0m Executing Flutter driver command 'click'
[38;5;191m[750ce59e][0m[38;5;53m[FlutterDriver@3815][0m >>> {"command":"tap","keyValueType":"String","keyValueString":"customer_create_edit_page_category","finderType":"ByValueKey"}
[38;5;191m[750ce59e][0m[38;5;53m[FlutterDriver@3815][0m <<< {"isError":false,"response":{},"type":"_extensionType","method":"ext.flutter.driver"} | previous command tap
[38;5;191m[750ce59e][0m[38;5;53m[FlutterDriver@3815][0m Responding to client with driver.click() result: {}
[38;5;191m[750ce59e][0m[38;5;86m[HTTP][0m [37m<-- POST /session/750ce59e-69ba-4af9-b1f6-3191b0867355/element/eyJrZXlWYWx1ZVR5cGUiOiJTdHJpbmciLCJrZXlWYWx1ZVN0cmluZyI6ImN1c3RvbWVyX2NyZWF0ZV9lZGl0X3BhZ2VfY2F0ZWdvcnkiLCJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSJ9/click [39m[32m200[39m [90m59 ms - 12[39m [90m[39m
16:41:05.976 [main] INFO Base.Helper - Category dropdown clicked
16:41:05.976 [main] INFO Base.Helper - Randomly selecting category: customer_create_edit_page_category_Founder
[38;5;191m[750ce59e][0m[38;5;86m[HTTP][0m [37m-->[39m [37mPOST[39m [37m/session/750ce59e-69ba-4af9-b1f6-3191b0867355/element/eyJrZXlWYWx1ZVR5cGUiOiJTdHJpbmciLCJrZXlWYWx1ZVN0cmluZyI6ImN1c3RvbWVyX2NyZWF0ZV9lZGl0X3BhZ2VfY2F0ZWdvcnlfRm91bmRlciIsImZpbmRlclR5cGUiOiJCeVZhbHVlS2V5In0%3D/click[39m [90m{"id":"eyJrZXlWYWx1ZVR5cGUiOiJTdHJpbmciLCJrZXlWYWx1ZVN0cmluZyI6ImN1c3RvbWVyX2NyZWF0ZV9lZGl0X3BhZ2VfY2F0ZWdvcnlfRm91bmRlciIsImZpbmRlclR5cGUiOiJCeVZhbHVlS2V5In0="}[39m
[38;5;191m[750ce59e][0m[38;5;53m[FlutterDriver@3815][0m Calling AppiumDriver.click() with args: ["eyJrZXlWYWx1ZVR5cGUiOiJTdHJpbmciLCJrZXlWYWx1ZVN0cmluZyI6ImN1c3RvbWVyX2NyZWF0ZV9lZGl0X3BhZ2VfY2F0ZWdvcnlfRm91bmRlciIsImZpbmRlclR5cGUiOiJCeVZhbHVlS2V5In0=","750ce59e-69ba-4af9-b1f6-3191b0867355"]
[38;5;191m[750ce59e][0m[38;5;54m[FlutterDriver][0m Executing Flutter driver command 'click'
[38;5;191m[750ce59e][0m[38;5;53m[FlutterDriver@3815][0m >>> {"command":"tap","keyValueType":"String","keyValueString":"customer_create_edit_page_category_Founder","finderType":"ByValueKey"}
[38;5;133m[8fe4b3d3][0m[38;5;86m[HTTP][0m [37m-->[39m [37mGET[39m [37m/session/8fe4b3d3-a696-43d2-a129-e2d7060bd9a0/timeouts[39m [90m{}
Just the element is staying on, waiting for a long time. How can we use the drop-down selection in Flutter
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the selectRandomCustomerCategory() entry point and the FlutterDriver click calls shown in the log, especially the second click on customer_create_edit_page_category_Founder. Reproduce the dropdown interaction and determine why the selected element remains waiting; done means a category selection completes without the element hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter, java
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100