Comments (12)
@ahashmi24 I don't think now patch version is required as Appium 1.16.0 support Appium flutter driver beta.
Please update the flutter driver dependency to latest in package.json and do npm install.
from appium-flutter-driver.
@shibupanda
I tried the same what suggested. However, I am still getting same issue:
[email protected] prepare /usr/local/lib/node_modules/appium
gulp prepublish
[22:50:23] No gulpfile found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepare: gulp prepublish
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
is it possible to push these fixes to appium beta?
from appium-flutter-driver.
@ahashmi24 are you able to start Appium 1.16.0 successfully even after getting above error. If yes then please try to execute the script and check once.
from appium-flutter-driver.
@shibupanda
I have updated appium-flutter-driver version manual by below command:
npm install -g appium-flutter-driver
Now, it is showing :
Ahmers-MacBook-Pro:~ vikasvipul$ npm ls -g appium-flutter-driver
/usr/local/lib
├─┬ [email protected]
│ └── [email protected]
└── [email protected]
However, the "waitFor" flutter command behaves as previously.
from appium-flutter-driver.
@ahashmi24 could you please share complete Appium logs using gist.
from appium-flutter-driver.
@shibupanda
Please find the gist for the same:
https://gist.github.com/ahashmi24/788098b5ee41bb8cba9e3640c2fc0f91
Code snippet:
driver.context("FLUTTER");
FlutterElement buttonToOpenCalendar = find.byValueKey("button"); // intentionally I used incorrect value key
driver.executeScript("flutter:waitFor", buttonToOpenCalendar);
from appium-flutter-driver.
@ahashmi24 looks like it's a existing driver not the latest one. Please install correctly.
One suggestion it may work for you. Please delete the existing appium-flutter-driver from node modules and please install the latest driver in the same node modules directory without -g.
@truongsinh any idea when the flutter driver latest version will come up with appium bundle.
from appium-flutter-driver.
@shibupanda @ahashmi24
Yes, firstly, 1.16.0
of appium already include appium-flutter-driver
, so we no longer need the patch version. I will update README.
Can you try remove and re-install appium? This seems to be the error from appium
package.
from appium-flutter-driver.
@shibupanda @truongsinh
I have tried installing appium beta version (npm install -g appium@beta) and could see the latest appium-flutter-driver version which is coming with appium beta bundle.
Ahmers-MacBook-Pro:~ vikasvipul$ appium -v
1.16.0-beta.3
Ahmers-MacBook-Pro:~ vikasvipul$ npm ls -g appium-flutter-driver
/usr/local/lib
├─┬ [email protected]
│ └── [email protected]
└── [email protected]
However, waitFor command still stuck when an element is not present on the screen or passing an invalid locator.
Appium logs:
https://gist.github.com/ahashmi24/d81ead9e8938324e2cca3c943059540f
from appium-flutter-driver.
Hi @ahashmi24
We have already updated in README and in nodejs example that from now onward there is one more argument need to pass in wait commands. Needs to be added in other examples as well.
Could you please try below code for java.
driver.executeScript("flutter:waitFor", find.text("I can enter text"), new HashMap<String, Object>() {{
put("durationMilliseconds", 100);
}});
from appium-flutter-driver.
@shibupanda
It's throwing an exception "org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: durationMilliseconds is not a valid options (WARNING: The server did not provide any stacktrace information)"
After adding below code snippet:
driver.executeScript("flutter:waitFor", find.byValueKey("button"), new HashMap<String, Object>(){{
put("durationMilliseconds", 100);}});
Appium logs:
https://gist.github.com/ahashmi24/802d87814ec2e41768136726029741db
from appium-flutter-driver.
I got it, below syntax is working fine for me:
driver.executeScript("flutter:waitFor", find.byValueKey("button"), 1);
Hence, closing this issue.
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.