Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autosize text widget doesn't return text value with getText() for flutter driver #125

Open
rajagopalvk opened this issue Oct 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@rajagopalvk
Copy link

Steps to Reproduce
Facing uncaught error exception when flutter driver getText() method is used to retrieve text for automation.

Code sample
Flutter driver initialization:

driver = new AndroidDriver<MobileElement>(url, cap);
driver.manage().timeouts().implicitlyWait(sessionTimeout, TimeUnit.SECONDS);
finder = new FlutterFinder(driver);

getText() method code:

    FlutterElement element = finder.byValueKey(locator);
    return element.getText(); //uncaught exception found here

Details of exception:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot execute command get_text, server reponse { "isError": true, "response": "Uncaught extension error while executing get_text: Unsupported operation: Type AutoSizeText is currently not supported by getText\n#0 CommandHandlerFactory._getText (package:flutter_driver/src/common/handler_factory.dart:418:7)\n<asynchronous suspension>\n#1 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:372:31)\n<asynchronous suspension>\n#2 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:855:18)\n<asynchronous suspension>\n", "type": "_extensionType", "method": "ext.flutter.driver" }

Screenshots
Screenshot 2022-10-21 at 4 32 07 PM

Version

  • Flutter version: 3.3.5
  • auto_size_text version: 3.0.0
  • appium version: 2.0.0-beta.44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant