At present, we use Python 2.7 (please do not despise, company environment, can't use Python 3) + robot framework to automate the function test. Today, we need to use selenium for web page operations, as follows
Installing the selenium 2 library Library
Using pip installation, the process is simple: pip install robot framew ...
Posted by flash99 on Tue, 03 Dec 2019 03:01:57 -0800
First, let's look at the style of the radio box:
<div class="option" v-for="(option, ind) in item.surveyQuestionOptionList" :key="ind">
<input :value="option.selectid" type="radio" :id="'option' + item.qid + option.selectid" :name="item.qid" :checked="ind == 0">
<label :for="'option' + item.qid + option.selectid ...
Posted by Patty on Tue, 03 Dec 2019 01:06:01 -0800
Recently, we are maintaining an old Web project, which uses DWR 2.0 (a remote communication framework that can call Java methods in js). Now we need to use this framework to upload files to and download files from the server. However, DWR 2.0 used in this project only supports calling Java methods with basic data types, String, List, ...
Posted by Fakcon on Mon, 02 Dec 2019 05:36:35 -0800
1. Loop through all drop-down list values2. Radio drop-down list3. Selection and cancellation of multi selection list4. Operate the radio box, multi box, assert and select all5. Assert keywords in page source code6. screenshots7. Drag page elements
1. Loop through all drop-down list values
//Education back ...
Posted by pillot1005 on Wed, 20 Nov 2019 12:24:42 -0800
Let's take a look at a picture:
There are many ways to achieve this effect, such as directly using < input type = "range" / > to modify the style, or using the following methods to modify
<button class="slider-thumb">&l ...
Posted by Daegalus on Wed, 20 Nov 2019 11:32:15 -0800
In this article, we will learn the related operations of HttpServletRequest on request header. In fact, there are two methods to learn. The first is to get the value of specific attribute in request header. The second method is to get all attributes. The return is an enumeration type.
1. Get the value of name in a request h ...
Posted by chris_s_22 on Sun, 10 Nov 2019 08:46:13 -0800
Four clients are started for testing
1. Log in and get the list of online users2. Private chat function3. Group chat function
I found WebSocket by chance. I found that it can communicate in real time and chat online. So I made a demo of chat tool and recorded it
WebSocket is native to js, and Socket.io is a ...
Posted by slamMan on Thu, 07 Nov 2019 00:24:35 -0800
JSZIP.js (the JSZIP Library of the compression and decompression plug-in on the web page side)
Filesaver.js (file saved to local library)
Direct interpretation of source code:
<div class="uploadBtn">Select pictures<input name="file" accept="image/png, image/jpeg" multipl ...
Posted by basim on Thu, 31 Oct 2019 03:22:39 -0700
dragstart: this event is triggered on the dragged element at the beginning of dragging. The listener needs to set the data required for dragging. This event is not triggered when dragging files from the operating system to the browser.
Regenter: trigger on the element when draggi ...
Posted by PugJr on Thu, 24 Oct 2019 03:57:35 -0700
The first step is preparation. Get Client ID and Client Secret
1. Log in GitHub official website and click Setting, as shown below:
2. Continue, click Developer settings, as shown below:
3. Continue, click Oauth Apps, as shown below:
4. Continue, click new origin app, as shown below:
5. Continue. After filling in, click Register ap ...
Posted by Waseem Ullah Kh on Thu, 17 Oct 2019 07:35:37 -0700