selenium automated testing browser, it is mainly used for automated testing of web applications, but it is certainly not limited to this, with
Supports automation of all web-based administrative tasks.
Features of selenium:
Open source, free
Multi-browser support: FireFox, Chrome, IE, Opera
Multi-platform support: linux, windows, MAC
Multi-language support: java, python, ruby, php, C#,
JavaScript
Good support for web pages
Simple (simple API), flexible (driven by development language)
Support distributed test case execution
Front-end knowledge requirements
Introduction to HTML
HTML (Hyper Text Markup Language) Chinese is a hypertext markup language, HTML is the basis of web pages, it is not a
programming language, but a markup language (a set of markup tags), but we can embed various front-end scripting languages in HTML tags, such as
VBScript
,
JavaScript, etc. Here is a simple HTML page:
The text between <html> and </html> describes the page
The content between <title> and </title> is displayed in the browser's title bar
The text between <body> and </body> is the visible page content
The text between <h1> and </h1> is displayed as body text, and h1 is the font size 1 on the page
Now we open any page through the browser, right-click on the page and select "View Web Page Source Code", in the complex front-end
You can still find HTML in the code
Introduction to JavaScript
JavaScript is a front-end scripting language developed from Netscape's LiveScript (a scripting language is a lightweight
级的语言),是一种解释性语言(代码执行不需要预编译);被设计用来向 HTML 页面添加交互行为,
通常被直接嵌入到 HTML 页面。
如果要在 HTML 页面中使用 JavaScript ,我们需要使用<script>标签,同时使用 type 属性来定义脚
本语言:
通过<script type="text/javascript"> 和</script > 就可以告诉浏览器 JavaScript 脚本从何处开始,
到何处结束。 使用 document.write() 可以向文档输出写内容。
XML 简介
ML 是指扩展标记语言,是标准通用标记语言的一个子集;与 HTML 类似,但它并非 HTML 的替代品,
它们为不同的目的而设计; HTML 被设计用来显示数据,其焦点是数据的外观。 XML 被设计为传输和存储
数据,其焦点是数据的内容。
下面是一个简单的 XML
<?xml version="1.0"?> 一个应该包含 XML 的声明,它定义了 XML 文档的版本号。
<note></note> 定义了文档里的第一个元素,也叫根元素。
<to></to>、 <from></from>、 <heading></heading>、 <body></body> 为根元素的子元素, 他们分别
包含了发送者与接收者的信息。这个 XML 文档仅仅是用标签包装了纯粹的信息,我们需要编写软件或程
序,才能传送、接收和显示出这个文档。
XML 允许我们自己定义标签,上例中的标签没有在任何 XML 标准中定义过,如<to> 和<from>,这
些标签是由我们自己定义的。
前段工具
firebug,firepath