当前位置:网站首页>2. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
2. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
2022-07-03 07:14:00 【jiangxng】
the second day : Plan priority -- taobao Order collection
problem
Multi store management , Different caches can realize login free
Preliminary ideas , Set up different CachePath.
after SEO Find out , There is no way to be different in the same process cef Browsers use different CachePath
Knowledge points related to solutions
adopt CefSettings Set up CachePath
then Cef.Initialize initialization , Each process ( Applications ) It can only be called once Initialize.
If you want to use different CachePath, You can call Cef.Shutdown, Then use different CachePath【 To be verified 】
Knowledge point
stay cefSharp To realize Jquery, Provide scripting efficiency
From disk / database / Embedded resources / Load in stream HTML / CSS / JavaScript / etc
string injection_jquery = @"
(function () {
function getScript(url, success) {
var script = document.createElement('script');
script.src = url;
var head = document.getElementsByTagName('head')[0],
done = false;
script.onload = script.onreadystatechange = function () {
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
done = true;
success();
script.onload = script.onreadystatechange = null;
head.removeChild(script);
}
};
head.appendChild(script);
}
getScript('http://code.jquery.com/jquery-latest.min.js', function () {
if (typeof jQuery == '') {
console.log('Sorry, but jQuery wasn\'t able to load');
} else {
console.log('This page is now jQuerified with v' + $.fn.jquery);
$(document).ready(function () {
//here you can write your jquery code
});
}
});
})();";
private void Cef_FrameLoadEnd(object sender, FrameLoadEndEventArgs e) {
ChromiumWebBrowser cef = (ChromiumWebBrowser)sender;
cef.ExecuteScriptAsync(injection_jquery);
}
边栏推荐
- [day15] introduce the features, advantages and disadvantages of promise, and how to implement it internally. Implement promise by hand
- 【已解决】Unknown error 1146
- [attribute comparison] defer and async
- [untitled]
- Discussion on some problems of array
- File links cannot be opened or downloaded in Google browser
- Use of framework
- Redis command
- Liang Ning: 30 lectures on brain map notes for growth thinking
- Reading notes of "learn to ask questions"
猜你喜欢

4279. 笛卡尔树

EasyExcel

How to specify the execution order for multiple global exception handling classes

Inno setup production and installation package
![[Fiddler actual operation] how to use Fiddler to capture packets on Apple Mobile Phones](/img/d0/850e095a43610366d6144b2471f3f7.jpg)
[Fiddler actual operation] how to use Fiddler to capture packets on Apple Mobile Phones
![[Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet](/img/9d/42dfef67246740f0dba0c6d8f1b625.jpg)
[Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet

Specified interval inversion in the linked list

Inno Setup 制作安装包

SecureCRT取消Session记录的密码

Liang Ning: 30 lectures on brain map notes for growth thinking
随机推荐
[solved] win10 cannot find a solution to the local group policy editor
CentOS php7.3 installing redis extensions
7.2 brush two questions
Advanced API (serialization & deserialization)
JMeter JSON extractor extracts two parameters at the same time
Deep learning parameter initialization (I) Xavier initialization with code
Final, override, polymorphism, abstraction, interface
Interview questions about producers and consumers (important)
CentOS switches and installs mysql5.7 and mysql8.0
Advanced APL (realize group chat room)
Common APIs
Resttemplate configuration use
Abstract learning
TypeScript let与var的区别
SharePoint modification usage analysis report is more than 30 days
Upgrade CentOS php7.2.24 to php7.3
centos php7.3安装redis扩展
691. Cube IV
Basic components and intermediate components
Practice of enterprise ab/testing platform