PHPUnit Selenium2驱动程序。关闭窗口()

时间:2013-08-09 05:59:44

标签: phpunit selenium-webdriver

有人可以向我解释为什么在中间有closeWindow()函数的测试用例与服务器错误的通信失败,而另一个没有:

FAILED:

public function test1()
{
    $this->url('http://www.yahoo.com');
    $this->closeWindow();             
    $this->url('http://www.google.com');

}

通过:

public function test1()
{
    $this->url('http://www.yahoo.com');                 
    $this->url('http://www.google.com');

}

closeWindow()不会像close()那样清除会话,对吗?

0 个答案:

没有答案
相关问题