English 中文(简体)
UIAutomation决定UIAElement.isVisible()
原标题:How does UIAutomation determine whether a UIAElement.isVisible()

I have a view with the following structure:

GrandView
-Parent View1
-Parent View2
--Child View1
--Child View2

儿童的意见几乎涉及<条码>Parent View2的所有界限,但周围仍有一些空间。 我可在模拟器中选取Parent View2,如果我点击了旁边,可与访问监察员接洽。 如果我使用的话,我还可以在UIAutomation中利用Parent View2:

tapWithOptions({tapOffset:{x:0.15, y:0.95}});

然而,我要求<代码>sVisible(>)的电话总回报为0。 我预计,如果我能够利用这个要素,或与无障碍检查员一起选择这一要素,那么它就应当退回<代码>1<>。

UIAutomation如何确定一个UIAElement是否明显?

问题回答

每次针对某一要素进行的行动都有时间。 这从 Apple果文件中明显可见,但如果你看上去:timeout,它告诉我们:br/>:<>

The timeout value establishes a grace period for object resolution. If an object representing a UI element becomes available within the grace period, an attempt is made to instantiate that object from information retained by the instrument.

本身只是改变违约值(如推波和波浪)。 你真的想要做的是,根据你的意见采取行动,如果你永远无法得到,就没有及时采取行动(缺省时间为5秒)。 世界妇委会2010年会议“用仪器对用户进行面对面测试”很少见,可在ADCWWDC 2010网页上查阅,同时有录像和幻灯。 在你看来,你希望执行主线。 由于某种原因,如果UIAutomation公司在5秒之内提供这种观点,你就应当看到一种例外。 http://www.un.org

var oldTimeout = target.timeout(); target.pushTimeout(10);

页: 1

target.poptimeout (oldtimeout);

之后。

如果它发出《不动产法》的话,它就应当把<条码>隐藏的财产强加于它。 如果它不持有观点,而且它是一个集装箱,它就应当由<条码>无障碍环境编码<>驱动。

不过,总的来说,你不想为乌阿诺托特人使用。 相反,无论你将做什么,就本案而言,主线是走下去的,如果系统不停的话,那就会造成错误。 总的来说,这是你想要在你的文字中遵循的模式,而不是首先检验是否有东西。 Sine UIAutomation is DOM scripting the UIAccessibility information, when matters such as animated view transitions whenisses go out of sync. 有时,该书的执行速度快于国际笔记,有时是相反的:

Alex Vollmer s tuneup.js library for UIAutomation makes writing tests much easier, and is easy to extend. https://github.com/alexvollmer/tuneup_js





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签