selenium-chromedriver

Timed out receiving message from renderer: 10.000 while capturing screenshot using chromedriver and chrome through Jenkins on Windows

橙三吉。 提交于 2019-12-17 02:51:28
问题 OS: Windows 10 Browser: Chrome Browser version: Version 73.0.3683.86 (Official Build) (32-bit) I am running selenium cucumber BDD project where I am verifying title of one page. I am using extent-report version4. Project running successfully in local. But when i am running it through Jenkins, its failing while capturing screenshot and showing below error. If i remove the surfire plugin from pom.xml then the TEST is not running via Jenkins. In Execute Windows Batch command option of Jenkins i

Page load strategy for Chrome driver (Updated till Selenium v3.12.0)

邮差的信 提交于 2019-12-17 02:32:09
问题 I'm using Chrome browser for testing WebApp. Sometimes pages loaded after very long time. I needed to stop downloading or limit their download time. In FireFox I know about PAGE_LOAD_STRATEGY = "eager" . Is there something similar for chrome? P.S.: driver.manage().timeouts().pageLoadTimeout() works, but after that any treatment to Webdriver throws TimeOutException . I need to get the current url of the page after stopping its boot. 回答1: ChromeDriver 77.0 (which supports Chrome version 77) now

Unable to launch chrome from selenium, while using MAC system

拜拜、爱过 提交于 2019-12-14 03:34:18
问题 MAC: 10.11.6, Selenium: 2.53(Also tried with 3.4 and 3.8) & Java 1.8 Driver settings tried: String exePath ="/usr/local/Cellar/chromedriver/2.35/bin/chromedriver"; System.setProperty("webdriver.chrome.driver", exePath); WebDriver driver = new ChromeDriver(); driver = new ChromeDriver(options); Error stack trace: Starting ChromeDriver 2.35.528157 (4429ca2590d6988c0745c24c8858745aaaec01ef) on port 14988 Only local connections are allowed. Exception in thread "main" org.openqa.selenium

Selenium WebDriver in Ruby: Preventing the test from closing the browser window at end

亡梦爱人 提交于 2019-12-14 03:03:59
问题 I appear to be having the exact opposite problem many other people have - in that my Selenium tests in Ruby will close the browser window at test end, no matter what the end result is. Pass or fail, it will always close the browser. I would like to stop this. Context: Previously I coded tests in Java using IntelliJ IDEA. Browser windows for Selenium tests in this case would NOT close at all period unless you used driver.quit(). This is actually quite useful as it means that the browser window

Selenium chromedriver exception when enumerating elements by xpath

帅比萌擦擦* 提交于 2019-12-14 02:46:52
问题 I'm trying to convert a Selenium script from Firefox to Chrome. The code works as expected with Firefox and geckodriver on x86_64. geckodriver does not support ARM well so I am attempting to move to Chrome. Chromium and chromedriver is causing an exception when using driver.find_elements_by_xpath('//*[@id]') . The exception is selenium.common.exceptions.WebDriverException: Message: chrome not reachable . What is the problem and how do I fix it? Here is the test program. $ cat test.py #!/usr

Fitting objects in window screen using Selenium Java

时光毁灭记忆、已成空白 提交于 2019-12-14 02:35:52
问题 I am trying to fit all the objects in the window (Chrome browser). Manually when I am doing it(the dimensions that I am using is 1024X786 using toggle bar, but when I am automating it using the same dimension, it's not showing the same as it was manually. The following is the code: driver = new ChromeDriver(); Map<String, Object> deviceMetrics = new HashMap<String, Object>(); deviceMetrics.put("width", 768); deviceMetrics.put("height", 1024); Map<String, Object> mobileEmulation = new HashMap

How to identify and click this download-data-link using selenium

你说的曾经没有我的故事 提交于 2019-12-14 02:29:56
问题 <span class="download-data-link"><a download="" target"_blank"="" style="cursor:pointer">Download file in csv format</a></span> I need to click on the "Download file in csv format" but it always shows error that item is not clickable at that point click to see the screenshot : I have tried all these element=driver.findElement(By.xpath("//div[@class='download-data-link']/span")); element.click(); WebDriverWait wait = new WebDriverWait(driver, 20); WebElement link = wait.until

How can I use chrome options in vba with selenium?

自古美人都是妖i 提交于 2019-12-14 02:23:30
问题 Is there any way I can use those commented out four lines in my vba code so that I can shake off barrier while entering some notifications prone webpages. I can't find any idea so that I will be able to make use of them as it is throwing error because of how they are now. Here it is. Thanks in advance. Sub Test_stth() Dim driver As New WebDriver 'chrome_options = WebDriver.ChromeOptions() 'prefs = {"profile.default_content_setting_values.notifications" : 2} 'chrome_options.add_experimental

how to get already opened IE browser handle in selenium?

你离开我真会死。 提交于 2019-12-14 01:15:35
问题 I have one already opened IE browser , with some url. After this, I Run below code which will open another IE browser. however it gives me only one window handle in below code. Is it possible to get previously opened IE browser handle ? IWebDriver IEdriver = new InternetExplorerDriver(); IReadOnlyCollection<String> browsers = IEdriver.WindowHandles; foreach (String item in browsers) { IEdriver.SwitchTo().Window(item); String url = IEdriver.Url; } 回答1: I think this is what you're looking for:

“Element is not clickable at point” has the wrong co-ordinates

前提是你 提交于 2019-12-13 20:26:37
问题 I'm receiving this error while trying to use browser.click() with webdriver.io: Error: element click intercepted: Element <input type="text" class="form-control" id="nameInput" data-validate="true" data-required-error="Name is required." data-pattern-error="Invalid data entered for Name" pattern="^.*$" required="" maxlength="255" value="Some Other Name"> is not clickable at point (709, 483). Other element would receive the click: <div class="attribute-container col-sm-6">...</div> This is