qtp常用函数总结.doc

qtp常用函数总结

qtp常用函数总结 作用:获取单元格的值 例: rowCount = Browser.Page.Frame.WebTable.RowCount For counter = 1 To rowCount text = Browser.Page.Frame.WebTable.GetCellData If Then counter = counter - 1 selectNO = “#” counter Browser.Page.Frame.WebRadioGroup.Select selectNO Exit For End If Next 2.把值插入datatable里 例: datatable.setcurrentrow datatable.value=“name” datatable.value=“passwd” 3.用代码来启动浏览器 Browser1 = “IE” StartURL = ““ IF Browser1 = “IE” THEN set IE = CreateObject IE.Visible = true IE.Navigate StartURL END IF 4

文档评论(0)

1亿VIP精品文档

相关文档