google-chrome

Is there an item limit for large arrays in javascript

倖福魔咒の 提交于 2021-02-11 07:42:44
问题 Already read this Question but didn't come to an understandable answer. I have an array new Array(105119296) with a predefined size. Then after the array was defined I started a loop to fill each index with a value. This process normally runs in a webworker but crashes there as well as in the browser directly. After 11184811 iterations in Chrome Mac 50.0.2661.102 (64-bit) the execution crashes. The script below reproduces the situation. var len = 105119296; var arr = new Array(len); for(var i

How to use default browser profile in Selenium instead of new one? [duplicate]

情到浓时终转凉″ 提交于 2021-02-11 04:52:57
问题 This question already has answers here : Cannot resolve constructor FirefoxDriver(org.openqa.selenium.firefox.FirefoxProfile) (1 answer) webdriver.FirefoxProfile(): Is it possible to use a profile without making a copy of it? (1 answer) Closed 6 days ago . I couldn't find any relevant answers and my question is pretty straight forward. The context isn't really relevant. It is very important for me that Selenium uses my normally installed browser (Chrome or Firefox), when doing coded things.

How to use default browser profile in Selenium instead of new one? [duplicate]

放肆的年华 提交于 2021-02-11 04:51:54
问题 This question already has answers here : Cannot resolve constructor FirefoxDriver(org.openqa.selenium.firefox.FirefoxProfile) (1 answer) webdriver.FirefoxProfile(): Is it possible to use a profile without making a copy of it? (1 answer) Closed 6 days ago . I couldn't find any relevant answers and my question is pretty straight forward. The context isn't really relevant. It is very important for me that Selenium uses my normally installed browser (Chrome or Firefox), when doing coded things.

Can't access a cookie using document.cookie in JS

回眸只為那壹抹淺笑 提交于 2021-02-10 22:18:52
问题 I'm running into a weird problem. I'm building an external mobile webapp that intefaces with Drupal Services. When I call the login.json service, a cookie is set (or so I think) that tells Drupal that I'm logged in. The webapp is currently running under the same domain but in a subdirectory. But here's the tricky part. In my chrome resources browser, I can see the cookie under cookies. However, when I try to log the contents of document.cookie it comes back empty. What I need to do is check

Chrome Extension Content Script - Grabbing YouTube video titles using JavaScript

谁说我不能喝 提交于 2021-02-10 21:37:25
问题 I have a simple content script for my Chrome Extension that is supposed to grab the titles of YouTube videos. My problem is that it has only worked once. I tried accessing the child nodes of the HTMLCollection which should only be one but I get null of undefined. Doing something like: element[0].innerText; doesn't give me anything useful but from my understanding if I use getElementsByClassName and apply innerText on the first element with [0] it shoud work. It might be an issue with the html

Chrome Extension Content Script - Grabbing YouTube video titles using JavaScript

你说的曾经没有我的故事 提交于 2021-02-10 21:22:49
问题 I have a simple content script for my Chrome Extension that is supposed to grab the titles of YouTube videos. My problem is that it has only worked once. I tried accessing the child nodes of the HTMLCollection which should only be one but I get null of undefined. Doing something like: element[0].innerText; doesn't give me anything useful but from my understanding if I use getElementsByClassName and apply innerText on the first element with [0] it shoud work. It might be an issue with the html

chromedriver.exe runs ~8 chrome.exe instances

懵懂的女人 提交于 2021-02-10 20:28:29
问题 I write UI automation tests using Selenium. And I noticed that when I create an instance of chromedriver.exe -> ~8 chrome.exe processes appear in the Task Manager. Task Manager screenshot when running 1 test: So, when I run in parallel, let's say, 8 tests there are a lot of chrome.exe instances in the Task Manager that use some ports and load a CPU and a memory. Does it work by design? Why so much chrome.exe instances are needed for one chromedriver.exe? Is this configurable? In my code, I

CSS - Chrome Mobile - Page move up when keyboard appears

假如想象 提交于 2021-02-10 18:41:55
问题 I implemented a web page with ReactJS, I have a form with some fields, in Chrome for computers it works ok, but when I go in the form using a mobile like a Tablet or Smartphone, when the keyboard appears all the page move to up and the menu of my page is hiden by the navigation bar of the Chrome navigator. Here is the flow: I have the next meta in the head: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no" /> The

How does Google Custom search, search the web and why does it like so much domains with edu?

回眸只為那壹抹淺笑 提交于 2021-02-10 18:32:44
问题 I'm trying to use the Google Custom API to search for a certain keyword however it seems that the returned JSON that contains the links to the websites which "match" my keyword are totally irrelevant to what I have searched. I have noticed that anything searched will return 80% domains which end with edu even though my keyword is gum guard for example. I don't mind domains ending with edu however I thought this API returns the first websites that will get returned whenever I go to my Google

<object> works in every browser except Google Chrome

廉价感情. 提交于 2021-02-10 15:51:34
问题 I have a problem with loading data into an < object > using Javascript. It refuses to work in Chrome, no error message either. You can see a minimal example to play with here: http://tinkerbin.com/HIqG0ypb 回答1: It is strange to me that browsers assume object.data could be set as URI but display content available at that URI . It sounds like a security flaw : full content could be injected into a page without using frame. I wonder if test.com in your example has access to window.parent or