|
大家好,我录制的网页中含有ext,但是在回放的过程中总是报ext找不到是为什么呢?
用testRunner回放时出现:
click imgStartDate
waitForElementPresent ext-gen145 Timed out after 30000ms
verifyElementPresent ext-gen145 false
click ext-gen145 Element ext-gen145 not found
代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>http://sas.iohelp11.cn/sas/login</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>坐席登录</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>account</td>
<td>test</td>
</tr>
<tr>
<td>type</td>
<td>workerId</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>loginPassword</td>
<td>111111</td>
</tr>
<tr>
<td>click</td>
<td>divLoginBtn</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>坐席登录</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='divWestCenter']/div[6]/div[2]/label</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>imgStartDate</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>ext-gen145</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>ext-gen145</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>ext-gen145</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>ext-gen38</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>divCenterCenter</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>ext-gen101</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>ext-gen122</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
我是新手,不知道问题出自哪儿,所以内容可能有冗余 |
|