Selenium IDE 2.9.1在录制后未显示Selenium脚本

Selenium IDE 2.9.1在录制后未显示Selenium脚本,selenium,selenium-ide,Selenium,Selenium Ide,我刚刚安装了SeleniumIDE2.9.1并记录了一个测试用例。但是当检查源代码时,它只显示HTML,而不是selenium脚本 <?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://

我刚刚安装了SeleniumIDE2.9.1并记录了一个测试用例。但是当检查源代码时,它只显示HTML,而不是selenium脚本

<?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="https://www.google.co.in/" />
<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>/?gws_rd=ssl</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=Passwd</td>
    <td>arunkojndfjn</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=signIn</td>
    <td></td>
</tr>

</tbody></table>
</body>
</html>

新测试
新测试
打开
/?gws_rd=ssl
类型
id=Passwd
arunkojndfjn
单击并等待
id=签名

如何获取selenium脚本?谢谢。

将selenium IDE脚本转换为可以在Webdriver中运行的脚本不是通过查看文件来完成的,因为文件本身是以特定于selenium的HTML格式编写的。您需要使用selenium IDE本身中的选项。如果您转到“文件>将测试用例导出为”,您将获得可以将测试导出为的各种语言的列表。

如果您在文本编辑器中查看Selenium IDE中记录的测试用例,这是预期的显示。当你说“获取selenium脚本”时,你到底是什么意思?您是否正在尝试以在selenium webdriver中运行的格式获取脚本?e、 g.Java/Python等是的..Smith…@Jsmith2800,