chrome-web-driver

how to check what is causing webdriver-manager to fail

江枫思渺然 提交于 2019-12-24 09:26:05
问题 I am trying to execute this simple protractor example https://coryrylan.com/blog/introduction-to-e2e-testing-with-the-angular-cli-and-protractor and I am getting webpack: Compiled successfully. events.js:182 throw er; // Unhandled 'error' event ^ Error: connect ETIMEDOUT 123.123.123.123:443 at Object._errnoException (util.js:1024:11) at _exceptionWithHostPort (util.js:1046:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1185:14) As far as I could understand, this is an error caused

Values returned by webdrivers

大憨熊 提交于 2019-12-17 22:28:47
问题 After performing a search using POST /session/{session id}/element , I get this from the Chrome webdriver: { sessionId: '3241e7da289f4feb19c1f55dfc87024b', status: 0, value: { ELEMENT: '0.12239552668870868-1' } } Is this what the specs demand? I am asking because I couldn't find anywhere a spot where it said clearly "ELEMENT" in capital letters. All I can find in the specs is that a key called value is set (which it is: it's set as { ELEMENT: '0.12239552668870868-1' } Can I always always

ChromeDriver showing Lost UI Shared Context

大憨熊 提交于 2019-12-17 09:56:57
问题 I have a Windows 10 laptop running a Windows 7 Virtual Machine. Inside the Virtual Machine, when i start the WebDriver, it gives the error gpu_process_transport_factory.cc<1009> Lost UI shared context when it is started: IWebDriver driver = new ChromeDriver() //This causes the 1009 Error Also then varies for Failed to query stereo recording and Failed to send GpuChannelMsg_CreateCommandBuffer and command_buffer_proxy_impll.cc<115> Shared memory handle is not valid . This has been working for

ChromeDriver showing Lost UI Shared Context

 ̄綄美尐妖づ 提交于 2019-12-17 09:56:02
问题 I have a Windows 10 laptop running a Windows 7 Virtual Machine. Inside the Virtual Machine, when i start the WebDriver, it gives the error gpu_process_transport_factory.cc<1009> Lost UI shared context when it is started: IWebDriver driver = new ChromeDriver() //This causes the 1009 Error Also then varies for Failed to query stereo recording and Failed to send GpuChannelMsg_CreateCommandBuffer and command_buffer_proxy_impll.cc<115> Shared memory handle is not valid . This has been working for

ChromeWebDriver - unknown error: Chrome failed to start: crashed

一世执手 提交于 2019-12-17 06:53:19
问题 I'm trying to test my application on Chrome with ChromeWebDriver but every time I try I get following exception: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 61.46 seconds Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58', time: '2014-03-27 11:29:39'

ChromeWebDriver - unknown error: Chrome failed to start: crashed

谁都会走 提交于 2019-12-17 06:53:15
问题 I'm trying to test my application on Chrome with ChromeWebDriver but every time I try I get following exception: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 61.46 seconds Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58', time: '2014-03-27 11:29:39'

ChromeWebDriver - unknown error: Chrome failed to start: crashed

我的梦境 提交于 2019-12-17 06:53:10
问题 I'm trying to test my application on Chrome with ChromeWebDriver but every time I try I get following exception: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 61.46 seconds Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58', time: '2014-03-27 11:29:39'

Selenium Web Driver: Extracted Chrome Browser logs are incomplete

孤者浪人 提交于 2019-12-13 16:18:44
问题 I'm writing browser tests for a Vaadin application with help of Selenium. The Chrome browser log console in development utilities shows logs of different log levels (TRACE, SEVERE, WARNING). Following code sets up my test driver: @RunOnHub public abstract class SmokeTestCase extends ParallelTest { ... final ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setHeadless(false); final LoggingPreferences logPrefs = new LoggingPreferences(); logPrefs.enable(LogType.BROWSER, Level

How to extract text from divs in Selenium using Python when new divs are added every approx 1 second?

邮差的信 提交于 2019-12-13 01:24:18
问题 I am trying to extract the content from divs on a web page using Selenium. The web page is dynamically generated and every second or so there is a new div inserted into the HTML on the web page. So far I have the following code: from selenium import webdriver chrome_path = r"C:\scrape\chromedriver.exe" driver = webdriver.Chrome(chrome_path) driver.get("https://website.com/") messages = [] for message in driver.find_elements_by_class_name('div_i_am_targeting'): messages.append(message.text)

Selenium commands not working in Chrome web driver (working with firefox)

情到浓时终转凉″ 提交于 2019-12-11 15:37:53
问题 I'm writing integration/e2e tests and for some reason any selenium driver commands don't see to be working with chromedriver, but they are working flawlessly with firefox driver and the firefox headless driver. Commands tried: moveByOffset , and doubleClick Tried both Geb's Interact method interact { doubleClick(centerClickable) } and accessing the webdriver directly: def driver = browser.getDriver() Actions action = new Actions(driver) WebElement element= driver.findElement(By.className("vis