Method: Appium::Ios#string_visible_contains
- Defined in:
- lib/appium_lib/ios/common/helper.rb
#string_visible_contains(element, value) ⇒ String
Returns an object that matches the first element that contains value
example: ele_by_json_visible_contains ‘UIATextField’, ‘sign in’
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/appium_lib/ios/common/helper.rb', line 299 def string_visible_contains(element, value) contains = { target: value, substring: true, insensitive: true } { typeArray: [element], onlyVisible: true, name: contains, label: contains, value: contains } end |