This method searches within the given parent test object, usually a browser page, for an object of a specified class, for example, Link, TextField, Listbox, and so on.
该方法在给定父测试对象(通常是浏览器页面)内搜索指定类的对象,例如,Link、TextField、Listbox等。
In the constructor (see Listing 5), initialize the parent class using the $orientation (page orientation), $unit (measurement unit), and $format (page size) that were passed in.
在构造函数(请参考 清单 5)中,使用传入的 $orientation(页面方向)、$unit(计量单位)和 $format(页面大小)初始化父类。
For example, the page logger records the name of the page the user just requested, the name of the parent page (if it is a derived page), and some other data that is specific to the pages.
例如,页面日志记录器记录用户刚请求的页面名称、父页面名称(如果它是派生页面的话)和某些特定于页面的其他数据。
应用推荐