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

named_textfield #100

Closed
bootstraponline opened this issue Nov 14, 2013 · 0 comments
Closed

named_textfield #100

bootstraponline opened this issue Nov 14, 2013 · 0 comments

Comments

@bootstraponline
Copy link
Member

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant