Coder Social home page Coder Social logo

Comments (15)

JunaidAlamSheikh avatar JunaidAlamSheikh commented on June 2, 2024 1

Thank You @StephanB75

from appium-flutter-driver.

shibupanda avatar shibupanda commented on June 2, 2024

@pradarttana-sharechat
Please follow the same standard for scroll mentioned in java example.
In your case you are using flutter:scroll (two arguments durationMilliseconds and frequency missing).

from appium-flutter-driver.

pradarttana-sharechat avatar pradarttana-sharechat commented on June 2, 2024

will work on it and update it.

from appium-flutter-driver.

JunaidAlamSheikh avatar JunaidAlamSheikh commented on June 2, 2024

@pradarttana-sharechat I am also facing the same scrolling issue. Can you please tell me how you added the other attributes to scroll in appium flutter driver?
driver.executeScript("flutter:scroll", find.byValueKey("key"), new HashMap<String, Object>() {{ put("dxScroll", 0); put("dyScroll", -400); }});

from appium-flutter-driver.

RSM-SBA avatar RSM-SBA commented on June 2, 2024

@JunaidAlamSheikh

i have used this one and it worked so far. I think you have to use a listView to scroll on

driver.executeScript("flutter: scroll", listViewElement, new HashMap<String, Object>() {{
put("dx", 90);
put("dy", -400);
put("durationMilliseconds", 200);
put("frequency", 30);
}});

from appium-flutter-driver.

JunaidAlamSheikh avatar JunaidAlamSheikh commented on June 2, 2024

@StephanB75 I have tried the above snippet but still getting this error
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: [object Object] is not a valid options

Any lead on this?

from appium-flutter-driver.

RSM-SBA avatar RSM-SBA commented on June 2, 2024

You exchanged "listViewElement" with your element on which you want to scroll ?

from appium-flutter-driver.

JunaidAlamSheikh avatar JunaidAlamSheikh commented on June 2, 2024

Yes I did
driver.executeScript("flutter: scroll", find.byValueKey("reportsItemsOnClick"), new HashMap<String, Object>() {{
put("dx", 0);
put("dy", -200);
put("durationMilliseconds", 200);
put("frequency", 30);
}});

from appium-flutter-driver.

JunaidAlamSheikh avatar JunaidAlamSheikh commented on June 2, 2024

@StephanB75

from appium-flutter-driver.

RSM-SBA avatar RSM-SBA commented on June 2, 2024

No real idea sorry, you can check if you are in the flutter context with the driver. Otherwise no idea.

from appium-flutter-driver.

JunaidAlamSheikh avatar JunaidAlamSheikh commented on June 2, 2024

Okay Thanks for the time. Appreciate it.

from appium-flutter-driver.

RSM-SBA avatar RSM-SBA commented on June 2, 2024

"reportsItemsOnClick" this sound more like a button.
I think you need to find the valueKey from the list element which contains all the elements on the view

from appium-flutter-driver.

JunaidAlamSheikh avatar JunaidAlamSheikh commented on June 2, 2024

@StephanB75 okay will try. thanks

from appium-flutter-driver.

ronaldcastro88 avatar ronaldcastro88 commented on June 2, 2024

Hi @JunaidAlamSheikh I have the same problem, did you find a solution?

from appium-flutter-driver.

DhakshathAmin avatar DhakshathAmin commented on June 2, 2024

@RSM-SBA @shibupanda @JunaidAlamSheikh

I used below code, It worked for positive case, but for the negative case i.e. text element not found in screen, driver.executiveScript(...) goes into loop

Its not terminating even by the timout

driver.executeScript("flutter:scrollUntilVisible", ele.byType("SettingsScreen"), new HashMap<String, Object>() { { put("item", ele.text("falseElement")); put("dxScroll", 50); put("dyScroll", 100); put("timeout", 5000); put("durationMilliseconds", 500); put("frequency", 30); } });

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.