我在找到一种方法来定义限制/超时时遇到了一些麻烦。
因此,我四处寻找可以应用的 yaml 设置,但一无所获。我已经看到在Behat\SahiClient\Client::__construct()上设置了限制。
因此,在对笔记本电脑进行了几次头撞之后,我得出了以下结论:
$this->getSession()->getDriver()->getClient()->setConnection(
new \Behat\SahiClient\Connection(
null,
$this->parameters['rest_url'],
null,
null,
1200
)
);
这实际上改变了我预期的值,而不是从 while 到 while 出现以下错误:
Command execution time limit reached: `_sahi.setServerVarPlain("___lastValue___53c8d8e5cfd3a", JSON.stringify(document.URL))`
我总是得到这个:
name lookup timed out
知道我可能会错过什么,还是有一种简单的方法可以做到这一点?
谢谢