Comments (15)
Thank You @StephanB75
from appium-flutter-driver.
@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.
will work on it and update it.
from appium-flutter-driver.
@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.
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.
@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.
You exchanged "listViewElement" with your element on which you want to scroll ?
from appium-flutter-driver.
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.
@StephanB75
from appium-flutter-driver.
No real idea sorry, you can check if you are in the flutter context with the driver. Otherwise no idea.
from appium-flutter-driver.
Okay Thanks for the time. Appreciate it.
from appium-flutter-driver.
"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.
@StephanB75 okay will try. thanks
from appium-flutter-driver.
Hi @JunaidAlamSheikh I have the same problem, did you find a solution?
from appium-flutter-driver.
@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)
- add check command
- [iOS][Flutter 3.16.5][XCode 15.2] App crashing after calling TakesScreenshot HOT 1
- Tap & Hold an Element
- Cannot find item with By.Id in android into popup request permission in android device HOT 4
- Cannot scroll up or down list and not find item by xpath in list on modal flutter HOT 1
- Issue running a default flutter project (counter) on the latest Flutter SDK version HOT 8
- iOS: Flutter driver not recognised in Appium HOT 13
- 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"
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.