-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
add tags_include/tags_exact to be able to find elements of arbitrary classes such as XCUIElementTypeTextView #488
Comments
Yes, currently Do generic methods means like the following code? # @param [String] value
# @param [Array[String]] *args
def tags_include(value, *args)
visible_elements = args.flat_map(&:tags)
elements_include visible_elements, value
end
# @param [String] value
# @param [Array[String]] *args
def tags_exact(value, *args)
visible_elements = args.flat_map(&:tags)
elements_exact visible_elements, value
end
|
I'll implement like the above helper as v9.3.3 |
I added |
Awesome, looks fantastic! Thank you :) |
published ruby_lib 9.3.3 |
iOS offers a UITextView element that can be used to display multiline text with special formatting. From their docs:
This element comes across in the source with the class
XCUIElementTypeTextView
.I think it's a reasonable expectation that the
text()
method would match these elements. However, currently only elements with classXCUIElementTypeStaticText
are matched: https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/ios/element/text.rb#L5Thoughts? I looked around the code and it doesn't seem too difficult. I may give it a shot! I think to do it properly, some of the generic methods / helpers should be modified to take an array of class names, rather than a single class.
The text was updated successfully, but these errors were encountered: