5

到目前为止,我的测试用例在 FF21 上运行良好,但是在我更新到 FF22 后,当我使用“输入”按钮时,他提交了所有表单而不是这个焦点元素。我的“代码”有一部分

$this->byXPath("//*[@id=\"likes\"]/span")->click();
sleep(2);`enter code here`
$this->keys("some");
sleep(2);
$this->keys("\xEE\x80\x87"); //in FF21 after clicking the enter "some" was selected, now on FF22 its submit whole form
$this->byXPath("//*[@id=\"asSearch\"]")->click();

只是回答了我自己。我变了

$this->keys("\xEE\x80\x87"); //enter key

对此
$this->keys("\xEE\x80\x86"); //return key

它不是最好的解决方案,但它对我有用

4

0 回答 0