chromium

Сhromedriver: how to add support of Chromium-based browsers

蹲街弑〆低调 提交于 2021-01-28 04:25:44
问题 What is required to add a browser to the list of available browsers for UI-automation frameworks/wrappers to successfully running of autotests through the appropriate browser? For example, I want to adding browser "Sputnik", which using Chromium core. 回答1: TL;DR: Use Selenium + Codeception (or any other chrome-supported framework), add to configuration a special enviroment for "non-valid" browser as Sputnik, wherein path to binary is equivalent to your chrome-binary. Recompile chromedriver

WPF CEFSharp ChromiumWebBrowser - Render MemoryStream

為{幸葍}努か 提交于 2021-01-27 23:39:43
问题 I need to be able to retrieve a Pdf from our web server via a call to Web API and then render the document in the ChromiumWebBrowser for CEFSharp, all within memory and not saving the file locally. Right now I'm at the point where I get back the file in a MemoryStream, but can't seem to get any further. Is this possible? Any examples would be greatly appreciated. Thanks. 回答1: You have two options, implement a Scheme Handler for your own custom scheme , e.g. client:// or implement a Resource

Detect Custom Protocol handler in chrome 86

守給你的承諾、 提交于 2021-01-27 16:39:43
问题 I have implemented a solution according to https://gist.github.com/aaronk6/d801d750f14ac31845e8 and it worked fine till chrome 85 .With latest chrome Update Onblur not detecting open protocol handler popup. Is there a way to identify Custom protocol registered in windows using Chrome 86 new version .The code i have implemented mentioned below and it's working fine for Firefox function LinkClicked() { launchUri($(this).attr("href"), function () { // SUCCESS APPLICATION INSTALLED }, function ()

Change Chromium icon and “chrome” text to custom icon and text in the Address Bar

早过忘川 提交于 2021-01-27 14:08:34
问题 I'm building the Chromium browser on my Windows pc. I'm following this codebase: https://github.com/ungoogled-software/ungoogled-chromium-windows I only need help in removing two things in the Address Bar (see the image): the "chrome" text and the grey Chromium icon. Let me know if any other information is required. 来源: https://stackoverflow.com/questions/65215821/change-chromium-icon-and-chrome-text-to-custom-icon-and-text-in-the-address-ba

What does double dash (--) implies in Selenium ChromeOptions

…衆ロ難τιáo~ 提交于 2021-01-27 13:02:24
问题 I am using selenium with java and I am using some chrome options with it. But I see different usages of chrome options in different sources. I mean some folks using double dash before the option and some do not (like disable-dev-shm-usage and --disable-dev-shm-usage ). Are there any differences between the two usages? 回答1: As per Command-Line Options: Unix tradition encourages the use of command-line switches to control programs, so that options can be specified from scripts. There are three

What does double dash (--) implies in Selenium ChromeOptions

做~自己de王妃 提交于 2021-01-27 12:55:54
问题 I am using selenium with java and I am using some chrome options with it. But I see different usages of chrome options in different sources. I mean some folks using double dash before the option and some do not (like disable-dev-shm-usage and --disable-dev-shm-usage ). Are there any differences between the two usages? 回答1: As per Command-Line Options: Unix tradition encourages the use of command-line switches to control programs, so that options can be specified from scripts. There are three

抓取网页生成 PDF

我的未来我决定 提交于 2021-01-22 23:41:43
看到自己喜欢的在线文档,是不是总想保存下来慢慢学习。可是苦于没有现成的工具,这里我来介绍两个 JS 类库,只需要简单封装一下,从此想抓哪里抓哪里。 一、使用 Phantomjs 1.简单使用 1 const phantom = require('phantom' ); 2 (async function () { 3 const instance = await phantom.create(); 4 const page = await instance.createPage(); 5 await page.on('onResourceRequested', function (requestData) { 6 console.info('Requesting' , requestData.url); 7 }); 8 const status = await page.open('http://jartto.wang' ); 9 await page.render('jarttoTest.pdf' ); 10 await instance.exit(); 11 })(); 上面是一个完整的示例,我们来看看最核心的部分,不妨放大一下: 1 page.open(address, function (status) { 2 if (status !== 'success' ) { 3

Brave浏览器中的IPFS 

[亡魂溺海] 提交于 2021-01-22 18:40:29
Brave浏览器用户人数已经超过2000万,并且已经开始支持本地 IPFS 协议,让人们可以更轻松简单的使用分布式网络,这一实现标志着更具弹性、用户至上的互联网发展的迈出重要一步。 IPFS协议仍然在开发、完善中。相信很多人在日常上网过程中,经常遇到如网络中断或404,重要信息(如COVID-19新闻)被过滤、联网成本高昂,以及断网和离线环境中的共享与协作功能等实际问题。 这些并不是每个人面临的问题,那些一点也没有察觉到这些问题的人可能不明白为什么IPFS如此重要。但是对于迫切需要一个弹性开放的互联网,使得他们可以自主控制自己在线体验的人,IPFS现在只需点击一下就可以安装在Brave的浏览器上。 Brave浏览器中的IPFS Brave已将IPFS集成到其桌面Web浏览器中,用于 Windows、macOS 和 Linux。当 Brave 检测到一个地址是 IPFS 内容的 HTTP 网关 URL,或者本机 IPFS 地址(例如将提示用户安装和启用本机 IPFS 节点或使用 HTTP 网关)时,使用的默认网关是 dweb.link,由协议实验室运行。 用户还可以在浏览器设置中指定自己选择的网关。您可以在访问的IPFS管理UI,或启用IPFS助手并在主菜单选择"我的节点"按钮。 为什么选择 Web 浏览器? 现代网络浏览器支持在互联网上进行实验、创新和新的协作以及价值交换模式

Qt编写地图综合应用24-miniblink内核

假装没事ソ 提交于 2021-01-21 10:13:27
一、前言 用Qt做项目过程中,遇到需要用到浏览器控件的项目,可能都会绕不开一个问题,那就是从Qt5.6版本开始mingw编译器的Qt构建套件,不再提供浏览器控件了,之前还可以用webkit控件,这下很多项目要么选择5.6以下版本,要么选择msvc的构建套件,而且大部分的msvc构建套件还不自带浏览器控件,也需要自己编译,只有原配的构建套件比如Qt5.9+VS2015、Qt5.12+VS2017这种搭配才可能有浏览器控件,不然就算你勾选了浏览器控件也不会安装,这样就使得很多依赖浏览器控件的项目比较被动,于是必须寻找一个轻量级的浏览器控件来替代,比如cef、miniblink,个人更倾向于miniblink,用法极其简单,依赖极其精简就一个dll,在linux和mac系统上本来qt就一直会有浏览器控件,所以也就不涉及到跨平台的问题,所以miniblink暂支持windows的缺点也就不算缺点了。 miniblink是一个追求极致小巧的浏览器内核项目,全世界第三大流行的浏览器内核控件。其基于chromium最新版内核,去除了chromium所有多余的部件,只保留最基本的排版引擎blink。miniblink保持了10M左右的极简大小,是所有同类产品最小的体积,同时支持windows xp、npapi。miniblink的作者非常牛逼,QQ昵称叫扫地僧,犹如天龙八部中的扫地僧一般

Python - how to load Google Chrome or Chromium browser in the gtk.Window like webkit.WebView()?

谁都会走 提交于 2021-01-21 09:51:45
问题 In Python (Linux), how can i load the Google chrome or Chromium browser inside a gtk.Window()? Where i am using now as webkit but instead of the webkit i need to use Google Chrome/Chromium because of the Javscript engine and other update issues. $ apt-get install python-webkit $ cat >> /var/tmp/browser.py << \EOF #!/usr/bin/env python import gtk import webkit import gobject gobject.threads_init() win = gtk.Window() win.set_title("Python Browser") bro = webkit.WebView() bro.open("http://www