百度空间 | 百度首页 
 
查看文章
 
参数化LINK的方法
2007-10-31 15:24
利用 Description 对象,Description对象有5个方法
Add Method
Count Property
Remove Method
RegularExpression Property
Value Property
复制内容到剪贴板
代码:
For intLoop = 1 to N
     strText=DataTable.Value(...)
     Set LinkDesc = Description.Create()
     LinkDesc ("Text").Value = strText
     Browser("").Page("").Link(LinkDesc).Click
     DataTable.GetSheet("").SetNextRow
Next
或者还可以用以下方法,描述性编程,格式 object(":property:=" & Parameterized_Variant)
代码:
For intLoop = 1 to N
     strText=DataTable.Value(...)
     Browser("").Page("").Link("text:=" & strText).Click
     DataTable.GetSheet("").SetNextRow
Next

类别:软件测试工具 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu