Behat:让方法__toString()没有实现错误

I have php 5.6.14.

Writing context for behat tests I saw an error:error

/** @When /^I want to see JS alert$/ */
public function iExecuteJs() {
    $this->webDriver()->executeScript("jsAlert()");
        if ($this->webDriver()->switchTo()->alert()->getText().contains("js")){
            echo "test passed";
        };

}

What should I do with it?

Thanks

查看全部
dsebywql016137
dsebywql016137
2015/12/12 12:40
  • php
  • tostring
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复