Questions tagged [chrome-web-driver]

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 a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.

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 a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.

213 questions
1
vote
0 answers

Cant run testing script. PyCharm Selenium Python Testing

I can run the script for autotesting. Here is the script from selenium import webdriver PATH = "Z:\PyProjects\venv\Scripts\chromedriver.exe" driver = webdriver.Chrome(PATH) driver.get("https://google.com/") And this is the error I am getting…
Dias Zhumagaliyev
  • 351
  • 1
  • 2
  • 7
1
vote
2 answers

Can we find xpath of a text in selenium python

Consider following table in webpage I want to know which are all companies are from country UK. So i have input as UK Can i find the xpath of this 'UK' by selenium python so that i can modify that xpath to get related output. Is this possible,…
1
vote
1 answer

disable console messages on chrome webdriver python selenium

I'm using chrome webdriver with selenium and python. I get this console messages on command terminal. Also, the html file is located on my machine: file:///D:/serp/5e577f17e0d7ae57db776c0b/dumps/1.html Here's the chrome options: chrome_options =…
Azima
  • 3,835
  • 15
  • 49
  • 95
1
vote
0 answers

“Google Colaboratory” does not load a Chrome web driver in selenium automation?

So far I have written the code in Google Colab like this but It just doesn't load the chrome web driver and open a chrome browser. !apt-get update !apt install chromium-chromedriver !cp /usr/lib/chromium-browser/chromedriver /usr/bin !pip install…
1
vote
2 answers

Variable from a for loop not showing in another loop

I've been practicing webscraping with the nba.com playerlist, but I've ran into a problem where a link that I scraped in one for loop does not appear when I call on it in another for loop. I have already tried to make more variables in both the…
bpat123
  • 11
  • 1
1
vote
1 answer

How to use selenium to start a specified chrome browser

First, I have a chrome browser v75(this is the one I use every day). And I download an old version(v61.0) with which I want to deploy selenium crawler. But the question is each time when I try to run this crawler. It always executes the v75 version…
1
vote
1 answer

Python Selenium Webdriver: Unable to fetch data for all hidden elements using "textContent"

I want to scrape data from Netflix to get the following information: 1.Show Name 2.Season 3.Episode Name for each of the season 4.URL for each of the episode 5.Duration for each of the show. Selenium version: 3.141.0 Python version: 3.6.6, using…
1
vote
1 answer

Chrome browser crashed after a file download opens in a new tab while running a selenium script

When the selenium script clicks on a link ,it opens a new tab which downloads a excel file, then chrome browser crashes/closes and subsequent steps fails. The same test script runs fine in firefox browser. There is no stack trace/log as what caused…
shebeok
  • 21
  • 1
  • 3
1
vote
3 answers

Cucumber fails during @before hook : NoClassDefFoundError

Automation framework won't proceed in executing steps at .feature file after Chrome browser was opened (then just closes after) GenericStepImplementation.java Codes @Before public void setUp() throws ConfigurationException,…
1
vote
1 answer

Chrome browser is not launching after run of the code. What is the problem?

After running this code the Chrome browser does not lunch. I'm using Chrome browser v.71.0.3578.98 (official build), (32 bit) and the chrome driver version 2.42 public class MainClass { public static void main (String [] args ) { …
1
vote
1 answer

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

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…
Gary
  • 1,086
  • 2
  • 13
  • 39
1
vote
0 answers

Chrome auto-login extension does not bypass basic authentication when added via selenium

I have some code which initializes a selenium webdriver and opens a chrome page to my router. The router requires basic http authentication which selenium doesn't support. I have managed to discover a way to bypass this authentication with the use…
Asheh
  • 1,547
  • 16
  • 25
1
vote
1 answer

How to make inspect window active using selenium python?

I am trying to automate a plugin in chrome browser. It requires opening an inspect window and perform operation on inspect window. I am able to open inspect window using robot class and navigate among inspect GUI elements but cannot do HTML DOM…
sunil shrestha
  • 27
  • 3
  • 11
1
vote
2 answers

webdriver.Chrome() is not working

I am trying to use Selenium with Python 3. I installed Selenium and Chrome Webdriver. Pip was pre-installed with Python 3. However, i am getting this error message. I literally started learning this language yesterday, so please be kind if the error…
user9135060
1
vote
2 answers

String Variable with Find Element Commands Java

Hello all the following codes works here it is. String content = FileUtils.readFileToString(new File("C:\\PayrollSync\\prepayroll.txt")); String [] Arrayclients = content.split("\n"); // begin for loop for(String client :…
Jonathan
  • 395
  • 2
  • 8
  • 25