0

*我正在使用 Selenium2 服务器和 PHPUnit 来运行一些基本的单元测试,我正在尝试单击此表中的输入字段:

<table id="items">               
            <tbody >
                <tr><td>
                    <input type="text" data-type="string" value="" class="text">
                 </td></tr>

            </tbody>  
</table>

我的 xpath 代码如下所示:

$this->click("xpath=//table[@id='items']/input[@type='text']");

我得到的错误如下:

/*PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Internal server error w
hile executing POST request at http://localhost:4444/wd/hub/session/2ca03fc2-89d
b-4a6f-b209-340f11d65182/click. Response: NULL*/

每次尝试执行 xpath 方法时,我都会收到此错误。有谁知道这是为什么?

4

0 回答 0