功能测试clickAndWait不起作用

Pra*_*war 1 php selenium phpunit yii selenium-webdriver

我在yii中编写web应用程序,phpunit selenum测试是我登录表单的测试用例

public function testHasLoginForm()
    {
        $this->open('site/login');
        $this->assertTextPresent('Login');

        $this->assertElementPresent('name=LoginForm[username]');
        $this->assertElementPresent('name=LoginForm[password]');

        $this->assertTextPresent('Remember me next time');  
        $this->assertTextPresent('Reset Password?');

        $this->assertElementPresent('name=Login');

        $this->type('name=LoginForm[username]','pradeep@techanveshan.com');
        $this->type('name=LoginForm[password]','password');

        $this->clickAndWait("//input[@value='Login']"); //this line cause the error

    }
Run Code Online (Sandbox Code Playgroud)

一切正常,除非我把这个命令 $ this-> clickAndWait("// input [@ value ='Login']");

这行给了我这样的错误:

Invalid response while accessing the Selenium Server at "http://localhost:4444/s
elenium-server/driver/:" ERROR: Command execution failure. Please search the use
r group at https://groups.google.com/forum/#!forum/selenium-users for error deta
ils from the log window.  The error message is: Value does not implement interfa
ce Event.
Run Code Online (Sandbox Code Playgroud)

有谁知道为什么会这样?

Hem*_*nth 5

clickAndWait() is not available in RC or webdriver.
Run Code Online (Sandbox Code Playgroud)

相反,你可以使用

$this->click("//input[@value='Login']");
$this->waitforpagetoload("30000");
Run Code Online (Sandbox Code Playgroud)