ui自动化测试框架之selenium关键字驱动.docVIP

  • 14
  • 0
  • 约4.43千字
  • 约 5页
  • 2019-10-17 发布于湖北
  • 举报

ui自动化测试框架之selenium关键字驱动.doc

driver.findElement(By.xpath(//*[@id=OSC_Userbar]/a[3].click(; } // 关闭浏览器 public static void CloseBrowser ({ driver.quit(; } }5、修改Login_Script脚本 public class Login_Script { public static void main(String []agrs throws Exception{ ExcelUtils.setExcelFile(D:\\data\\TestData.xls, steps; ActionKeyWords actionKeyWords= new ActionKeyWords(; String Keywords=null; for(int RowNum=1;RowNum=ExcelUtils.getLastRowNums(;RowNum++{ Keywords=ExcelUtils.getCellDate(RowNum, 3; if(Keywords.trim(.equals(OpenBrowser{ actionKeyWords.OpenBrowser(; }else if(Keywords.trim(.equals(Navigate{ actionKeyWords.Navigate(; }el

文档评论(0)

1亿VIP精品文档

相关文档