google-chrome

Why does Chrome add two tabs at the end of my xlsx file and by doing so, is corrupting the files?

99封情书 提交于 2021-01-27 20:07:22
问题 I am developing an app with yii2 and I am using PhpSpreadsheet to generate (Excel) .xlsx files. When I download a generated .xlsx file with Chrome, I can not open it with Excel (2019), since Excel prompts that the file is corrupted, offers to repair it but fails. First i suspected something wrong with the generator or the download process, but I've tested the download with Firefox, Edge and Filezilla - everything works as expected. A comparison of the downloaded files in hex shows just one

Access all new Chrome Notifications programmatically

梦想的初衷 提交于 2021-01-27 19:57:09
问题 I have no previous experience with programming Google Chrome plugins which is why I am starting here to see if what I want to accomplish is possible/reasonable. I do however have a pretty broad experience in programming in general. What I want: I want some kind of "trigger" to go off when a new Chrome Notification (you know these little pop ups above the system tray) is popping up. I want to execute some script/code depending on what information the notification contains so that I for example

Chrome DevTools - Performance Tab Summary

允我心安 提交于 2021-01-27 19:41:16
问题 On the Performance tab in Chrome DevTools, the Summary panel shows the timings for several categories of activities - Loading, Scripting, Rendering, Painting, System, Idle. I can't seem to find a concise description in the DevTools documentation for what each of these categories represent. I feel like I have to be overlooking something obvious. I found this SO post that describes the difference between Rendering and Painting. The Loading category is still pretty fuzzy in my mind. It doesn't

Selenium: access denied

眉间皱痕 提交于 2021-01-27 19:00:31
问题 I am trying to scrape some data from LV website with Selenium and keep getting 'Access Denied' screen once 'sign in' button clicked. I feel like there is a protection against this because all seems to be working fine when I do the same manually. Oddly, I need to click 'sign in' button twice to be able to sign in manually. My code: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver

Chrome Browser Headless problem : Some specific pages are not rendering in Headless mode

偶尔善良 提交于 2021-01-27 18:30:38
问题 I am trying to automate a process using selenium and chrome browser in Python. My browser works correctly for most pages but is unable to render a few pages including chrome://version/ . For general automation(without headless) it returns the page and page source correctly, whereas for headless browsing it returns a blank page with page source as below <html><head></head><body></body></html> I have tried chrome in the different operating system including OpenSUSE, fedora, and Windows. I have

How to pass validated user input with in an input field of a webpage using Selenium and Python

北慕城南 提交于 2021-01-27 18:12:02
问题 I want the user to type in her/his name then pass the user input to selenium so that it automatically types it in the search field for my website. Is possible to first input, press enter then trigger selenium to forward the input to the browser. Why is it not working? from selenium import webdriver import time browser = webdriver.Chrome('C:/Users/acer/Desktop/chromedriver') browser.get('website') x = str(input('Your name: ')) #user inputs name here if len(x) > 20: #the name van not be longer

How to pass validated user input with in an input field of a webpage using Selenium and Python

女生的网名这么多〃 提交于 2021-01-27 18:05:05
问题 I want the user to type in her/his name then pass the user input to selenium so that it automatically types it in the search field for my website. Is possible to first input, press enter then trigger selenium to forward the input to the browser. Why is it not working? from selenium import webdriver import time browser = webdriver.Chrome('C:/Users/acer/Desktop/chromedriver') browser.get('website') x = str(input('Your name: ')) #user inputs name here if len(x) > 20: #the name van not be longer

Why WAV format doesn't have same mimetype in different browsers?

 ̄綄美尐妖づ 提交于 2021-01-27 16:49:03
问题 File input give different Mimetype for the same file in chrome or firefox. I have a wav file that I want to upload, chrome says it is audio/wav and firefox detect audio/x-wav . I know those two mimetype are very similar ( x- stands for non-standard), but why are they handled differently in this case? Here is a fiddle to illustrate this: https://jsfiddle.net/r9ae0zfd/. And here is the WAV file I used for this example: https://freesound.org/people/zagi2/sounds/391828/. In the end the behavior

Detect Custom Protocol handler in chrome 86

守給你的承諾、 提交于 2021-01-27 16:39:43
问题 I have implemented a solution according to https://gist.github.com/aaronk6/d801d750f14ac31845e8 and it worked fine till chrome 85 .With latest chrome Update Onblur not detecting open protocol handler popup. Is there a way to identify Custom protocol registered in windows using Chrome 86 new version .The code i have implemented mentioned below and it's working fine for Firefox function LinkClicked() { launchUri($(this).attr("href"), function () { // SUCCESS APPLICATION INSTALLED }, function ()

How to handle “Unable to receive message from renderer” in chrome driver?

半世苍凉 提交于 2021-01-27 16:04:26
问题 Test Environment: chrome=73.0.3683.103 chromedriver version: 73.0.3683.68 java.version: '1.8.0_151' os.name: 'Windows 7' I am getting following error: Unable to receive message from renderer Timed out receiving message from renderer: 19.997 Timed out receiving message from renderer:-0.004 Thank you in advance for any help you may be able to provide. 回答1: This error message... Unable to receive message from renderer Timed out receiving message from renderer: 19.997 Timed out receiving message