-
Notifications
You must be signed in to change notification settings - Fork 4
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
Flutter driver commands #8
Comments
This will return a list of all elements that have a
This will print out a string representation of the element and its attributes, including its type, size, and location on the screen. You can also use regular expressions to extract specific attributes from the diagnostic output.
This code extracts the width attribute of the element from the diagnostic output and prints it to the console. |
Please let me know if the same commands work in Java |
Yes it should work in java as well |
Thanks will try them, Can we also initialise element using @findby appium field decorators |
Yes, We can execute all the commands |
@ashwithpoojary98 how can i use them in java ? is there any example ? |
Yes, driver.execute('flutter:checkHealth'); |
my appiumdriver don't have findAll() api? and i use the getText() api if the element doesn't exist the code will run forever,can't stop. this is my code: public static void main(String[] args) { |
@yyuanmeme attach the Appium logs |
2023-09-19 06:34:32:805 [FlutterDriver@c847 (0f49e93a)] Cached the protocol value 'W3C' for the new session 0f49e93a-d5ea-4c85-a0ba-a03400fc0281 blocked here |
After 10 minutes I got the error message: the appium log is : |
The text value "App 反饋11" looks like localized Chinese. Is it possible to convert it to UTF-8 format? String value = "App 反饋11"; |
The text value "App 反饋" can be found,but "App 反饋11"text is not exitst ,So it will keep searching。 |
@yyuanmeme Yes, if the locator is not correct, it may fail to find the element. Let me check on my end to reproduce the issue. |
Which driver are you using?
My appium driver doest not suggest |
Hi I am new to Flutter driver, I need help on how we can do the following.
The text was updated successfully, but these errors were encountered: