2

这个问题有什么解决办法吗

我用 :

$this->type('contentform', '我需要打印这个并继续我的测试');

但是在我提交后它失败了,而当我手动提交它时它工作。我正在使用此代码提交:

$this->click("发布");

我通过 selenium RC + phpunit 测试我的应用程序 ps:它在 selenium IDE 中工作,但在 selenium RC 中失败。我想知道为什么 ?

4

1 回答 1

2

我可以使用 typeKeys 来做到这一点

现在,而不是使用'type',我使用'typeKeys'。所以我将在所见即所得编辑器中输入文本,例如 TinyMCE,例如:

$this->typeKeys('contentform', 'i need to print this and go on with my testing');
于 2010-08-26T18:53:11.267 回答