selenium notes arrangement

Common methods of scattered   from selenium import webdriver # Keys package to be introduced when calling keyboard key operation from selenium.webdriver.common.keys import Keys # Create browser object by calling PhantomJS browser specified by environment variable driver = webdriver.PhantomJS() ...

Posted by freewholly on Fri, 25 Oct 2019 23:32:07 +0200

vue uses encapsulation websocket heartbeat package

This set of code can be used directly. Note that I will add comments in the following code: Thanks for your support. Core code 1 //We need to introduce vuex 2 import store from './store'; 3 4 let wsConnection = { 5 $ws: null, 6 lockReturn: false, 7 timeout: 60 * 1000 * 5, 8 timeoutObj: null, 9 timeoutNum: null, ...

Posted by mforan on Fri, 25 Oct 2019 14:00:45 +0200

Instructions for Vue.js

Instructions for Vue.js The instructions of Vue.js start with v -, which act on HTML elements. The instructions provide some special features. When binding the instructions to the elements, the instructions will add some special behaviors to the binding target elements. We can regard the instructions ...

Posted by phileplanet on Fri, 25 Oct 2019 12:16:09 +0200

easyPoi report export

Easypoi report making tool is easy to operate and easy to use. It is different from that of POI report export, so you need to write your own corresponding tool class. Easypoi export is divided into three parts: basic export, template export and HTML export. The basic export is summarized first. Basic export: we can export pictures. If the enti ...

Posted by mizz key_me on Thu, 24 Oct 2019 06:12:12 +0200

Component development based on Custom Elements

customElements It is a new API under the Web Components specification, which can be used to implement component-based development. If your app is only compatible with the latest Chrome browser, it's a good alternative to React or Vue. Basic Usage The component is declared in an HTML file. Components include Style, DOM and Script. The basic stru ...

Posted by T_Hayden on Tue, 22 Oct 2019 23:01:45 +0200

The realization of vernacular series simple mvc web API framework

This article is a very simple mvc api framework, which is only used as the parsing method of the entry api, and this is not mvc framework, because there is no view layer, after all, most of them are front-end and back-end separation, of course, the view layer can also be provided, because only view is returned as text. GitHub address: https:// ...

Posted by tvance929 on Tue, 22 Oct 2019 13:46:16 +0200

Start Java again -- Reflection

concept reflection: Introspection Reflection: mirrors reflect sunlight A java class or object recognizes itself by looking in the mirror How to realize the mirror in Java language? The java.lang.reflect package provides the mirror API (application interface) If you want to use an object of a certain type in the java.lang.reflect package, you ...

Posted by sloede on Tue, 22 Oct 2019 09:02:05 +0200

Learning record (day05 label operation, attribute binding, statement control, data binding, event binding, case user login)

[TOC] 1.1.1 label operation v-text & v-html v-text: the data value bound in data will be output as is. v-html: output the value of data and parse the HTML code automatically <! -- the specified content can be displayed in the label body -- > < label v-text = "" > / label > <! -- display in [text] -- > < tag ...

Posted by anthill on Mon, 21 Oct 2019 21:47:04 +0200

C ා add, read and delete Excel document properties

In document properties, you can set many information about the document, such as creation time, author, company, category, keywords, notes and other summary information, as well as some custom document properties. The following will demonstrate how to set it through the C ා program. At the same time, the existing information in the document can ...

Posted by alexk1781 on Mon, 21 Oct 2019 19:53:13 +0200

Detailed explanation of event distribution mechanism

Common events Since it's event distribution, there must be events to distribute, so let's first learn about several common events. According to the object-oriented idea, events are encapsulated as MotionEvent objects. Because this article does not focus on this, it only involves several common events related to finger touch: Event brief action? ...

Posted by jh_dempsey on Mon, 21 Oct 2019 16:24:31 +0200