chromium

Google API Keys Missing Warning Message when using Chromium Portable

落爺英雄遲暮 提交于 2019-12-31 11:18:07
问题 When i use the new Chromium Portable browser it always shows "Google API keys are missing.Some functionality of Chromium Portable will be disabled" after starting up. How do i get rid of this warning message and what does it mean?. 回答1: To get rid of the message... ...on Windows, you can use the command prompt to set the following environment variables to "no": setx GOOGLE_API_KEY "no" setx GOOGLE_DEFAULT_CLIENT_ID "no" setx GOOGLE_DEFAULT_CLIENT_SECRET "no" Windows' environment variables can

Selenium, Python and InvalidArgumentException: invalid argument: value must be a non-negative integer

六眼飞鱼酱① 提交于 2019-12-30 22:56:24
问题 A Python script I have been using for the last several months broke today. The script monitors a modem for incoming calls and files FTC Do Not Call complaints. The error is InvalidArgumentException: Message: invalid argument: value must be a non-negative integer when calling implicitly_wait . I found similar reports for Firefox, but I have not found one for Chrome. The machine is fully patched, so there is nothing to update like in the Firefox reports. What is the problem and how do I fix it?

How to Enable audio track change in <video> tag for DASH content?

余生长醉 提交于 2019-12-30 10:59:43
问题 I have embedded DASH videos in webpage using <video> tag. This content has multiple audio tracks. I want to support audio track change. I used audioTracks[i].enable feature to select a audio track. But the audio track is not changing. if (selected == i) { audioTracks[i].enable = TRUE; } Is this the right way ? Is there any other way for changing the audio track of DASH(.mpd) content? By audio track change, i mean to initiate a track change event that can propogate to lower level. not to

Selenium ChromeDriver does not recognize newly compiled Headless Chromium (Python)

自古美人都是妖i 提交于 2019-12-30 08:05:13
问题 I am trying to use the new (2016) headless version of Chromium with Selenium/ChromeDriver (In the past, I used Firefox with xfvb but this promises to be much better). I have compiled a headless version of Chromium from sources (I did not find any pre-built binaries) based on the instructions I found here and then I used the following code to launch it through Selenium: from selenium import webdriver from selenium.webdriver.chrome.options import Options l_option = Options() l_option.add

HTML5 video tag, javascript to detect playing status?

浪尽此生 提交于 2019-12-30 07:11:22
问题 Can you use javascript to detect if the video is playing? paused? or stopped? I know VLC under browsers can do this, but don't know how to do it without VLC? 回答1: You can query the media object to get the playback state: http://www.w3.org/TR/2011/WD-html5-20110113/video.html#playing-the-media-resource "A media element is said to be potentially playing when its paused attribute is false, the element has not ended playback, playback has not stopped due to errors, the element either has no

chrome.windows.getAll() is undefined?

丶灬走出姿态 提交于 2019-12-30 05:13:08
问题 I want to write an extension (a session manager which has more features and eye candy than the ones already in the gallery) for google chrome / chromium. But I can't get the following code to work: function list_session() { var list = []; chrome.windows.getAll( {"populate" : true}, function (window_list) { for(window in window_list) { list.concat(window.tabs); } } ); console.log(list); return list; } It's a fairly simple example for the use of the google api, but instead of a list of tabs I

Radio button background goes white in Windows Chrome when using -webkit-backface-visibility. Any workarounds?

别说谁变了你拦得住时间么 提交于 2019-12-30 02:19:05
问题 There's a bug in Windows Chrome that makes a radio button's background turn white when its parent is both out of the document flow and has -webkit-backface-visibility applied. Here it is in action: http://jsfiddle.net/misterkeg/uMajC/ I'm using -webkit-backface-visiblity: hidden to get around the WebKit transition flicker bug. This problem also occurs if I use the -webkit-transform: translateZ(0) fix instead, so it seems to kick in whenever hardware acceleration is active. Overriding the

how to get code of specified tag version of Chromium from git?

一笑奈何 提交于 2019-12-30 01:23:58
问题 i just need code of specified version of Chromium like r69297 which is the latest dev version of Chrome. i use git so i follow the instruction here: http://code.google.com/p/chromium/wiki/UsingGit however, after i sync all the code, and review the commit log, i can't find this revision! then i thought about tag, and searched here. How to use git to checkout a specified version of Webkit? here i found, but after follow all the steps, and wait for quite a long long time, i still get nothing.

how to disable chrome extension in selenium

早过忘川 提交于 2019-12-29 07:47:07
问题 I am trying to disable all chrome extensions when starting up my selenium chrome. But all extensions keep starting up each time I run the code. Is there a way of disabling the extensions. Sample Code public static void main(String[] args) throws IOException { System.setProperty("webdriver.chrome.driver", "C:\\Selenium\\chromedriver.exe"); DesiredCapabilities capabilities = DesiredCapabilities.chrome(); capabilities.setCapability("chrome.binary", "C:\\Users\\ngzhongqin\\AppData\\Local\\Google\

JxBrowser开启调试模式,JxBrowser debug

会有一股神秘感。 提交于 2019-12-28 22:54:21
原文: 一、问题描述 像一般的浏览器都带了调试功能,按F12就能打开,在JxBrowser中如何开启调试模式了。 二、解决方法 以下代码就能开启调试模式: import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.BrowserPreferences; import com.teamdev.jxbrowser.chromium.swing.BrowserView; import javax.swing.*; import java.awt.*; /** * This sample demonstrates how to use Chromium remote debugging feature. */ public class RemoteDebuggingSample { public static void main(String[] args) { // Specifies remote debugging port for remote Chrome Developer Tools. BrowserPreferences.setChromiumSwitches("--remote-debugging-port=9222"); Browser browser1 =