谷歌浏览器

Chrome Extension : Access DOM after chrome.tabs.update

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My aim is to search for a div by id if it exists in all languages my site supports. manifest.json { "manifest_version": 2, "name": "Hello World!", "description": "This extension is to check if link is not visible when it should not :)", "version": "1.0", "browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" }, "content_scripts": [ { "js": [ "jquery-1.11.1.min.js"], "matches": [ "http://*/*", "https://*/*"] }], "permissions": [ "tabs", "http://*/*", "https://*/*" ] } popup.html - <html> <script type="text/javascript"

Chrome app: sandbox resource address unreachable

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to set a webview's source using a local file. Manifest: "webview": { "partitions": [{ "name": "static", "accessible_resources": [ "sandbox/sandbox.html", "sandbox/sandbox.js", "sandbox/sandbox.css", ] }] }, Set Webview's source var webviewSrc = chrome.runtime.getURL('sandbox/sandbox.html'); //console.log prints chrome-extension://MY_CHROME_APP_ID/sandbox/sandbox.html webviewEl = <webview id="webview" ref="Webview" src={webviewSrc} partition="static"></webview> Error: <webview>: The load has aborted with error -109: ERR_ADDRESS

How to create chrome profile via Ruby Selenium Binding(or WATIR)

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know how to create profile for Firefox require 'watir' options = Selenium::WebDriver::Firefox::Options.new options.profile = "default" @driver = Selenium::WebDriver.for :firefox, options: options @b = Watir::Browser.new @driver But when I do same thing for Chrome it's not creating, Infact I realized that options(please look above) object doesn't even have the method profile= so I try adding profile like as given below(I saw how people are creating in Java Selenium Binding so I have done the same but it's not working here) options =

Chrome extension + webview

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm struggling to find a definitive answer to this. Chrome Apps are being deprecated across all OS except Chrome OS. <webview> is only available in Chrome Apps? This means I can't or shouldn't use <webview> in an extension (if possible)? 回答1: As per further research, testing, and comments: <webview> are definitely not useable in extensions, only in Apps. 转载请标明出处: Chrome extension + webview 文章来源: Chrome extension + webview

chrome.tabs.getSelected is undefined on latest chrome that uses manifest version 2?

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create a plugin, that uses chrome.tabs.getSelected to find current URL, Below I attached a minimal example, when any key is pressed, a dialog will popup, but it kept telling me chrome.tabs.getSelected is undefined: Manifest file: { "content_scripts": [ { "matches": ["http://*/*" , "https://*/*"], "js" : [ "main.js" ] } ], "manifest_version": 2, "description": "XX", "icons": { "128": "icon.png", "16": "button.png", "32": "button.png", "48": "icon.png" }, "name": "XX", "permissions": [ "tabs", "http://*/*", "https://*/*" ],

org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed (headless chrome)

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am running headless chrome on centos, with headless chrome version 2.38, and google-chrome-stable version 67.0 System.setProperty("webdriver.chrome.driver", driverPath); log.warn("chrome driver path is : {}", driverPath); List<String> options = proxyConfig.getChromeOptions(); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments(options); Map<String, String> capabilites = proxyConfig.getCapabilities(); if(MapUtils.isNotEmpty(capabilites)) { for (Map.Entry<String, String> entry : capabilites.entrySet()) {

Chrome is not started with selenium and behat

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Please help. I use windows to run my tests. I run selenium with chrome driver: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.4.0.jar My behat_dev.yml : default: suites: default: mink_session: selenium2 javascript_session: selenium2 extensions: Behat\MinkExtension: base_url: http://en.wikipedia.org default_session : selenium2 javascript_session: selenium2 browser_name : chrome goutte: ~ selenium2 : wd_host : http://127.0.0.1:4444/wd/hub browser: chrome capabilities: { "browserName": "chrome", "browser":

org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to Selenium and need some trail to find root cause of the below error. Selenium version - 3.5.3 ChromeDriver version - 2.29.4 Chrome version - 63 org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status from unknown error: missing or invalid 'entry.level' (Session info: chrome=63.0.3239.132) (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout

Chrome overflow:hidden &amp; iframe BUG

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a BUG related to Iframes / Youtube Videos & Chrome... Got a div <div id="single"> <div id="poza-mare"> <div class="items"> <div><iframe width="710" scrolling="no" height="360" frameborder="0" src="http://www.youtube.com/embed/CblqeBA0iIk" type="text/html"></iframe></div> <div>...</div> <div>...</div> </div> </div> </div> #poza-mare{position:relative;overflow:hidden;clear:both;height:360px;} #poza-mare div {float:left;display:block;width:710px;} #poza-mare .items {width:20000em;clear:both;margin:0;padding:0;position: absolute;} #single

入门chrome插件开发教程和经验总结,一篇就搞掂!

守給你的承諾、 提交于 2019-12-03 01:35:00
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接: https://blog.csdn.net/weixin_44244857/article/details/85232668 前言 关于chrome extension的开发经验总结或说明文档等资料很多,很多人在写,然而,我也是一员。但是,也许这篇文章,可能给你一些不一样的感受。 这里介绍的是80%你要开发扩展会碰到的问题 前面部分大多数是一些基础介绍,和别人的资料大同小异,但是用的是通俗的语言或者我自己理解来描述的,不是拷贝官方的描述,不然的话,你干脆看官方文档就好啦,干嘛还来我这里折腾对吧,也许这些通俗的描述,更方便你理解(当然不排除也会有官方的话语) 后面部分多为一些我在项目中总结的方法,这部分就是在别人的资料可能看不到的地方了,当然,这些方法也许不通用,因为毕竟是基于我项目里的,但是尽量总结一套方法出来。 废话不多说,咱们开始吧… 目录 WHAT 最基本组成 manifest.json background script content script popup 基础的通信机制 content script与background的通信 popup与background的通信 popup与content script的通信 插件iframe网站与插入网页的通信