首页 技术 正文
技术 2022年11月17日
0 收藏 932 点赞 4,434 浏览 2078 个字

https://seleniumhq.github.io/docs/index.htmlhttps://www.seleniumhq.org/THE SELENIUM BROWSER AUTOMATION PROJECTSelenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.It provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specificationthat lets you write interchangeable code for all major web browsers.This project is made possible by volunteer contributors who have put in thousands of hours of their own time, and made the source code freely available for anyone to use, enjoy, and improve.Selenium brings together browser vendors, engineers, and enthusiasts to further an open discussion around automation of the web platform. The project organises an annual conference to teach and nurture the community.At the core of Selenium is WebDriver, an interface to write instruction sets that can be run interchangeably in many browsers. Here is one of the simplest instructions you can make:from selenium import webdriver driver = webdriver.Firefox() driver.get(“http://google.com/?hl=en”) search_box = driver.find_element_by_name(“q”) search_box.send_keys(“cheese”) search_box.submit()See the Quick Tour for a full explanation of what goes on behind the scenes when you run this code. You should continue on to the narrative documentation to understand how you can install and successfully use Selenium as a test automation tool, and scaling simple tests like this to run in large, distributed environments on multiple browsers, on several different operating systems. SELENIUM浏览器自动化项目Selenium是使用一系列工具和库支持Web浏览器自动化功能的综合项目。它提供了模拟用户与浏览器交互的扩展,用于扩展浏览器分配的分发服务器,以及用于实现 W3C WebDriver规范的基础结构 ,可让您为所有主要Web浏览器编写可交互的代码。这个项目由志愿者贡献者完成,他们已经投入了数千小时的时间,并且可以 让任何人免费使用源代码以供每个人使用、欣赏和改进。Selenium将浏览器供应商,工程师和爱好者聚集在一起,围绕Web平台的自动化进一步开展讨论。该项目组织年度会议 来教育和培育社区。Selenium的核心是WebDriver,它是一个编写指令集的接口,可以在许多浏览器中交替使用。这是您可以做出的最简单的指令之一:from selenium import webdriver driver = webdriver.Firefox() driver.get(“http://google.com/?hl=en”) search_box = driver.find_element_by_name(“q”) search_box.send_keys(“cheese”) search_box.submit()运行此代码时,请参阅快速浏览以了解幕后操作的完整说明。您应该继续阅读叙述文档, 以了解如何安装并成功使用Selenium作为测试自动化工具,并将这种简单的测试扩展为在多个浏览器上的大型分布式环境中,在多个不同的操作系统上运行。  

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,075
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,551
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,399
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,176
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,811
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,893