当前位置:网站首页>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);
}
边栏推荐
- Software testing assignment - day 3
- Setting up the development environment of dataworks custom function
- Getting started with pytest
- Final, override, polymorphism, abstraction, interface
- SharePoint modification usage analysis report is more than 30 days
- Summary of abnormal mechanism of interview
- Troubleshooting of high CPU load but low CPU usage
- Distributed lock
- Software testing learning - day one
- [most detailed] latest and complete redis interview book (50)
猜你喜欢
Inno setup production and installation package
4279. Cartesian tree
"Baidu Cup" CTF game 2017 February, Web: blast-1
Pits encountered in the use of El checkbox group
Selenium key knowledge explanation
In depth analysis of reentrantlock fair lock and unfair lock source code implementation
Software testing assignment - the next day
Flask Foundation
Practice of enterprise ab/testing platform
Discussion on some problems of array
随机推荐
Inno setup production and installation package
Tool class static method calls @autowired injected service
高并发内存池
Jenkins
Advanced API (local simulation download file)
instanceof
Thoughts on project development
“百度杯”CTF比赛 2017 二月场,Web:爆破-1
How to plan well?
Resthighlevelclient gets the mapping of an index
Recursion, Fibonacci sequence
Practical plug-ins in idea
Distributed lock
Winter vacation work of software engineering practice
Software testing learning - day one
Advanced API (multithreading)
mongodb
My 2020 summary "don't love the past, indulge in moving forward"
Use of framework
Notes on the core knowledge of Domain Driven Design DDD