当前位置:网站首页>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);
}
边栏推荐
- How can I split a string at the first occurrence of “-” (minus sign) into two $vars with PHP?
- Interface learning
- SecureCRT取消Session记录的密码
- PAT甲级真题1166
- SecureCRT password to cancel session recording
- Software testing assignment - the next day
- Jmeter+influxdb+grafana of performance tools to create visual real-time monitoring of pressure measurement -- problem record
- 4EVERLAND:IPFS 上的 Web3 开发者中心,部署了超过 30,000 个 Dapp!
- Software testing learning - the next day
- Interfaces and related concepts
猜你喜欢
Software testing learning - the next day
Mise en place d'un environnement de développement de fonctions personnalisées
Gridome + strapi + vercel + PM2 deployment case of [static site (3)]
My 2020 summary "don't love the past, indulge in moving forward"
SecureCRT password to cancel session recording
Recursion, Fibonacci sequence
docker建立mysql:5.7版本指定路径挂载不上。
深度学习参数初始化(一)Xavier初始化 含代码
POI excel percentage
Hash table, generic
随机推荐
多个全局异常处理类,怎么规定执行顺序
Software testing learning - the next day
10000小時定律不會讓你成為編程大師,但至少是個好的起點
Strategy mode
docker建立mysql:5.7版本指定路径挂载不上。
Liang Ning: 30 lectures on brain map notes for growth thinking
How to specify the execution order for multiple global exception handling classes
20220319
MySQL transaction rollback, error points record
Mise en place d'un environnement de développement de fonctions personnalisées
JS date comparison
10 000 volumes - Guide de l'investisseur en valeur [l'éducation d'un investisseur en valeur]
Discussion on some problems of array
Basic components and intermediate components
[set theory] partition (partition | partition example | partition and equivalence relationship)
4279. 笛卡尔树
Laravel Web Framework
Inno Setup 制作安装包
[solved] sqlexception: invalid value for getint() - 'Tian Peng‘
Use the jvisualvm tool ----- tocmat to start JMX monitoring