QTP: ten categories of commonly used Web controls

A, Browser- browser object

SystemUtil.Run,打开浏览器。
Sync,同步方法,意思是等待浏览器完全打开再进行下一步的操作。
Navigate,打开URL。
Close,关闭浏览器。

Two, Page- page

Page Object Browser is generally sub-objects, each page is a Page object, Name Value Page object is the value of HTML tags Title.

Exist,是否存在
Sync,同步
Childobjects,孩子对象-也就是页面里的对象

Three, WebEdit- text box

Web page input box I can be recognized as an object WebEdit

Set,用来设置输入框中的值
GetROProperty,获取运行时对象的值

 Four, Link- hyperlinks

Click,点击
CheckProperty,CheckProperty方法是检查Link对象的属性是否正确。

Five, WebButton- button

Click,点击

Six, WebElement- unknown components

GetROProperty,获取运行时对象的值

Seven, WebList- drop-down box

Drop-down box to identify the page as the object WebList

Select,选择子选项

八&九,WebRadioGroup&&WebCheckBox

WebRadioGroup?&&WebCheckBox

Select
Set

Ten, WebTable- table

ColumnCount,获取列数	
RowCount,获取行数
GetCellData,获取指定单元格的值
ChildItemCount,得到指定单元格内的测试对象的数目

 

Published 349 original articles · won praise 161 · views 190 000 +

Guess you like

Origin blog.csdn.net/qq_42192693/article/details/103800266