我目前通过PHPUnit将Selenium命令运行到远程服务器。我遇到了一个问题,我试图将图像上传到输入表单。Selenium,PHPUnit和AttachFile()
在我PHPUnit的,我有命令
$this->attachFile('file', 'file://test.png');
我的硒服务器返回
PHPUnit_Framework_Exception: Response from Selenium RC server for testComplete().
java.lang.RuntimeException: Output already exists: /tmp/selenium2070373138020433468upload.
我test.png文件目前只有位于我在哪里执行我的文件夹中的一个错误。 PHP的单元测试。
如何通过PHPUnit和Selenium正确上传文件并使其不会抛出异常?
请选择正确的答案。 – bikedorkseattle