当前位置:网站首页>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);
}
边栏推荐
- Pytest -- write and manage test cases
- "Baidu Cup" CTF game 2017 February, Web: blast-1
- Search engine Bing Bing advanced search skills
- mongodb
- Practical plug-ins in idea
- Thoughts in Starbucks
- Common problems in io streams
- On the practice of performance optimization and stability guarantee
- Troubleshooting of high CPU load but low CPU usage
- [Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet
猜你喜欢

Basic knowledge about SQL database

4279. 笛卡尔树

10000小時定律不會讓你成為編程大師,但至少是個好的起點

SecureCRT取消Session记录的密码

3311. Longest arithmetic

JMeter test result output

Final, override, polymorphism, abstraction, interface

Reading notes of "learn to ask questions"

Distributed transactions

Interview questions about producers and consumers (important)
随机推荐
Laravel frame step pit (I)
Flask Foundation
Laravel Web Framework
4279. 笛卡尔树
centos php7.3安装redis扩展
Pits encountered in the use of El checkbox group
[vscode - vehicle plug-in reports an error] cannot find module 'xxx' or its corresponding type declarations Vetur(2307)
【最详细】最新最全Redis面试大全(50道)
Thoughts on project development
Upgrade CentOS php7.2.24 to php7.3
万卷书 - 价值投资者指南 [The Education of a Value Investor]
多个全局异常处理类,怎么规定执行顺序
SecureCRT password to cancel session recording
The essence of interview
【已解决】win10找不到本地组策略编辑器解决方法
The education of a value investor
"Moss ma not found" solution
Strategy mode
EasyExcel
Resthighlevelclient gets the mapping of an index