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 ...

0
votes
1answer
22 views

How to move element in svg using selenium?

This is HTML code before having the element in svg. After that, I pull a new element from the sidebar into svg and HTML code like that So I want to move a new element to new position in svg. Example:...
0
votes
0answers
23 views

Selenium Loss of Internet Exception Handling in Chromedriver

I want my code to be able to handle circumstances when the internet goes down for a period. Currently I'm doing it using a try/except clause with a TimeoutException but that isn't working as Chrome ...
0
votes
0answers
21 views

Unable to select fields in Selenium/Python 3.7

I know how ridiculous this sounds, as this isn't my first time automating anything, but for some reason I'm having a hard time here. The issue is just on this site and with Chrome. This works in ...
0
votes
0answers
25 views

How to set default download directory in application.properties file using QAF Automation framework?

I tried to configure chrome capabilities in application.properties file using QAF Automation framework. I followed the documentation on this page - https://qmetry.github.io/qaf/latest/...
0
votes
0answers
41 views

Chrome not reachable on Jenkins

I have a Jenkins master - slave configured on Linux ec2 instance for automation test execution. The three slave instances were created by cloning the master instance. The configurations are as follows:...
0
votes
0answers
21 views

Can anyone suggest the jwplayer functions for all elements of video player. Code does't show any error but player is not going fullscreen?

JavascriptExecutor jse = (JavascriptExecutor) driver; //Click on fullscreen button jse.executeScript("jwplayer().getFullscreen(true);"); Thread.sleep(3000); //when ...
0
votes
1answer
43 views

Why chromedriver is not recognized when an environment variable is created in windows 10?

I created a testing project and set an environment variable. Then run the project and it could not find the chromedriver. Then I set a path inside the project to the chromedriver. It worked. ...
1
vote
1answer
65 views

Getting different results using selenium and iFrames on Firefox 63, Chrome 69 and Chrome 70

I wrote a test using Katalon Studio 5.8.0. My application under test contains a iFrame. Fortunately, both the iFrame and its children are identified using unique attributes. So, the following code ...
1
vote
1answer
50 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....
1
vote
1answer
81 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
22 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
334 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
484 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
479 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
96 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
204 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
95 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
48 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
129 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
634 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
457 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
171 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
163 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
168 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
381 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
332 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
1k 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
74 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
798 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
26 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
254 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
254 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
2k 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
790 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
591 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
2k 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
690 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
2k 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
42 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
1answer
1k 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
81 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
216 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
213 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
2k 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!!!
1
vote
1answer
3k 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
693 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
3k 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,...