谷歌浏览器

ElementNotVisibleException when use headless Chrome browser

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I run test script in headless mode chrome browser, element link is not visible, is not able to do linkElement.click() . in head mode is everything OK. All other info are in stacktrace. Anyone knows what to do, please? StackTrace: ERROR occurred: Message: element not visible (Session info: headless chrome=60.0.3112.90) (Driver info: chromedriver=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=Windows NT 6.1.7601 SP1 x86_64) Traceback (most recent call last): File "C:\nik-x.py", line 148, in main func(nik) File "C:\lib

How to host a chrome extension?

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to host my chrome extension on my shared hosting with PHP. I know that my server must use appropriates HTTP headers: code.google.com/chrome/extensions/hosting.html But, how to set my server to send these headers in addiction to .crx file ? 回答1: If you are on a shared hosting and can't change server configuration, use PHP: <?php $file = 'extension.crx'; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/x-chrome-extension'); header('Content-Disposition: attachment; filename='

Resource interpreted as Document but transferred with MIME type application/zip

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: With Chrome 12.0.742.112, if I redirect with the following headers: HTTP/1.1 302 Found Location: http://0.0.0.0:3000/files/download.zip Content-Type: text/html; charset=utf-8 Cache-Control: no-cache X-Ua-Compatible: IE=Edge X-Runtime: 0.157964 Content-Length: 0 Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) Date: Tue, 05 Jul 2011 18:42:25 GMT Connection: Keep-Alive Which if followed returns the following header: HTTP/1.1 200 OK Last-Modified: Tue, 05 Jul 2011 18:18:30 GMT Content-Type: application/zip Content-Length: 150014 Server: WEBrick/1

chrome.runtime is undefined when extension installed from chrome store

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When i console.log(chrome) with google chrome browser i get certain properties but i find the 'runtime' property of chrome is not available. app: Object csi: function () { native function GetCSI(); return GetCSI();} loadTimes: function () { native function GetLoadTimes(); return GetLoadTimes();} webstore: Object __proto__: Object __defineGetter__: function __defineGetter__() { [native code] } __defineSetter__: function __defineSetter__() { [native code] } __lookupGetter__: function __lookupGetter__() { [native code] } __lookupSetter__:

Calling Chrome web browser from the webbrowser.get() in Python

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How I should call webbrowser.get() function so I open the chrome web browser? I'm running Ubuntu 11.04 and Python version 2.7. Using webbrowser.get('chrome') yields an error. 回答1: The quick workaround is to make Chrome the default browser in your system and then use simply webbrowser.get(). I've just checked that on ubuntu 10.10 and it worked just fine. EDIT Just reviewed the code of /usr/lib/python2.6/webbrowser.py. You should do like this: In [5]: webbrowser.get('/usr/bin/google-chrome %s').open('http://google.com') Created new window in

Trace on Chrome/Browser console

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Does anybody know how to trace messages in the google chrome console using Flex3. In the logs section for example. 回答1: import flash.external.ExternalInterface; ExternalInterface.call("console.log", "YourString"); See here for more information. 文章来源: Trace on Chrome/Browser console

Chrome Developer Tools / debugger: “pretty print” does not work

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The "pretty print" button, located in the lower left corner of the Chrome Developer Tools window, is supposed to make minified code readable. However, when I click it, nothing happens. I tried both single and double-clicks. This happes on Chrome 32 on Windows. How do I make the pretty-print button work? 回答1: As I found out the hard way (by trial and error) the "pretty print" button is only functional when the console is visible. That means it does not work here: But it does work here (console visible): 文章来源: Chrome Developer Tools / debugger

开发者工具又加了什么好东西?(Chrome 68)

本秂侑毒 提交于 2019-12-03 08:06:15
本文转载于: 猿2048 网站➵ https://www.mk2048.com/blog/blog.php?id=hc0jbj10hj 转载自 https://blog.vvvvvvvvvvvvvvv.com/2018/05/28/whats-new-in-devtools-Chrome-68/index.html 由 Chrome官方文章 翻译, 建议查看英文原文, 作为程序员, 读懂官方文档应当是必备的技能(因为译文包含了译者的思维, 不一定能精确的表达原文想要表达的思维). 能拿到这些 '核心数据' 也是必备的技能 Notes: 这些发布说明的视频版本大约在 2018.7 月底左右发行 新的 Chrome 68 开发者工具: Eager Evaluation(即刻求值). 当你键入表达式时, 控制台会预览结果. Argument hints(参数提示). 当你键入函数, 控制台会向你展示该函数期望的参数. Function autocompletion(函数自动补全). 在你键入一个函数调用后, 如 document.querySelector('p') , 控制台会向你展示返回值支持的函数和属性. ES2017 keywords in the Console(ES2017 控制台关键词). 关键字, 如 await , 现在已经支持在控制台的自动补全. Lighthouse

使用虚拟按键表和winhotkey设置音量控制等快捷键

倾然丶 夕夏残阳落幕 提交于 2019-12-03 06:54:27
首先我们需要有windows虚拟按键表: Virtual-Key Codes (Windows) 调节音量 以我们想要控制的音量为例: 可以发现调低音量对应的按键是0xAE, 调高音量是0xAF 但是上面的这个虚拟按键无法在cmd中使用,我们需要使用vbs(VB script脚本, windows脚本文件,VBS的全称是:Microsoft Visual Basic Script Edition)来完成操作 以下回答参考自知乎用户 雁南归 刚好遇到这个问题。普通键盘上没有音量键,只好用WinHotKey映射一个脚本。没找到cmd命令,最后用vbs解决了。 新建一个文本文件,后缀名为 vbs 填入代码 Set wshell = Wscript.CreateObject("Wscript.Shell") key = chr(&h88AF) wshell.Sendkeys key 其中key=chr(&h88AF)这句是把 window下虚拟按键转换为一个中文字符。AF是 Volume Up key 的16进制编码。 由于 Wscript.Shell.SendKeys 只接受一个中文字符,所以就在前面加上一个88把它转换为Unicode码。 这个是音量上调的,下调吧AF换成AE就可以了。 作者:雁南归 链接:https://www.zhihu.com/question/38692693

Chrome 浏览器安装 ChroPath 插件

旧巷老猫 提交于 2019-12-03 06:38:59
1.下载地址 http://www.cnplugins.com/devtool/chropath/download.html 2.安装方法 a.把下载的文件更改后缀名变为压缩包,然后解压到本地;如下图: b. 然后打开Chrome 浏览器 进入到扩展程序页面,打开 页面右上角的 开发者模式 c.安装完成以后,在开发者面板既可以查看到: 来源: https://www.cnblogs.com/zddwork/p/11780977.html