UIAElement.tap() fails with

Originator:arumugam.deivanayagam
Number:rdar://10987712 Date Originated:
Status: Resolved:
Product:iOS SDK Product Version:4.2
Classification:Serious Bug Reproducible:Sometimes
 
Summary:
Sometimes, UIAElement.tap() fails with "scrollToVisible could not generate a scroll to make the element visible."

After the failure, I call window.logElementTree(), and the UIAElement I'm trying to tap is present.

Steps to Reproduce:
Create a GUI with a horizontal scroll view.
Within the scroll view add enough children to require horizontal scrolling.
Call UIAElement.tap() on an element that is not visible on the screen

Expected Results:
The UIAElement should be scrolled to visibility before being tapped.

Actual Results:
The following errors are reported
2012-03-05 21:25:08 +0000 Debug: target.frontMostApp().mainWindow().scrollViews()["Scroll View"].staticTexts()["Child"].tap()
2012-03-05 21:25:08 +0000 Debug: target.frontMostApp().mainWindow().scrollViews()["Scroll View"].staticTexts()["Child"].scrollToVisible()
2012-03-05 21:25:09 +0000 Debug: target.frontMostApp().mainWindow().scrollViews()["Scroll View"].staticTexts()["Child"] - scrollToVisible could not generate a scroll to make the element visible.
2012-03-05 21:25:09 +0000 Debug: target.frontMostApp().mainWindow().scrollViews()["Scroll View"].staticTexts()["Child"] - scrollToVisible could not generate a scroll to make the element visible.
2012-03-05 21:25:09 +0000 Debug: target.frontMostApp().mainWindow().scrollViews()["Scroll View"].staticTexts()["Child"] could not be tapped

Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!