How to Build Web Automation Test Framework Quickly
I. Writing on the front
Before using the WebDriver framework, I used two other automated testing frameworks, IBM Rational Robot and TestComplete, which are powerful payment tools for automated testing of Web, mobile and desktop applications, compared to WebDrIver, they are automated. For script developers, there are not enough "open" ...
Posted by dustbuster on Tue, 16 Jul 2019 14:25:23 -0700
jacascript DOM node acquisition
Foreword: This is the author's own understanding and arrangement after learning. If there are any mistakes or doubts, please correct them and I will keep updating them.
getElementById()
The obj.getElementById(id) method receives a parameter (the ID of the element), returns the element object if it is found, and returns null if it does not ex ...
Posted by geethalakshmi on Mon, 08 Jul 2019 17:26:13 -0700
JS load event (UI)
When the page is fully loaded (including all images, JavaScript files, CSS files and other external resources), the load event on the window will be triggered.
There are two ways to define onload event handlers. The first way is to use the following JavaScript code:
EventUtil.addHandler(window,"load",function(event){
alert("loaded!");
} ...
Posted by mzfp2 on Wed, 03 Jul 2019 11:47:08 -0700
JS Operating dom Node and Compatibility
parentNode
What you get is your own father (direct relationship)
// Click on the child to hide the father
<script>
window.onload = function(){
var child = document.getElementById("child");
child.onclick = function(){
this.parentNode.style.display = "none";
}
}
</script>
Brother node ...
Posted by chrisio on Mon, 01 Jul 2019 14:41:19 -0700
JS(9) Event Handling
I. HTML Event Processing
1. Advantages:
Specifying event handling in HTML creates a function that encapsulates the value of element attributes. This function has a local variable event, that is, event object, through which event object can be accessed directly.
You can use with to extend the scope to allow time handlers to access other for ...
Posted by haroon on Fri, 28 Jun 2019 11:15:16 -0700
javaScript--Analysis of Reduced Array Method
Overview: Array in javaScript contains not only reduce methods, but also foreach,map,filter and so on. Here we mainly introduce reduce methods.
Reduc () accumulates data from left to right until the end is a value (that is, the final result), which sounds abstract. The accumulated attention can be either data or string editing.
1. Grammar:
a ...
Posted by eric_e on Tue, 25 Jun 2019 17:33:20 -0700
Implementation of textarea word number monitoring based on both pc and mobile
I. Requirement Description and Common Solutions
Make a text box to limit the maximum number of words, real-time monitor the number of currently entered words, and display. At the beginning of this period, I realized this function by adding onkeyup event method to textarea control, printing out the length of textarea value in the method, and add ...
Posted by rallan on Sat, 22 Jun 2019 14:46:59 -0700
The first bullet in the summer vacation is the result inquiry system of the Dean's Office of Yangtze University based on Django
This article covers the following knowledge points: Python crawler, MySQL database, html/css/js foundation, selenium and phantomjs foundation, MVC design pattern, django framework (Python web development framework), apache server, linux (centos 7 as an example) basic operation. Therefore, it is suitable for students who have the above foundatio ...
Posted by oyse on Mon, 17 Jun 2019 14:11:05 -0700
css style fragment
1. Vertical alignment
If you use CSS, you will be confused: how do I align elements in the container vertically? Now, using CSS3 Transform, you can gracefully solve this puzzle:
.verticalcenter{
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%) ...
Posted by Big_Rog on Mon, 10 Jun 2019 16:10:37 -0700
15 common JavaScript string manipulation methods
1 Initialization
//Common Initialization Methods
var stringVal = "hello iFat3";
//Constructor Creation Method
var stringObj = new String("hello iFag3");
2 length attribute
var stringVal = "hello iFat3";
//Output 11
console.log(stringVal.length);
3 charAt()
Returns the character at a given position
var stringVal = "hello iFat3";
//Output e
conso ...
Posted by karnetics on Sat, 08 Jun 2019 11:20:42 -0700