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

17869497: UIAKeyboard.typeString() cannot set value on invalid element: UIATextField #12232

Open
openradar-mirror opened this issue Apr 15, 2016 · 0 comments

Comments

@openradar-mirror
Copy link

Description

Summary:
I have been plagued by this problem for over a year.

Steps to Reproduce:

To reproduce:

  1. clone this repository: https://github.com/jmoody/animated-happiness
  2. build and run the 'chou' target with Xcode 5.1.1 with base SDK 7* simulator or physical device
  3. launch Instruments 5.1.1, target the chou app on the target from 2.
  4. execute the follow script in a UIAutomation template
var target = UIATarget.localTarget();

for (i = 0; i < 1000; i++) { 
    UIALogger.logDebug("starting iteration: " + i)
    target.frontMostApp().mainWindow().elements()["first page"].textFields()["text"].setValue("");
    target.frontMostApp().mainWindow().elements()["first page"].textFields()["text"].tap();
    target.frontMostApp().keyboard().typeString("Hello");
    target.frontMostApp().keyboard().typeString("\n");
    target.delay(1);
}

Increase the number iterations until you get a failure.

For fun, try a more complicated string like: "}=k,Gk-f"&7{2&ZRq$2zyzsq#y.R,?<R)T;w,xQYm€*3!,Nu?PY"

Expected Results:

Expected

UIAKeyboard.typeString() to work without error.

Actual Results:

Actual

VerboseError: Cannot set value on invalid element: UIATextField from UIATextField

Version:

  • OS X 10.9.4 (13E28)
  • Xcode 5.1.1
  • Instruments 5.1.1
  • iOS 7

Notes:

Related iOS 8b4

https://devforums.apple.com/message/1013742#1013742

Product Version: 5.1.1
Created: 2014-07-31T12:19:44.076598
Originated: 2014-07-31T14:17:00
Open Radar Link: http://www.openradar.me/17869497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant