Python Forum

Full Version: Selenium Web Driver Exe not running in other PC's
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I have done some web application based automation using selenium with IE webdriver. It's working fine in my PC.
I have defined Webdriver path in my code only. Exe using pyinstaller is also working fine in my PC But when i am trying to run that exe in other PC,it's giving error. ("NO MODULE NAME SELENIUM").
I understood error for my first line of the code,where i am importing selenium. (*from selenium import webdriver*)-Considering Webdriver as unknown.
Any help how can i create one exe file using selenium, which interact the webdriver path by itself & run other PC's too?

Thanks in advance.
selenium needs to be installed, and also requires either chromedriver for chrome, or gekodriver for firefox.
These will have to be installed on the target PC.
selenium can be installed with pip:
pip install selenium
chromedriver can be downloaded here: http://chromedriver.chromium.org/downloads
and gekodriver here: https://github.com/mozilla/geckodriver/r...ag/v0.24.0

the driver must be made viable in the path, or location specified in selenium, see: https://python-forum.io/Thread-Web-scraping-part-2
(Feb-28-2019, 03:31 PM)Utkarsh29 Wrote: [ -> ]Exe using pyinstaller is also working fine in my PC But when i am trying to run that exe in other PC,it's giving error. ("NO MODULE NAME SELENIUM").
Look at this post