selenium-chromedriver

Make headless browser stop loading page

自作多情 提交于 2019-12-21 04:19:05
问题 I am using the watir-webdriver ruby gem. It starts the browser (Chrome) and begins to load a page. The page is loading too slowly, and watir-webdriver raises a timeout error. How can I make the browser stop loading the page? require 'watir-webdriver' client = Selenium::WebDriver::Remote::Http::Default.new client.timeout = 10 @browser = Watir::Browser.new :chrome, :http_client => client sites = [ "http://google.com/", "http://yahoo.com/", "http://www.nst.com.my/", # => This is the SLOW site

Error while running chromedriver: “/lib64/libc.so.6: version `GLIBC_2.14' not found” in CentOS6

徘徊边缘 提交于 2019-12-21 03:59:07
问题 I am trying to launch chromedriver on CentOS 6. More about the OS <code>[root@localhost bin]# uname --all Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux</code> It throws the following error: [root@localhost bin]# ./chromedriver ./chromedriver: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by ./chromedriver) ./chromedriver: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./chromedriver) .

Missing elements when using selenium chrome driver to automatically 'Save as PDF'

限于喜欢 提交于 2019-12-21 03:32:51
问题 I am trying to automatically save a PDF file created with pdftohtmlEX (https://github.com/coolwanglu/pdf2htmlEX) using the selenium (chrome) webdriver. It almost works except captions of figures and sometimes even part of the figures are missing. Manually saved: Automatically saved using selenium & chrome webdriver: Here is my code (you need the chromium webdriver (http://chromedriver.chromium.org/downloads) in the same folder as this script): import json from selenium import webdriver #

Selenium crashes after running around 500 tests

旧城冷巷雨未停 提交于 2019-12-21 03:01:08
问题 I am trying to run some dynamically generated tests. They work perfectly up to around 500, then I just get the error below. Has anyone seen this before? ChromeDriver executable needs to be available in the path. I was thinking that it might be a machine spec issue. I have a hyper-threaded i5 and 8GB of RAM. Watching the system monitor, I do not see memory get above 6GB and CPU never reaches 100% on any core. I am running Linux Mint. I have tried adding timeouts after the browser has closed

Chromedriver on Travis-CI

你。 提交于 2019-12-20 09:49:41
问题 I am having trouble getting chromedriver on Travis-CI working for my project knockout-secure-binding. I am trying to use WebdriverJS to automate testing with Chrome, at the least. I noted that there seems to be some issues with chromedriver on Travis-CI, including: http://github.com/travis-ci/travis-ci/issues/938 http://github.com/travis-ci/travis-ci/issues/272 https://code.google.com/p/chromedriver/issues/detail?id=308 The issue seems to be a variant of "chrome not reachable", and from what

I'm getting erros when running my JAVA webdriver code. It's to do with the ChromeDriver

与世无争的帅哥 提交于 2019-12-20 07:55:21
问题 When I try and run the following code I get errors to do with ChromeDriver . I'm new to this but I can see that the code gets as far as row 11 but then it fails . Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: C:\Matts Learning\ChromeDriver\ChromeDriver at com.google.common.base.Preconditions.checkState(Preconditions.java:199) at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:121) at org.openqa.selenium

I'm getting erros when running my JAVA webdriver code. It's to do with the ChromeDriver

好久不见. 提交于 2019-12-20 07:54:01
问题 When I try and run the following code I get errors to do with ChromeDriver . I'm new to this but I can see that the code gets as far as row 11 but then it fails . Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: C:\Matts Learning\ChromeDriver\ChromeDriver at com.google.common.base.Preconditions.checkState(Preconditions.java:199) at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:121) at org.openqa.selenium

How lookup anchor tag <a> by attribute name and/or value? [duplicate]

橙三吉。 提交于 2019-12-20 06:32:40
问题 This question already has answers here : Manipulate xpath using variables (2 answers) Closed 10 months ago . This is the web that I am trying to automate: https://www.supremenewyork.com/shop/sweatshirts/xi9sboa21/u2te1fdw8 My requirement is to click on the image depending on the color entered as input. For example, if "red" is entered as input I must click in the red sweatshirt like the previous picture. Target images are in <li><a> : <ul class="styles"> <li><a class="" data-images="..." data

Python3, Selenium and Chrome portable

懵懂的女人 提交于 2019-12-20 06:11:19
问题 probably someone can help with Windows, Python, Selenium and using Chrome webdriver with ChromePortable. I've defined a new folder c:\myproject Wihtin this folder the wedriver is located: c:\myproject\driver\chromedriver.exe and also the Chrome Portable c:\myproject\chromeportable\chrome.exe Now I would like to build a simple Python script which opens - let say - stackoverflow.com. On a computer, where google is installed it isn't a problem like from selenium import webdriver driver =

selenium webdriver importing Options giving me an ImportError

两盒软妹~` 提交于 2019-12-20 05:18:24
问题 Link to the original code I'm trying to implement into my code. Running Selenium WebDriver using Python with extensions (.crx files) from selenium import webdriver from selenium.webdriver.chrome.options import Options chop = webdriver.ChromeOptions() chop.add_extension('Adblock-Plus_v1.4.1.crx') driver = webdriver.Chrome(chrome_options = chop) I tried incorporating the code, but the 2nd line, from selenium.webdriver.chrome.options import Options is tossing out an error Traceback (most recent