Selenium Common Operations

Catalog install Download Driver Element Selection Enter, clear, Click Close windows, browsers Window Switch Frame Switching Page Pop-up Window Waiting to load Action Chain Keyboard events Execute js (sliding scrollbar) screenshot Get Element Properties Get page source code, refresh page Set window size Set up proxy, UA Cookie operation Skip Se ...

Posted by johanafm on Wed, 08 Jan 2020 19:47:31 -0800

JWT realizes authorization authentication

Catalog 1, What is JWT 2, JWT Standard Specification 3, Analysis of core code 4, Login authorization example 5, JWT usage 6, JWT considerations 1, What is JWT JSON Web Token (JWT) is the most popular cross domain authentication solution. In short, OAuth is a kind of authoriz ...

Posted by w4designs on Wed, 08 Jan 2020 08:10:31 -0800

Shiro authority management framework: custom Filter implementation and troubleshooting records

Clear demand When using Shiro, the authentication failure is usually to return an error page or login page to the front-end, especially the back-end system. This mode is particularly used. But now more and more projects tend to use the way of front-end and back-end separation for development. At this time, the front-end needs to respond to the ...

Posted by HairyArse on Tue, 07 Jan 2020 07:15:13 -0800

In-depth communication with @FeignClient notes that night

Bullshit That night, I had a deep exchange with the @FeignClient comment, cool! Mainly in the technical group, I see some students asking related questions, such as: What is contextId for?Multiple Client s with the same name will fail? Then I think it's necessary to write an article to chat about the use of @FeignClient. It's not easy to write ...

Posted by vincente on Tue, 07 Jan 2020 02:11:31 -0800

SpringBoot Connect Multiple RabbitMQ Sources

In practical development, many scenarios require asynchronous processing, where RabbitMQ is required, and as the number of scenarios increases, programs may need to connect multiple RabbitMQs.SpringBoot itself provides a default configuration to quickly configure the connection to RabbitMQ, but only one RabbitMQ can be connected. When multiple ...

Posted by epp_b on Tue, 07 Jan 2020 00:29:49 -0800

Modify request request parameters

In essence, the parameters in the request cannot be changed, added or deleted;But in the background program, generally, the operation of request parameters is performed by getParameter, getParameterNames, getParameterValues and other methods of request; therefore, if we can override these methods, the request parameters of request will be chang ...

Posted by Jonob on Mon, 06 Jan 2020 13:19:10 -0800

[Xuefeng magnetite blog] Bokeh data visualization tool layer 4

Create multiple graphs on the same row Create multiple graphs in the same column Create multiple graphs in rows and columns Tabbed layouts creating multiple drawings Create a powerful grid layout Link multiple charts together Create multiple graphs on the same row bokeh has a lot of data, which can be downloaded as follows: In [2 ...

Posted by joplinfan on Mon, 06 Jan 2020 12:02:27 -0800

Egret texture filling method

There are two ways to fill a Bitmap: one is to stretch the image to fill the region, and the other is to repeat the image to fill the region. When you create a Bitmap object, the first fill method is selected by default. Let's take a look at the following example code. In this example, we use the default filling method, and the ...

Posted by blmg911 on Mon, 06 Jan 2020 11:34:12 -0800

Use the remodule in Python to parameterize test cases, search, replace sub

For automated test cases, if 100 interfaces are to write 100 sheet forms in Excel, each interface has 10 fields, and 5 of them may be changing, you need to use parameterization, try using specific characters to position first, and replace placeholders when constructing parameters; 1. Replace the mobile phone number by using replace in the strin ...

Posted by itbegary on Mon, 06 Jan 2020 09:17:23 -0800

Problems in the application of Axios

1. Set Axios cross domain in Vue axios has become the officially recommended way for Vue to obtain background data from ajax. However, we need to solve the cross domain problem of axios in use. Here we take the 2.x version of Vue cli as an example to solve the cross domain problem of axios. In config/index.js We implement the ...

Posted by Gregghawes on Mon, 06 Jan 2020 04:37:26 -0800