Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can not point to Selenium Webdriver path for Python Jupyter Notebook on Azure
I am running Python Jupyter notebooks on in browser (can't install anything on my office laptop, and this has been a salvation), but for Selenium framework, I am unable to make WebDriver work - the error message:

WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see

Also, uploading the chromedriver.exe file to library and directly pointing to it did not help either.

driver = webdriver.Chrome('/home/nbuser/library/chromedriver.exe')

Any suggestions for a solution?

chromedriver.exe need to be in Environment Variables Path or in same folder as you run script from.
A basic setup,so i have cmder bin folder set in Path:
from selenium import webdriver
from import Options
from selenium.webdriver.common.keys import Keys
import time

#--| Setup
chrome_options = Options()
browser = webdriver.Chrome(executable_path=r'C:\cmder\bin\chromedriver.exe')
#--| Parse or automation
input_field = browser.find_elements_by_css_selector('#search_form_input_homepage')
input_field[0].send_keys('car' + Keys.RETURN)
images_link = browser.find_elements_by_link_text('Images') # Or name your country use
More setup here
@snipstat, thank you for your detailed answer, but as I mentioned, I am unable to install anything on my office laptop, therefore using Jupyter Notebooks on Azure. But adding the chromedriver.exe to my user library folder and pointing the path to it driver = webdriver.Chrome('/home/nbuser/library/chromedriver.exe'), it still did not work.
So, the question is: is it possible to run Selenium for Python on Jupyter Notebooks on Microsoft Azure and where do I store the chromedriver.exe?

Thanks once again!

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  find a hyperlink in Gmail body python 3(imap and selenium) taomihiranga 0 55 Mar-13-2019, 04:16 PM
Last Post: taomihiranga
  Looping actions in an iframe using Selenium on Python amyd 3 97 Mar-06-2019, 08:31 PM
Last Post: Larz60+
  Selenium Webdriver Memory Problem? satbir129 2 113 Mar-01-2019, 04:17 AM
Last Post: satbir129
  webdriver.remote to connect back existing browser without open new browser? gahhon 6 139 Feb-26-2019, 03:53 PM
Last Post: gahhon
  Selenium Webdriver Automate gahhon 1 111 Feb-19-2019, 04:59 PM
Last Post: metulburr
  How can get url from JavaScript in Selenium (Python 3)? m0ntecr1st0 3 266 Feb-19-2019, 12:35 AM
Last Post: m0ntecr1st0
  Beautiful soup won't find value even with CSS path copied. AdequatelyChilled 4 220 Jan-01-2019, 12:12 PM
Last Post: snippsat
  Python Selenium getting table element trengan 2 233 Dec-31-2018, 03:02 PM
Last Post: trengan
  Click Element if displayed using Selenium and Python giaco__mar 1 228 Dec-27-2018, 06:19 PM
Last Post: metulburr
  Web Page not opening while web scraping through python selenium sumandas89 4 587 Nov-19-2018, 02:47 PM
Last Post: snippsat

Forum Jump:

Users browsing this thread: 1 Guest(s)