Originally posted by hongtang at 2005-8-18 09:45 PM:
因为根据你用户不同 LINK的连接自然不同 这点要注意
Originally posted by lovetest6 at 2005-8-19 10:05 AM:
应该可以用link的其他属性来找到这个link吧,比如index
iRowCount=4
For i=1 to iRowCount
linksname=Browser("xxx").Page("xxx").WebTable("xxx").GetCellData(i, 1)
(这里的GetCellData(i, 1),我假设了连接在每行的第一列)
linksname=cstr(linksname)
Browser("xxx").Page("xxx").Link("xxx").SetTOProperty "text",linksname
Browser("xxx").Page("xxx").Link("xxx").Click
Next
Note: WebElement("Name:=UserName", "Index:=0") If there is only one object, using index=0 will not retrieve it. You should not include the index property in the object description.
To add the WebElement object to your script manually, you can provide a unique description for the object using the following descriptive programming syntax:
WebElement ("object_identifier1 := identifier1_value" , "..." ,
"object_identifierX := identifierX_value")
Use as many identifier definitions as necessary to provide a unique description. For more information on descriptive programming syntax, refer to the QuickTest User's Guide.
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |