谷歌浏览器

Google Chrome Package Apps : How to make transparent rounded background like google hangout app?

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: As shown in the below screenshot, hangout app is fully transparent and it has background-shadow applied to it as well. I tried several approach with no luck by applying css styling to "html" and "body" tag to the page and by using "frame: none" option while creating new window, but it doesn't work. How to make Google chrome package app like this? Anyone have any idea? Here is the code on which I am experimenting. mainfest.json : { "manifest_version" : 2, "name" : "Demo App", "version" : "0.1", "description" : "Demo Purpose", "app" : {

Reasons for porting a Cordova App to a Mobile Chrome App?

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We got a Cordova App running and wrote ourselves a build script using Grunt which makes building the App a breeze. We don't require any of the APIs Chrome offers and are, apart from some performance issues with elderly Android devices which forced us to block some minor features on those devices, pretty much satisfied with the current status of our app. So far we couldn't find any reason why it would make sense to transform our Cordova App into a Mobile Chrome App. Or is there something we're missing? Are there any differences in terms of JS

Selenium + VBA to Control Chrome

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use selenium + vba to launch chrome to open 10 urls listed in cells range("A1:A10"). I am not familiar with selenium, after trying a lot of times I finally come out below clunky codes. Private selenium As New ChromeDriver Sub test() Dim cell As Range Dim keys As New selenium.keys Dim pageNo As Integer pageNo = 0 selenium.Start "chrome", "http://www.google.com/" For Each cell In Range("A1:A10") If pageNo >= 1 Then selenium.SendKeys keys.Control & "t" + keys.Control & "t" selenium.SwitchToNextWindow End If selenium.Get cell.Value pageNo =

XSLT works in IE, not in Chrome or Firefox

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Given a normal nhibernate config file: NHibernate.Connection.DriverConnectionProvider NHibernate.Dialect.Oracle10gDialect NHibernate.Driver.OracleDataClientDriver Data Source=MyDB;User ID=MyUser;Connection Lifetime=0;Enlist=false;Pooling=true;Max Pool Size=100;Min Pool Size=0;Incr Pool Size=5;Decr Pool Size=1;Statement Cache Size=100; NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle true true 1, false 0, yes 'Y', no 'N' true I created a xslt transformation for it. Projects properties Property Value This works fine

How to set Proxy setting for Chrome in Selenium Java

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am able to set proxy settings for Firefox as below. org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy(); proxy.setProxyType(ProxyType.MANUAL); proxy.setHttpProxy(CONFIG.getProperty("hostname")); proxy.setSslProxy(CONFIG.getProperty("hostname")); proxy.setFtpProxy(CONFIG.getProperty("hostname")); proxy.setSocksUsername(CONFIG.getProperty("username")); proxy.setSocksPassword(CONFIG.getProperty("password")); FirefoxProfile fp = new FirefoxProfile(); fp.setProxyPreferences(proxy); driver = new FirefoxDriver(fp); builder = new

Unable to trigger chrome.browserAction.onClicked.addListener with google chrome extensions

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a bit stuck here and was wondering if anyone can point out where I might be wrong. I am simply trying to make the body color change to red on click of the app icon. manifest.json { "name": "Bagde", "description": "", "version": "1", "manifest_version": 2, "background": { "scripts": [ "background.js" ] }, "browser_action": { "default_title": "Test", "default_popup": "popup.html" } } popup.html Some Content .. popup.js document.addEventListener("DOMContentLoaded", function () { //Get Reference to Functions backGround = chrome.extension

how to disable cookies using webdriver for Chrome and FireFox JAVA

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want launch browsers(FF, CHROME) for test with disabled cookies, I tried this: service = new ChromeDriverService . Builder () . usingDriverExecutable ( new File ( "src/test/resources/chromedriver" )) . usingAnyFreePort (). build (); try { service . start (); } catch ( IOException e1 ) { e1 . printStackTrace (); } DesiredCapabilities capabilities = DesiredCapabilities . chrome (); capabilities . setCapability ( "disable-restore-session-state" , true ); driver = new ChromeDriver ( service , capabilities ); but it's not work... 回答1:

Enable “Preserve log” in chrome programmatically using chromedriver

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How to enable preserve log option for chrome developer settings->Preferences->Preserve log upon navigation, using chromeoptions.add_argument or by adding the pref to DesiredCapabilities or any other way programmatically. 回答1: You can get redirects from performance logs. According to docs and github answer here is what I've done in C#, should be possible to port in Python: var options = new ChromeOptions(); var cap = DesiredCapabilities.Chrome(); var perfLogPrefs = new ChromePerformanceLoggingPreferences(); perfLogPrefs.AddTracingCategories

Does the User Scripts directory still work with Chrome 13.0?

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using Mac OS X with Google Chrome 13.0.782.107. I'm trying to set up User Scripts as per these instructions . I have created a directory: ~/Library/Application Support/Google/Chrome/Default/User Scripts/ I created a file in that directory: hello.user.js (function() { // ==UserScript== // @name Hello, World // @namespace http://localhost.localdomain // @version 0.0.0 // // @include http://*/* // ==/UserScript== alert('Hello, World!'); })(); I created the following AppleScript to start Chrome do shell script "/Applications/Google\\ Chrome

'selenium.common.exceptions.WebDriverException: Message: u'chrome not reachable

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using webdriver to config a router, but when I run script: from selenium import webdriver self.driver = webdriver.Chrome() It opens chrome and no response, and then raise exception: chrome not reachable. My computer has two network cards, when I forbbiden one, it works well. I don't konw why, please help! 回答1: In pure case "chrome not reachable" means that Chrome binary can be started but debugging port is not reachable. Debugging port is set by argument: --remote-debugging-port=12582 In my case it happens because some issues with sand