OscarXie.net

关注质量与体验——电子商务与自动化测试

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  436 随笔 :: 0 文章 :: 221 评论 :: 69万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
CKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt" vAlign=top width=140>

Item

WatiN

Selenium RC

Explorer Supported

Known work

Ø  IE 6 and IE 7

Known work

Ø  IE 6 and IE 7

Ø  Firefox 1.5.0 and 2.0

Ø  Opera 8.5.4 and 9.0.2

Should work

Ø  Firefox 0.8 to 2.0

Ø  Mozilla Suite 1.6+, 1.7+

Ø  Sea monkey 1.0

System supported

Known work

Ø  Windows XP and 2003

Known work

Ø  Windows XP and 2003

Ø  Windows 2000(need to install install reg.exein order to use IE)

Ø  Mac OS X

Ø  Linux

Language supported

Ø  C#

Ø  C#

Ø  Java

Ø  Perl

Ø  PHP

Ø  Python

Ø  Ruby

Test environment supported

Ø  Visual Studio 2005 Team System

Ø  Visual Studio 2005 Team System

AJAX

Supports AJAX website testing

l  Selenium Server communicates directly with the browser using AJAX (XmlHttpRequest)

l  The Selenium Server is great for testing complex AJAX-based web user interfaces under a Continuous Integration system

Get/Post requests

 

We can send commands directly to the Server using simple HTTP GET/POST requests

Https supported

 

Support for https

Javascrīpt Supported

Void Document.Runscrīpt(string)

l  We can write selenium RC tests in Javascrīpt with JsUnit.

l  it Allows a Selenium-enabled browser to run Javascrīpt on arbitrary websites.

HTML

Automates all major HTML elements and find elements by multiple attributes

 

HTML dialogs

Supports HTML dialogs (modal and modeless)

 

Frame

Supports frame (Cross domain) and iframes

 

Popup dialogs

Supports popup dialogs like alert, confirm, login etc

 

Screenshots

Support creating screenshots of web pages

 

 

 

对现有控件的兼容性不好。比如文件上传控件和日历控件就无法在Selenium RC中捕捉
2.
不支持https连接方式??

http://bbs.51testing.com/thread-84131-1-6.html

Developing Info

Item

WatiN

Selenium RC

Developing Language

Ø  C#

Ø  Java and so on

Methods Example

Item

WatiN Example

Selenium RC Example

Set  element

event

Document.button(Find.ById(btnG”)).click()

DefaultSelenium.Type(“q”,”hello world”)

Get element attributes

Document.button (Find.ById(btnG”)).Style. Height

DefaultSelenium.GetElementHeight(“q”)

especial methods

                             

Then we can’t hanle the time used for pages loading.

                           ===

 

 

 

Ø  Link[1].Click()

Ø  Link(Find.ByIndex(1)).Click()

We can use these two methods to click the links that the value is null.

Ø  WaitForPageToLoad(“5000”)

(if we want to go to another page and get the elements in the new page, we have to use the method, or we will in the old page.)

 

 

==    We can’t find the links that the value is null

posted on   oscarxie  阅读(2419)  评论(2编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
点击右上角即可分享
微信分享提示