`

selenium学习

阅读更多

1. selenium可用于浏览器兼容测试及系统功能测试:

  • Browser compatibility testing. Test your application to see if it works correctly on different browsers and operating systems. The same script can run on any Selenium platform.
  • System functional testing. Create regression tests to verify application functionality and user acceptance.

2. 运行selenium core需要对服务器有写权限。Selenium Core uses a unique mechanism which allows it to run on so many platforms. Written in pure JavaScript/DHTML, you copy Selenium Core tests directly into your your application webserver, allowing the tests to run in any supported browser on the client-side. Thus, you must have write access to the machine your web application server is running on to install Selenium Core.


 Selenium is designed specifically for the acceptance testing requirements of Agile teams. However, teams using more traditional development will also find it useful.

 

 

难题(不能解决的问题)

1. 保存文件,保存密码等对话框无法处理。

You can, but only if the dialog is an alert or confirmation dialog. Other special dialogs can't be dismissed by javascript, and thus currently cannot be interacted with. These include the "Save File", "Remember this Password" (Firefox), and modal (IE) dialogs. When they appear, Selenium can only wring its hands in despair.

To solve this issue, you may use a workaround (if one exists); otherwise you may have to exclude the test from your automated corpus. For the "Save File" dialog in Firefox, a custom template may be specified when running via the RC that will always cause the file to be downloaded to a specified location, without querying the user (see http://forums.openqa.org/thread.jspa?messageID=31350 ). The "Remember this Password" dialog should not appear again after you've chosen to remember it. Currently there is not much that can be done about IE modal dialogs.

2.下载文件处理

Currently it is only possible to do this by configuring Firefox with a profile template, telling it to save a file to a specified location without prompting the user with a file chooser dialog. See here: http://clearspace.openqa.org/message/31350 . There do not appear to be workarounds for other browsers yet.

 

 

Selenium User Meetup 2008: Lightning Talks

http://www.youtube.com/watch?v=EDb8yOM3Vpw

分享到:
评论

相关推荐

    Selenium 学习简要概览

    Selenium学习简要概览, 包括Selenim的发展历史,Selenium 1代和2代的区别,架构,快速入门。

    Selenium学习笔记源代码

    **Selenium学习笔记源代码** Selenium是一款强大的自动化测试工具,尤其在Web应用程序的测试领域,它被广泛应用。本学习笔记源代码旨在帮助开发者和测试工程师深入理解和掌握Selenium的基本用法,通过实际操作和...

    软件测试理论总结,Selenium学习.zip

    本资料包“软件测试理论总结,Selenium学习.zip”聚焦于软件测试的基础理论与Selenium自动化测试工具的深入学习,旨在帮助开发者和测试工程师提升测试效率和质量。 一、软件测试理论 1. 测试目标:软件测试的主要...

    selenium学习札记20110930.doc

    ### Selenium学习札记知识点概述 #### 一、XPath与元素选择 XPath是一种在XML文档中查找信息的语言。尽管Selenium主要用于Web自动化测试,但它利用XPath的强大功能来定位页面上的元素。 **选择多个路径:** - **...

    selenium学习文档

    ### Selenium 学习文档知识点详解 #### 一、Selenium 的起源与发展 Selenium 的诞生源于对昂贵且专有的测试工具的需求替代。在 Selenium 出现之前,Mercury Quality Center 是市场上最受欢迎的功能测试工具之一。...

    selenium学习资料

    **Selenium学习资料详解** Selenium 是一个广泛应用于Web应用程序自动化测试的开源工具,它支持多种编程语言,如Java、Python、C#等,并且能够与各种浏览器无缝集成,包括Chrome、Firefox、Edge等。本资料...

    selenium学习使用资料

    Selenium简介,selenium RC使用简单温习,Selenium命令.

    python-web自动化办公-selenium学习笔记

    1.python-web自动化办公-selenium学习笔记 2.适合刚刚入门selenium开发人员查询使用 3.web自动化办公,例如节省办公妹子keyin时间 4.学习成本低,操作难度不大。 备注:需要html,javascript , css 前端基本功底,...

    selenium学习.xmind

    selenium常用API知识思维导图,大家可以继续扩展,欢迎关注:gzh吾非同,获取更多资源。

    selenium 学习资料

    selenium学习资料:Selenium测试实践_基于电子商务平台.pdf,selenium_webdriver-java.pdf,selenium2.0_中文帮助文档.pdf,Selenium定位大全01.pdf,基于Selenium 2的自动化测试 从入门到精通PDF电子书下载 带书签...

    java-selenium学习

    Selenium简介: 支持多种语言。基于Java语言,Selenium 3.0版本,用的框架是TestNG框架 支持浏览器:IE,Chrome,FireFox,Safari。支持Windows,Mac系统平台上运行

    selenium相关学习资料

    总之,这份Selenium学习资料将帮助你从基础到进阶,全面掌握自动化测试技能,无论你是测试工程师还是开发人员,都能从中受益,提升你的Web应用测试能力。通过深入学习和实践,你将能够自如地运用Selenium进行各种...

Global site tag (gtag.js) - Google Analytics