selenium-chromedriver

WebDriverError: no such session error using ChromeDriver Chrome through Jenkins and Selenium

和自甴很熟 提交于 2020-07-06 05:53:13
问题 Often I am getting no such session error when I am running the scripts from Jenkins. What's the cause for it? Is there any connection failure or is it due to someother reason (I am running around 26 scripts and out of it atleast one script has no such session error) The scripts are different scripts and no such session error is not again repeated for the same scripts 回答1: I met this kind of case sometimes. I use ChromeDriver with Laravel Dusk, rather than Selenium. However, I believe the

WebDriverError: no such session error using ChromeDriver Chrome through Jenkins and Selenium

梦想与她 提交于 2020-07-06 05:51:28
问题 Often I am getting no such session error when I am running the scripts from Jenkins. What's the cause for it? Is there any connection failure or is it due to someother reason (I am running around 26 scripts and out of it atleast one script has no such session error) The scripts are different scripts and no such session error is not again repeated for the same scripts 回答1: I met this kind of case sometimes. I use ChromeDriver with Laravel Dusk, rather than Selenium. However, I believe the

VBA Selenium Chromedriver save PDF

只谈情不闲聊 提交于 2020-07-03 13:24:06
问题 This link is a PDF file that opens in Chrome PDF file. Can I somehow save this PDF file from this page? I run chrome with such settings driver.SetPreference "download.default_directory", "c:\chr" driver.SetPreference "download.directory_upgrade", True driver.SetPreference "download.prompt_for_download", False but when you press CONTROL + S, the save as window still appears. May be i can download PDF directly from Chrome? UPDATE CODE: This works fine: Public Sub browser_open() Set driver = New

Website navigates to no-access page using ChromeDriver and Chrome through Selenium probably Bot Protected

谁说胖子不能爱 提交于 2020-07-03 12:59:50
问题 My target site is https://www.nike.com/kr/ko_kr When using selenium driver.get to connect to this target using webdriver.Chrome().get, the connection is done. But if I click elements to use my hand or element_find_xpath() , it redirected no-access page(probably bot protector) and I cant do anything(other target's sub page etc...). I changed user-agent, ip but it redirected no-access too. How can I cheat the site and enable normal access? I have also changed the user-agent and etc.. But didn't

Selenium chromedriver disable logging or redirect it java

筅森魡賤 提交于 2020-07-03 06:50:14
问题 I am trying to use selenium in a mini web crawler to get the page source. My output log is invaded by selenium logs, is there a way to totally disable the logging or just redirect it in someway to /dev/null? The logging messages are these: Starting ChromeDriver 2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d) on port 1628 Only local connections are allowed. ott 24, 2018 7:52:01 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFORMAZIONI: Detected dialect: OSS I am calling

Showing Error - unknown error: DevToolsActivePort file doesn't exist - it's electron application (I am using windows OS))

Deadly 提交于 2020-07-02 03:12:54
问题 When I run my code it's showing below error - Electron application org.openqa.selenium.WebDriverException: unknown error: DevToolsActivePort file doesn't exist. Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z' System info: host: 'DESKTOP-GN8LLQU', ip: '192.168.1.20', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.2' Driver info: driver.version: ChromeDriver My Code: ChromeOptions opt = new ChromeOptions(); // path of your

Inconsistency in scraping through <div>'s in Selenium

元气小坏坏 提交于 2020-06-29 03:53:28
问题 I'm working on scraping all of the Air Jordan Data off of grailed.com (https://www.grailed.com/designers/jordan-brand/hi-top-sneakers). I am storing the size, model, url, and image url in an object. I currently have a program that scrolls through the entire feed and fetches all of this. Everything works except finding the image url. I have tried many things and the issue seems to be that for some elements in the feed Selenium doesn't detect the div or url containing the image. I have gone

ERR_BLOCKED_BY_XSS_AUDITOR when downloading file using selenium

痞子三分冷 提交于 2020-06-28 05:05:08
问题 I'm trying to download a file using selenium by simulating click on a download button but Chrome reports ERR_BLOCKED_BY_XSS_AUDITOR . If I use the "--disable-xss-auditor" argument to bypass, the page would be reloaded and nothing get downloaded. What seems strange to me is that when I actually download the file with my mouse in a Chrome session that's even controlled by selenium , the file downloads well. Please help me understand what xss auditor does? Why can't I download the file with

ERR_BLOCKED_BY_XSS_AUDITOR when downloading file using selenium

随声附和 提交于 2020-06-28 05:05:06
问题 I'm trying to download a file using selenium by simulating click on a download button but Chrome reports ERR_BLOCKED_BY_XSS_AUDITOR . If I use the "--disable-xss-auditor" argument to bypass, the page would be reloaded and nothing get downloaded. What seems strange to me is that when I actually download the file with my mouse in a Chrome session that's even controlled by selenium , the file downloads well. Please help me understand what xss auditor does? Why can't I download the file with

unable to run selenium chrome-driver on google-cloud-run

给你一囗甜甜゛ 提交于 2020-06-28 04:47:24
问题 I have a docker container that runs a working selenium chrome driver script, however when the same image is deployed to Google Cloud Run I encounter the following error. webdriver.Chrome('/home/vmagent/app/chromedriver', chrome_options=self.options) File "/env/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__ desired_capabilities=desired_capabilities) File "/env/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__