|
想写一个简单的测试:通过点击来完成一些操作。但是re-play的时候就出了问题:Element button..... not found.先把出现的问题粘出来:
# [info] Changed test case
# [info] Executing: |open | / | |
# [info] Executing: |selectFrame | left | |
# [info] Executing: |click | skysan_lvm | |
# [info] Executing: |selectFrame | relative=up | |
# [info] Executing: |click | button_lv_new | |
# [error] Element button_lv_new not found
下面把我的html代码粘出来:
<?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="http://10.10.170.200/" />
<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>/</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>left</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>skysan_lvm</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>relative=up</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>button_lv_new</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
因为是初用,不知道哪些是比较重要的,所以贴的东西比较多,麻烦大家给看下了,谢谢。 |
|