1. Introduction to Selenium Selenium is an integration testing tool from Thoughtworks. At its core, Selenium Core is based on
JSUnit, written entirely in JavaScript, and can run in any browser that supports JavaScript.
1.1 Main Features and Characteristics Open source and free. Multi-browser support: Firefox, Chrome, IE, Opera β usable for compatibility testing.
1. Classification of Cloud Services IaaS, which provides computing and storage services. PaaS, which provides the platform environment in which software runs. SaaS, which delivers software services directly. 2. Application Scenarios for Cloud Services Adopting cloud services can significantly reduce IT spending.
Among IaaS services, cloud hosts and storage are the products with the highest adoption rates, followed by databases and network acceleration.
1. Automatically Generating HTML Form Elements A Widget is the tool used to render an HTML element. Specifying a widget 1 2 3 4 5 6 from django import forms class CommentForm(forms.Form): name = forms.CharField() url = forms.URLField() comment = forms.CharField(widget=forms.Textarea) Output of CommentForm().as_table() 1 2 3 4 5 6
1. Terminology xpath: There are two approaches, the exact path and the approximate path. Exact path: body>div[0]>div[3]>ul>li[5]>a[0], walking up from the clicked element all the way to the root node and recording every node along the way. Approximate path: body>div.header>div.nav>a[23], which on top of the former omits from the upward path any node that is not on the whitelist.