Selenium循环测试,使用变量,抓屏
一,前言
? Selenium是测试Web应用程序的很好的客户端工具。这里举例说明如何写循环测试的脚本。
?
二,需要的工具
? 1,Selenium : http://seleniumhq.org/download/
?

?
?
? 2,sideflow.js : https://github.com/darrenderidder/sideflow
??? 也可从附件中得到。
?

?
?
?
三,把【sideflow.js】安装到SelehniumCore中。

?
?
四,扩展抓屏函数(captureEntirePageScreenshot)
? 原装的 captureEntirePageScreenshot 不能用动态文件名,就限制了抓多图的功能。为了解决这个问题,只要在扩展 js 中加入下面代码就行啦。
? 我的附件中加了这段代码。
?

?