C# under Winform, WebKit, Geckofx, CefSharp comparison and CefSharp code are used for implementation

The winform project is used to realize similar browser development, obtain page html metadata, and implement operations. The following components can be used: browserkernelcompatibleGet cookiesVS built-in webBrowserIEworstIncompleteWebKitFirefoxcommonlyIncompleteGeckofxFirefoxgoodIncompleteCefSharpChrome (Google)goodwhole As long as the br ...

Posted by recurzion on Tue, 28 Dec 2021 15:18:59 +0100

Puppeter docker Failed to launch chrome

Recently, a puppeter service was used in the project to take a screenshot. The front-end service should be packaged into the docker image First, I use node as the initial image and print the front-end code into the image. The final image will report an error when running the screenshot, saying that it is missing: libx11 xcb so. 1. There should ...

Posted by mooshuligan on Wed, 22 Dec 2021 07:50:50 +0100

Development and implementation of chrome extension

preface Learn about Chrome plug-ins The chrome extension can add additional functions to the chrome browser. It can inject css into a web page or execute js methods. At the same time, it can also realize a separate function. At the same time, it will not be affected by cross domain when making network requests. So what it can achieve mainly d ...

Posted by jrottman on Wed, 15 Dec 2021 18:22:26 +0100

Basic understanding and Usage Summary of Electron

Electron process Electron inherits the multi process architecture from Chromium, which makes the framework very similar to a modern web browser Why? It's not a single process Web browser is an extremely complex application. In addition to their primary ability to display web content, they have many secondary responsibilities, such as managin ...

Posted by jaronblake on Wed, 15 Dec 2021 05:28:00 +0100

A little trick makes it easy for Selenium to deal with scrollbars and element focus

01 JS processing scroll bar Execute via webdriver_ The script () method executes the JS script operation scroll bar Right scroll bar Firefox browser and Chrome browser use different syntax. It is listed in the following area. It looks like Google browser 71 general Firefox # Firefox browser scrolls to the bottom js = "var q=document.docum ...

Posted by Retired Bill on Wed, 08 Dec 2021 05:07:42 +0100

Selenium test framework batch registration

Selenium test framework Open cmd to download Selenium first: pip install -i https://pypi.douban.com/simple selenium If it is downloaded with cmd: pip show selenium. Is the download successful using this command Or directly in the pycham IDE Introduce this shelf package on the project header: from selenium import webdriver Install browser ...

Posted by fri on Tue, 07 Dec 2021 14:09:46 +0100

JavaScript Sanitizer API: the native WEB security API appears

On October 18, the Web Platform Incubator Community Group in W3C published the draft specification of HTML Sanitizer API. This draft is used to solve the problem of how browsers solve XSS attacks. XSS cross site scripting attacks are a headache for developers in network security. This attack usually refers to injecting malicious instruction ...

Posted by jackohara on Wed, 01 Dec 2021 19:55:14 +0100

Python Advanced: simple examples of counter, orderedDict, defaultdict, deque, queue

Introduction: In addition to the built-in data types (int, float, str, list, tuple, dict) provided by python, the collections module also provides other data types. The collections module implements some specific data types, which can replace the built-in data types commonly used in Python, such as dict, list, set, tuple. In short, the basic da ...

Posted by Gmunky on Tue, 23 Nov 2021 02:43:20 +0100

About selenium configuring Chrome drivers (Windows systems)

The selenium test tool can be used to simulate the operation of a user's browser. The supported browsers are PhantomJS,Firefox,Chrome, etc. Developers can select different simulated browsers according to the current system form. Each simulated browser requires a corresponding browser driver (an executable file suffixed with.exe). The author ...

Posted by 990805 on Thu, 11 Nov 2021 17:25:46 +0100

localForage - Improved offline storage

1. What is localForage localForage is a JavaScript library that is similar in simplicity   localStorage   Asynchronous storage of API s to improve the offline experience of your Web applications. It can store many types of data, not just strings. localForage has an elegant downgrade policy, and if your browser does not support Index ...

Posted by n00b Saibot on Mon, 08 Nov 2021 23:12:05 +0100