4.1 从定位元素开始 WebDriver提供了八种元素定位方: 在Java语言中对应的定位方法: ·id findElement(By.id()) ·name findElement(By.name())·class name findElement(By.className())·tag name findElement(By.tagName())·link text findElement(By.linkText())·partial link text findEl
已经用UFT11.5完成了几个大流程的录制和脚本调测. 现整理下这段过程中脚本中应该记住的点(QTP是VB脚本): 1. 循环和条件部分_reporter结果展示 For i = 1 To brow Step 1 cell_value=btable.GetCellData(i,4) If trim(cell_value)=ordernum Then orderstatus=btable.GetCellData(i,1) If trim(orderstatus)="存盘"
最小化所有窗口: Set obj = CreateObject("Shell.Application")obj.MinimizeAll 最小化某窗口: Const strTitle = "完整的窗口标题" Dim objShell Set objShell = CreateObject("Wscript.Shell") While True If objShell.AppActivate(strTitle) Then Wscript.Sl