Skip to content

named_textfield #100

@bootstraponline

Description

@bootstraponline

Given a textfield with an accessibility identifier:

[myTextField setAccessibilityIdentifier:@"my_unique_name_for_this_textfield"];

It appears twice in the page output:

UIATableCell
   name: my_unique_name_for_this_textfield
  value: 
UIATextField
   name: my_unique_name_for_this_textfield
  label: 
  value:

name('my_unique_name_for_this_textfield').type will type into the table cell instead of the textfield.

def named_textfield target_name
  wait do
    target = e_textfields.detect { |e| e.name == target_name }
    raise 'name textfiled not found' unless target
    target
  end
end

Now we know the proper type has been selected.

named_textfield('woven_account_name_textfield').type 'testing'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions