Questions tagged [google-chrome]
[google-chrome] is for questions related to development with Google Chrome, a web browser that uses the Blink rendering engine. Warning! General support for the browser is off-topic: questions about using or configuring the browser should be posted on https://superuser.com. Chrome OS and Chromium are off-topic: questions about [google-chrome-os] or [chromium] should use those tags.
google-chrome
9,207
questions
63
votes
1
answer
60k
views
Official locator strategies for the webdriver
In the official W3C webdriver documentation, it's clearly stated that the location strategies are:
State Keyword
-----------------------------------------------
CSS selector ...
629
votes
8
answers
398k
views
Access variables and functions defined in page context from an extension
I want to control youtube.com's player in my extension:
manifest.json:
{
"name": "MyExtension",
"version": "1.0",
"description": "...
177
votes
7
answers
41k
views
Is Chrome’s JavaScript console lazy about evaluating objects?
I’ll start with the code:
var s = ["hi"];
console.log(s);
s[0] = "bye";
console.log(s);
Simple, right? In response to this, the Firefox console says:
[ "hi" ]
[ "...
2174
votes
39
answers
3.6m
views
Disable same origin policy in Chrome
Is there any way to disable the Same-origin policy on Google's Chrome browser?
85
votes
2
answers
79k
views
Accessing `window`/DOM/HTML of the webpage from the extension
I'm writing a Chrome extension and trying to overlay a <div> over the current webpage as soon as a button is clicked in the popup.html file.
When I access the document.body.insertBefore method ...
9
votes
2
answers
26k
views
How does chrome driver interact with Chrome browser?
It says
ChromeDriver is a standalone server that implements the W3C WebDriver standard
It looks like W3C WebDriver standard only defines the interface between the automation program and ...
127
votes
2
answers
82k
views
Weird behavior with objects & console.log [duplicate]
This code:
foo = [{id: 1},{id: 2},{id: 3},{id: 4}, {id: 5}, ];
console.log('foo1', foo, foo.length);
foo.splice(2, 1);
console.log('foo2', foo, foo.length);
Produces the following output in Chrome:
...
303
votes
5
answers
240k
views
Chrome / Safari not filling 100% height of flex parent
I want to have a vertical menu with a specific height.
Each child must fill the height of the parent and have middle-aligned text.
The number of children is random, so I have to work with dynamic ...
1918
votes
44
answers
2.9m
views
Hide scroll bar, but while still being able to scroll
I want to be able to scroll through the whole page, but without the scrollbar being shown.
In Google Chrome it's:
::-webkit-scrollbar {
display: none;
}
But Mozilla Firefox and Internet ...
635
votes
26
answers
484k
views
Can a website detect when you are using Selenium with chromedriver?
I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium even though there's no automation at all. Even when I'm just browsing manually just ...
618
votes
68
answers
1.1m
views
Disabling Chrome Autofill
I have been running into issues with the chrome autofill behavior on several forms.
The fields in the form all have very common and accurate names, such as "email", "name", or "password", and they ...
374
votes
55
answers
644k
views
WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser
I am trying to launch chrome with an URL, the browser launches and it does nothing after that.
I am seeing the below error after 1 minute:
Unable to open browser with url: 'https://www.google.com' (...
216
votes
17
answers
751k
views
window.close and self.close do not close the window in Chrome
The issue is that when I invoke window.close() or self.close() it doesn't close the window. Now there seems to be a belief that in Chrome you can't close by script any window that is not script ...
1735
votes
35
answers
864k
views
Disabling Chrome cache for website development
I am modifying a site's appearance (CSS modifications) but can't see the result on Chrome because of annoying persistent cache. I tried Shift+refresh but it doesn't work.
How can I disable the cache ...
274
votes
17
answers
226k
views
How can I make setInterval also work when a tab is inactive in Chrome?
I have a setInterval running a piece of code 30 times a second. This works great, however when I select another tab (so that the tab with my code becomes inactive), the setInterval is set to an idle ...