Comments (8)
Make sense, I put it as next enhancement
from appium-flutter-driver.
MobileElement buttonFinder = find.byValueKey("button");
@truongsinh
Ideally, driver should throw an exception if it doesn't get the element by the given locator in the above line.
from appium-flutter-driver.
@ahashmi24 can you have a specific code example, the way I read it, not throwing exception is expected from https://api.flutter.dev/flutter/flutter_driver/FlutterDriver/enterText.html ; this method is used to enter text into focused text field, i.e you have to find and focus that text field first, and if there is no text field focused, the "text input events" are still sent (to nothingness). Is this behavior somehow different from appium?
from appium-flutter-driver.
On the other hand, https://api.flutter.dev/flutter/flutter_driver/FlutterDriver/tap.html has the duration (which we have not implemented in appium-flutter-driver
), which can be solved for your use case, e.g.
driver.elementClick(buttonFinder, {durationMilliseconds: 100})
from appium-flutter-driver.
On the other hand, https://api.flutter.dev/flutter/flutter_driver/FlutterDriver/tap.html has the duration (which we have not implemented in
appium-flutter-driver
), which can be solved for your use case, e.g.
driver.elementClick(buttonFinder, {durationMilliseconds: 100})
I think driver.elementClick(buttonFinder, {durationMilliseconds: 100}) will solve my problem.
Currently, I have used below code snippet to declaring MobileEelment:
MobileElement buttonFinder = find.byValueKey("button");
buttonFinder.click();
If an element is not present on the screen or supplied the invalid locator, driver gets struck and deleting the session after 12 minutes.
from appium-flutter-driver.
Any news ? 😁
from appium-flutter-driver.
hi
is there any update on this
from appium-flutter-driver.
Any update of this?
from appium-flutter-driver.
Related Issues (20)
- npm command 'install --save-dev --no-progress --no-audit appium-flutter-driver --json' failed with code 1. HOT 3
- How long will appium-flutter-driver 1.23.0/older 1.x.x versions) be supported? HOT 1
- pageBack() not working
- Flutter driver on appium: why some elements can't be clicked HOT 1
- Getting timeout on a flutter driver command HOT 5
- Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 HOT 2
- How to handle timeout when locator not displayed on appium flutter
- WDArunner failed to built on real device through XCode - [iProxy@00008110:8100] Connection was refused to port 8100 HOT 8
- Could not find 'apksigner.jar HOT 3
- flutter:scrollIntoView always scrolls inner most ListView and scrolls indefinitely HOT 1
- Flutter driver "doctor" checks and errors out for xcode on non mac platforms HOT 5
- How to validate text value of the TextFormField? HOT 2
- Unknown mobile command "flutter:checkHealth"
- Andriod Automation TouchAction issue HOT 3
- Unable to takeScreenshot on failure using command driver.saveScreenshot() HOT 3
- Flutter 2.5 upgraded to Flutter 3.X.X breaks testing with appium-flutter-driver HOT 1
- Driver not support custom command of flutter driver
- add a new observatory url pattern
- Actions Not Working on some elements with WebdriverIO and Appium-Flutter-Driver
- how to automate check button enabled in Flutter ?? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium-flutter-driver.