google-chrome

Selenium not using Default Chrome Profile

北城以北 提交于 2021-02-15 07:03:09
问题 Selenium will not load my default Chrome Profile and I cannot figure out why. I have tried both Profile 1 and a Default profile with the same error (below). I have confirmed with Task Manager that all Chrome windows are shut down before running this code. Any thoughts? from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import numpy as np from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options import os os

Selenium not using Default Chrome Profile

人盡茶涼 提交于 2021-02-15 07:01:10
问题 Selenium will not load my default Chrome Profile and I cannot figure out why. I have tried both Profile 1 and a Default profile with the same error (below). I have confirmed with Task Manager that all Chrome windows are shut down before running this code. Any thoughts? from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import numpy as np from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options import os os

Selenium not using Default Chrome Profile

懵懂的女人 提交于 2021-02-15 07:01:06
问题 Selenium will not load my default Chrome Profile and I cannot figure out why. I have tried both Profile 1 and a Default profile with the same error (below). I have confirmed with Task Manager that all Chrome windows are shut down before running this code. Any thoughts? from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import numpy as np from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options import os os

selenium.common.exceptions.TimeoutException while invoking .click() on an element through expected_conditions

荒凉一梦 提交于 2021-02-13 05:45:19
问题 Using python, chromedriver and Windows. I've working on a script for some months which uses .click() function regularly, few days ago it stopped working anywhere on the site. I've been trying to locate the element by id, xpath, etc... or even click it by send_keys(Keys.ENTER) with no success. I'm just trying to click the login icon but nothing happens. Seems to find the element and even click it, but nothing happens. This is the site and here the code: browser = webdriver.Chrome(chrome

selenium.common.exceptions.TimeoutException while invoking .click() on an element through expected_conditions

☆樱花仙子☆ 提交于 2021-02-13 05:43:47
问题 Using python, chromedriver and Windows. I've working on a script for some months which uses .click() function regularly, few days ago it stopped working anywhere on the site. I've been trying to locate the element by id, xpath, etc... or even click it by send_keys(Keys.ENTER) with no success. I'm just trying to click the login icon but nothing happens. Seems to find the element and even click it, but nothing happens. This is the site and here the code: browser = webdriver.Chrome(chrome

WebDriverException: unknown error: unable to discover open pages error with ChromeDriver 80.0.3987.106 and Chrome 80.0.3987.122

元气小坏坏 提交于 2021-02-13 05:40:14
问题 My local windows 10 computer update auto chrome version to 80.0.3987.122 (Build officiel) (64 bits) I use https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_win32.zip but now I have this error: Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System

How to play uploaded videos in an iframe on a Mac system

大兔子大兔子 提交于 2021-02-11 18:07:52
问题 I have tried using iframe and also video tag and object tag to play the video. In some cases, it plays only the audio from the video, but video doesn't show up. Secondly, the same video file plays well on a separate tab in the browser, but not within my iframe. This issue is on all browsers on my Mac, but on a windows machine it plays well. 回答1: I finally found it. Apple has a good documentation of its own for this. https://developer.apple.com/library/mac/documentation/quicktime/conceptual

How to play uploaded videos in an iframe on a Mac system

 ̄綄美尐妖づ 提交于 2021-02-11 18:07:26
问题 I have tried using iframe and also video tag and object tag to play the video. In some cases, it plays only the audio from the video, but video doesn't show up. Secondly, the same video file plays well on a separate tab in the browser, but not within my iframe. This issue is on all browsers on my Mac, but on a windows machine it plays well. 回答1: I finally found it. Apple has a good documentation of its own for this. https://developer.apple.com/library/mac/documentation/quicktime/conceptual

How to print a webpage with all click-to-expand contents?

六月ゝ 毕业季﹏ 提交于 2021-02-11 17:51:06
问题 I'm using print-to-pdf option in headless chrome (or chromehtml2pdf ) to print this page to PDF. It's unfortunate that this page has some click-to-expand contents. For example, Here is when we click the triangle to open To expand all of these hidden contents, we can click to the plus symbol at the top right side I would like to ask if there is any way to print the webpage as well as click-to-expand contents. Thank you so much for your help! 来源: https://stackoverflow.com/questions/61900799/how

Taking full page screenshot with a Chrome extension

蓝咒 提交于 2021-02-11 17:35:42
问题 Is there away to capture a screenshot of the full page, including what is below the fold, in a Chrome Extension? The captureVisibleTab seems to be limited to what is displayed within the visible area. 回答1: You're limited to capturing the visible page via captureVisibleTab unless you use Flash or NPAPI. 回答2: The standard approach seems to be to scroll around the page and capture screenshots at each part and then stick them all together. The official google screen capture plugin does this, but