appium-flutter-driver icon indicating copy to clipboard operation
appium-flutter-driver copied to clipboard

flutter:scrollIntoView always scrolls inner most ListView and scrolls indefinitely

Open dlewis2017 opened this issue 1 year ago • 1 comments
trafficstars

Summary

flutter:scrollIntoView always scrolls inner most ListView and scrolls indefinitely, even when specifying ListView with flutter:scrollUntil

Code

...
capabilities = XCUITestOptions().load_capabilities(capabilities)
driver = webdriver.Remote(appium_server_url, options=capabilities)
driver.execute_script("flutter:scrollIntoView", locator, {"alignment": 0})

Specs

Appium-Flutter-Finder: 0.7.0
Appium-Python-Client: 4.0.0
pytest_bdd: 7.1.2
python: 3.12.1
...
flutter doctor
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.3.1 23D60 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.87.2)
[✓] VS Code (version 1.84.0-insider)
[✓] Connected device (3 available)            
[✓] Network resources
...
device: iPad

dlewis2017 avatar Apr 03 '24 23:04 dlewis2017

@dlewis2017 . You can set timeout for it

thuonglai avatar May 17 '24 10:05 thuonglai