如何放慢selenium的运行速度

来源:互联网 发布:java 线程wait 编辑:程序博客网 时间:2024/05/16 07:20

selenium执行时,有一个默认是运行速度,有时候速度很快,一眨眼就过去了,虽然报成功,但是不确定有没有按照我的步骤来,selenium提供了一个方法,可以用来设置运行速度,selenium.setSpeed("10000");

 

下面是详细的列子:

[SetUp]
public void SetupTest()

{
selenium = new DefaultSelenium("localhost", 4444, "*iexplore", URL");
selenium.Start();
selenium.setSpeed("1000");

}

原创粉丝点击