Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chromedriver]

ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is ...

1
vote
1answer
25 views

Selenium webdriver is getting log entries for the server event “500 internal server error” when using GetLog(LogType.Browser)

After I have been doing any automated task with selenium webdriver, I check the javascript log to see if anything unexpected has happened. To do that, I am using browser.Manage().Logs.GetLog(LogType....
0
votes
1answer
30 views

Multithreading: chromedriver does not open url in second window

Java code in thread function, System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver"); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--no-sandbox"); ...
0
votes
1answer
14 views

Javascript function not found when running UI tests

I'm using Selenium with Visual Studio 2017 on an ASP.NET MVC application. Driver is ChromeDriver 2.42.01. Everything works, however one of my tests involves clicking a div which is wrapped into an ...
3
votes
1answer
75 views

Can't drag and drop from source to target using selenium and python

I am trying to drag and drop using Python and Selenium. I have two containers with rows which indicate file names and by drag and drop, I want to transfer one file from the first container to the ...
0
votes
2answers
91 views

How to wait for JavaScript scroll action to finish in selenium?

I've come across an interesting problem while automating our web application using selenium webdriver. I'm waiting for page load and all the ajax call to finish but the application use JavaScript ...
0
votes
2answers
128 views

Can I automate multiple isolated chrome instances with Selenium ChromeDriver

I'm using Selenium ChromeDriver in c# and am trying to launch multiple browser runs in parallel. I can launch them in parallel alright but noted that they are running on multiple tabs in one browser....
1
vote
1answer
42 views

Selenium Webdrive object retains page source from previous page (of CRM). But page url is current

I am writing automation scripts for Dynamics 365 using Selenium Webdriver with C#. All is good till I login and visit first page (a list). Test script clicks on one item in first page and page ...
1
vote
2answers
103 views

Drag and Drop does not work with headless chromedriver

I am automating drag and drop using Selenium and Java. Following is the code used for performing drag and drop using chrome driver in headless mode. Point classname = targetElement.getLocation(); int ...
0
votes
1answer
4k views

ElementNotVisibleException: Message: element not visible Selenium in Python

I'm trying to click an options from a website dropdown menu but I am not able to click. I am using "xpath" locators for the element and I upgraded my chrome to the latest version for chromedriver. ...
0
votes
2answers
84 views

Need the same set of chrome extensions on browser page running under webdriver

When I run atomated tests with WebDriver using Chrome browser there is only one extension displayed on the page chrome://extensions/ - Chrome Automation Extension: But there some more extensions ...
1
vote
2answers
43 views

Rendering differences

A company I work for wants to do cross browser testing. Are there any differences between rendering on Chrome for Linux and Chrome for Windows? Should I test both or one is just enough as UI elements ...
1
vote
1answer
71 views

Error running selenium test on ubuntu

I'm having trouble running a selenium test on ubuntu, but everything works fine on my windows system. I'm using a mocha test suite, and am using selenium-webdriver to run the selenium test written in ...
0
votes
1answer
399 views

Screenshot with Katalon and Chrome headless mode

Copying/reposting from stackoverflow: https://stackoverflow.com/questions/51168671/screenshot-with-katalon-and-chrome-headless-mode. I'm using the following code to take screenshots of warning and ...
1
vote
1answer
186 views

How do I remove unnecessary console message pop up using selenium with Python?

When I used Chromedriver with selenium in python, I get a lot of console messages that are not useful to me and that don't affect my scraper. How do I not output these? I do not have this issue when I ...
0
votes
0answers
83 views

Selenium chromedriver timeout on get_element

I am running a crawler and I keep getting random timeout errors during get_element or element.text calls. Why would this happen? It's especially confusing when a .text call times out after the page ...
1
vote
1answer
133 views

Coded UI automation not working in Chrome

I have installed the following: Visual Studio 2017 Chrome Browser - Version 67.0.3396.99 (Official Build) (64-bit) Chrome Driver- 2.40 While running a coded UI automation in Visual Studios, I am ...
1
vote
0answers
130 views

how to interact the video in java selenium

I have a test case with video. Test Case scenario: There I want to check whether the link in the website and when we clicked that link played video link are same. [![Highlighted is linked to video][...
2
votes
3answers
2k views

How to handle a ReCAPTCHA picture?

How To Write Code in Selenium To Click This Picture , Down I Have Attached My Selenium Code. package Login; import java.io.File; import java.io.IOException; import org.apache.poi....
0
votes
2answers
259 views

Chrome Driver crashes on send_keys

I am a Windows 10 Python user. I use the most recent Python version from JetBrain (PyCharm) Until recently my code had no problem with the webdriver.send_keys command. I have recently tried to use ...
0
votes
1answer
190 views

Error while executing javascript code in python3 while using selenium

I was trying to remove the ad and other pop-up using selenium after opening the webpage. The pop-up is getting removed but the ad is not getting removed. There is some error in executing javascript ...
0
votes
1answer
677 views

How to open browser with extension already enabled

I get the following code to open chromedriver with extension but this extension is disabled, Is there any way that when chrome is launched, it launch with enabled extension - chrome_options = ...
0
votes
2answers
64 views

How to Extend Automated Testing with C#/Selenium-Webdriver/NUnit Testing Past Chrome to Other Browsers?

I inherited a test automation suite that I have built a lot on top of, however I am unclear on how to migrate the current setup to use drivers past the chromedriver. I'd like to also use IE, FF, and ...
0
votes
0answers
649 views

C# Selenium ChromeDriver throwing no such window: target window already closed

Spuriously, and irregularly it would seem, I am getting this exception when trying to locate an element on a page: OpenQA.Selenium.NoSuchWindowException : no such window: target window already closed ...
0
votes
0answers
19 views

How to locate item from list that is placed on (chromecast) popup?

Scenario that I want to automate: 1 Play video > ChromeCast button is shown on video 2 Select Chromecast button on it > Chromecast modal is shown with list of available devices 3 Select one (aimed) ...
2
votes
1answer
146 views

Selenium randomly hangs on getPageSource()

I have this part of code: try { Document doc=Jsoup.parse(broswer.getPageSource(),broswer.getCurrentUrl()); return doc; } catch (Exception ex) { event.log("Error while creating ...
0
votes
1answer
163 views

Can websites block selenium sendKeys() function?

I've been using selenium to autofill credit card information for certain websites. I use ChromeDriver and it had been working fine, but yesterday it seems like the website I had been using blocked ...
0
votes
1answer
1k views

How to get Embed link from Openload API after Remote upload? Selenium & Python

im trying to use Openloads API in python, i can do a remote upload like this: ol_url = driver.current_url resp = ol.remote_upload(ol_url) file_id = resp.get('id') Now i have a file uploaded in ...
-1
votes
2answers
642 views

How can I copy and paste part of a split URL using Selenium and Python

I have split URL, and I need to copy and paste a part of that split URL. It gives me an error when I use send_keys method: url_parts[4].send_keys(Keys.CONTROL, 'c') AttributeError: 'str' object has ...
1
vote
0answers
536 views

Selenium Chrome Driver: How to Load all the Frames and get the Complete Page Source?

I'm developing an web application that monitor changes in other websites. I came across some of the websites and that contain load of Frame set and Frames. I'm using the below code: var ...
1
vote
1answer
1k views

How to open two separate tabs in same google chrome window using webdriver and java?

I want to open two tabs in same window of google Chrome.I know this is common question. But none of the answers in them helped me to get this done. I'm using Chrome driver and java for it. I have ...
0
votes
1answer
570 views

Selenium with Chrome mobile emulator- can't make interactions

I'm starting to get frustrated with Chrome emulator: Using JAVA + Selenium + TestNG I'm testing many of our web applications which runs on few browsers. On mobile browser we have a special design - ...
0
votes
1answer
1k views

Selenium + ChromeDriver + Headless Chrome - failed to wait for extension background page to load

I am using Selenium 3.10.0 + ChromeDriver 2.37.543619 + Google Chrome 65.0.3325.162 I have a browser extension that I need when testing: Browser extension I am running this code: ChromeDriver ...
0
votes
1answer
39 views

Need to work on Chrome and IE concurrently in Selenium; Any possible workaround?

I have two applications - App A works in Chrome and App B does work only in IE. I have to fill a form in app A and validate the data that i have entered in App B. This entire process is part of the ...
0
votes
0answers
834 views

Unable to create new service - Selenium + Jenkins

I have an error in my Jenkins + Selenium integration, the Selenium Grid Version is 3.7.1 (Installed by default for the Jenkins Selenium Plugin). I'm using the last chromedriver version. When I run my ...
5
votes
2answers
2k views

Chrome argument “--disable-infobars” does not work with Chrome 65

When I start Chrome by Chromedriver with Selenium, Infobar is not hiddened. Because chrome has updated version 65.x.x.x. Here is my code: [VB.NET] Dim driverService = ChromeDriverService....
0
votes
0answers
62 views

getComputedStyle returns different background color for pseudo elements

I have a pseudo-element in dom that has a css property background-color of rgb(23,171,111) Now, when I try to get the CSS property using window.getComputedStyle function, I get a different color rgb(...
0
votes
1answer
173 views

How can I use Chrome WebDriver in another language [duplicate]

I want to be able to test with different languages. How can I do that with chromedriver ?
4
votes
2answers
178 views

Force a browser's visibility setting to true

I'm trying to set up some specs against a real (not headless) browser but some of the javascript on the target page only runs if the browser is visible (it doesn't need to be the active app). I've ...
0
votes
0answers
1k views

Unable to focus the element : send_keys in Selenium Python

I am trying to enter data into a cell in table but none of the methods are working. Please help out on this issue : below image shows my code and the error pertaining to it!!!
0
votes
1answer
2k views

How to Launch multiple Chrome Browsers in Parallel using TestNG

I need to automate the two Web applications in parallel and that needs to validate in Chrome browsers. So I have two testng XML files(testng1.xml and testng2.xml), my scenario is to launch one ...
1
vote
0answers
677 views

Fixing mojom error after Chrome update

I wish there was some way to intercept new Chrome(driver) errors in SeleniumWebdriver before they hit my tests. The latest I have found is this one. Anyone have a fix? DevTools listening on ws://127....
1
vote
1answer
2k views

How to set socks5 proxy for Selenium ChromeDriver C# or Java? [closed]

I am trying to setup a socks5 proxy in ChromeDriver. I have used the below code for setting that up in C#: var options = new ChromeOptions(); var proxy = new Proxy() { Kind=ProxyKind.Manual,...
5
votes
1answer
229 views

Selenium downloads tmp file instead of CSV file

When I download a CSV file from a blob URL, the downloaded file always has a ".tmp" extension and wrong file name. When downloading the same file manually, the file extension and file name both are ...
0
votes
2answers
384 views

Open Browsers using Selenium WebDriver

I need to run my test case through chrome,Firefox and IE browsers in same time so how can i open two or more browsers using one single instance of Webdiver? Thanks.
2
votes
1answer
626 views

How can run selenium script in chrome browser using intelliJ IDEA 2017.2.4

I have created simple TestNG file with simple code to open chrome browser in IntelliJ IDEA but its throwing below error, please help me. My code: public class Sample{ @Test (priority = 0) ...
1
vote
1answer
83 views

URL address is Strikethrough when running Selenium Webdriver

I am running automation test on local url, after some time (happening randomly) url is strike-through for unknown reason and due to that , the site keeps on loading and test fails. using these ...
3
votes
2answers
217 views

How do I configure my env.rb file to be able to switch browsers?

Currently, here is part of my configuration with testing using Chrome: prefs = { 'download' => { 'default_directory' => "#{$myRoot}/PDF", 'prompt_for_download' => ...
3
votes
0answers
1k views

Headless Chrome with Docker Compose

I'm currently trying to setup headless chrome testing with Capybara in my docker-compose file. However, I keep getting that chromedriver has failed to start because it had crashed. Selenium::...
0
votes
0answers
211 views

How to switch to chrome extension from chrome window if it's not a frame and launching extension as .crx

We have a chrome extension it was previously a frame and I have written a code to switch to frame now they have modified and removed it as frame, I have used .crx to load the extension and switch to ...
0
votes
1answer
9k views

UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure

I am trying to launch Chrome browser with cucumber script and getting: I'm Using Cucumber Selenium Script Selenium - 2.53.1 [31mFailure in before hook:[0m[31mLoginWorkFlow_StepDefinition....