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

Uncaught extension error while executing get_text #585 #12

Open
baselalali opened this issue Oct 6, 2023 · 1 comment
Open

Uncaught extension error while executing get_text #585 #12

baselalali opened this issue Oct 6, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@baselalali
Copy link

Background:

I am working on a Flutter application and using Flutter Driver for automated testing. In my test script, I'm attempting to retrieve the text of an element with the value key "imprint_link."

Expected Behavior:

I expect to be able to retrieve the text of the element with the value key "imprint_link" using the getText() method.

Current Behavior:

When I try to get the text of the element using fnd.byValueKey("imprint_link").getText(), I encounter the following error:

image

{
  "isError": true,
  "response": "Uncaught extension error while executing get_text: Unsupported operation: Type Text is currently not supported by getText\n#0 CommandHandlerFactory._getText (package:flutter_driver/src/common/handler_factory.dart:422:7)\n<asynchronous suspension>\n#1 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:376:31)\n<asynchronous suspension>\n#2 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:936:18)\n<asynchronous suspension>\n",
  "type": "_extensionType",
  "method": "ext.flutter.driver"
}




`[Appium]   - [email protected] (automationName 'XCUITest')
[Appium]   - [email protected] (automationName 'UiAutomator2')
[Appium]   - [email protected] (automationName 'Flutter')`


       <dependency>
            <groupId>io.github.ashwithpoojary98</groupId>
            <artifactId>appium_flutterfinder_java</artifactId>
            <version>1.0.3</version>
        </dependency>

@ashwithpoojary98
Copy link
Owner

@baselalali getText() as of now only works for Text widget

@ashwithpoojary98 ashwithpoojary98 added the help wanted Extra attention is needed label Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants