Enviar pesquisa
Carregar
Selenium介绍
•
Transferir como PPT, PDF
•
1 gostou
•
794 visualizações
L
lory hou
Seguir
this is a start point of selenium
Leia menos
Leia mais
Tecnologia
Vista de apresentação de diapositivos
Denunciar
Compartilhar
Vista de apresentação de diapositivos
Denunciar
Compartilhar
1 de 31
Baixar agora
Recomendados
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
liqiang xu
Eclipse開發平台快速入門
Eclipse開發平台快速入門
Luo Korth
Efficient JavaScript Unit Testing (Chinese Version), JavaOne China 2013
Efficient JavaScript Unit Testing (Chinese Version), JavaOne China 2013
Hazem Saleh
网易移动自动化测试实践(孔庆云)
网易移动自动化测试实践(孔庆云)
drewz lin
Php可调试团队开发环境配置
Php可调试团队开发环境配置
xinqi yang
PHPUnit
PHPUnit
jameslabs
钱宝坤:多浏览器集成的JavaScript单元测试工具
钱宝坤:多浏览器集成的JavaScript单元测试工具
taobao.com
Java2新觀念教本投影片ch1
Java2新觀念教本投影片ch1
5045033
Recomendados
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
liqiang xu
Eclipse開發平台快速入門
Eclipse開發平台快速入門
Luo Korth
Efficient JavaScript Unit Testing (Chinese Version), JavaOne China 2013
Efficient JavaScript Unit Testing (Chinese Version), JavaOne China 2013
Hazem Saleh
网易移动自动化测试实践(孔庆云)
网易移动自动化测试实践(孔庆云)
drewz lin
Php可调试团队开发环境配置
Php可调试团队开发环境配置
xinqi yang
PHPUnit
PHPUnit
jameslabs
钱宝坤:多浏览器集成的JavaScript单元测试工具
钱宝坤:多浏览器集成的JavaScript单元测试工具
taobao.com
Java2新觀念教本投影片ch1
Java2新觀念教本投影片ch1
5045033
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
bwgang
Servlet & JSP 教學手冊第二版試讀 - 撰寫與設定 Servlet
Servlet & JSP 教學手冊第二版試讀 - 撰寫與設定 Servlet
Justin Lin
manual
manual
angelsainy
张所勇:前端开发工具推荐
张所勇:前端开发工具推荐
zhangsuoyong
Erlang Practice
Erlang Practice
litaocheng
Lucene 全文检索实践
Lucene 全文检索实践
yiditushe
test
test
xieyq
Struts快速学习指南
Struts快速学习指南
yiditushe
Web testing automation
Web testing automation
kuozui
在雲端上啜飲爪哇
在雲端上啜飲爪哇
建興 王
Java 1(Java概述)
Java 1(Java概述)
xzdbd
Asp net
Asp net
Kyle Lin
P6 服务器安装与配置
P6 服务器安装与配置
epst
第1讲 开始编写程序
第1讲 开始编写程序
ruandao
網站設計100步
網站設計100步
evercislide
钟志 第八期Web标准化交流会
钟志 第八期Web标准化交流会
Zhi Zhong
RESTful
RESTful
PingLun Liao
Struts Mitac(1)
Struts Mitac(1)
wangjiaz
Web base 吴志华
Web base 吴志华
FLASH开发者交流会
0220 Windows server 2008 PowerShell
0220 Windows server 2008 PowerShell
Timothy Chen
Mais conteúdo relacionado
Semelhante a Selenium介绍
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
bwgang
Servlet & JSP 教學手冊第二版試讀 - 撰寫與設定 Servlet
Servlet & JSP 教學手冊第二版試讀 - 撰寫與設定 Servlet
Justin Lin
manual
manual
angelsainy
张所勇:前端开发工具推荐
张所勇:前端开发工具推荐
zhangsuoyong
Erlang Practice
Erlang Practice
litaocheng
Lucene 全文检索实践
Lucene 全文检索实践
yiditushe
test
test
xieyq
Struts快速学习指南
Struts快速学习指南
yiditushe
Web testing automation
Web testing automation
kuozui
在雲端上啜飲爪哇
在雲端上啜飲爪哇
建興 王
Java 1(Java概述)
Java 1(Java概述)
xzdbd
Asp net
Asp net
Kyle Lin
P6 服务器安装与配置
P6 服务器安装与配置
epst
第1讲 开始编写程序
第1讲 开始编写程序
ruandao
網站設計100步
網站設計100步
evercislide
钟志 第八期Web标准化交流会
钟志 第八期Web标准化交流会
Zhi Zhong
RESTful
RESTful
PingLun Liao
Struts Mitac(1)
Struts Mitac(1)
wangjiaz
Web base 吴志华
Web base 吴志华
FLASH开发者交流会
0220 Windows server 2008 PowerShell
0220 Windows server 2008 PowerShell
Timothy Chen
Semelhante a Selenium介绍
(20)
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
Servlet & JSP 教學手冊第二版試讀 - 撰寫與設定 Servlet
Servlet & JSP 教學手冊第二版試讀 - 撰寫與設定 Servlet
manual
manual
张所勇:前端开发工具推荐
张所勇:前端开发工具推荐
Erlang Practice
Erlang Practice
Lucene 全文检索实践
Lucene 全文检索实践
test
test
Struts快速学习指南
Struts快速学习指南
Web testing automation
Web testing automation
在雲端上啜飲爪哇
在雲端上啜飲爪哇
Java 1(Java概述)
Java 1(Java概述)
Asp net
Asp net
P6 服务器安装与配置
P6 服务器安装与配置
第1讲 开始编写程序
第1讲 开始编写程序
網站設計100步
網站設計100步
钟志 第八期Web标准化交流会
钟志 第八期Web标准化交流会
RESTful
RESTful
Struts Mitac(1)
Struts Mitac(1)
Web base 吴志华
Web base 吴志华
0220 Windows server 2008 PowerShell
0220 Windows server 2008 PowerShell
Selenium介绍
1.
目录 1 Selenium
介绍 2 3 4 Selenium-IDE 介绍 Selenium-Core 介绍 Selenium-Rc 介绍
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
三 . 常用语法介绍
1. 测试文本输入框(以 http://192.100.1.224/ 登陆页面为例子) public void testLogin() { String s,temps s = “” temps = “” selenium.open(" http://192.100.1.224/ "); selenium.type("xpath=//input[@id='user']", “admin"); selenium.type("xpath=//input[@id='pass']", “admin"); s = selenium.getAttribute("xpath=//IMG[@id='authImg']@src"); tmps = s.substring(43); selenium.type("authcode1",tmps); selenium.click("loginsubmit"); selenium.waitForPageToLoad("9000"); assertEquals (selenium.getTitle(),"QQView"); }
24.
25.
2. 测试下拉框 java
代码 public void testSelect() { selenium.open("http://xxx.xxx.xxx/yyy"); selenium.select("xpath=//SELECT[@name='SBBUSYO']","index=1"); selenium.click("xpath=//input[@type='button']"); selenium.waitForPageToLoad("2000"); assertEquals(selenium.getTitle(), "Welcome"); } 可以看到,我们可以使用 select 方法来确定选择下拉框中的哪个选项。 select 方法还有很多用法,具体去看看帮助文档。
26.
27.
28.
7 、如果有
alert 弹出对话框 可以这样来关闭弹出的对跨框: java 代码 if(selenium.isAlertPresent()) { selenium.getAlert(); } 其实当调用 selenium.getAlert() 时,就会关闭 alert 弹出的对话 框
29.
30.
31.
Baixar agora