Coder Social home page Coder Social logo

Comments (12)

shibupanda avatar shibupanda commented on June 9, 2024

@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.

ahashmi24 avatar ahashmi24 commented on June 9, 2024

@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.

shibupanda avatar shibupanda commented on June 9, 2024

@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.

ahashmi24 avatar ahashmi24 commented on June 9, 2024

@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.

shibupanda avatar shibupanda commented on June 9, 2024

@ahashmi24 could you please share complete Appium logs using gist.

from appium-flutter-driver.

ahashmi24 avatar ahashmi24 commented on June 9, 2024

@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.

shibupanda avatar shibupanda commented on June 9, 2024

@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.

truongsinh avatar truongsinh commented on June 9, 2024

@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.
Screen Shot 2020-02-11 at 14 01 41
Can you try remove and re-install appium? This seems to be the error from appium package.

from appium-flutter-driver.

ahashmi24 avatar ahashmi24 commented on June 9, 2024

@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.

shibupanda avatar shibupanda commented on June 9, 2024

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.

ahashmi24 avatar ahashmi24 commented on June 9, 2024

@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.

ahashmi24 avatar ahashmi24 commented on June 9, 2024

@shibupanda

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.