Image CAPTCHA
Enter the characters shown in the image.

You are here

Python not activating Selenium

2 posts / 0 new
Last post
Jonathan
Jonathan's picture
Python not activating Selenium

I have a Selenium issue working on Python, I have a python application that will not open my chromedriver, that functions perfectly okay when I open it in a Java application, so it is not ChromeDriver itself , but the configuration of Python. Can anyone out there help? Thanks,

Cool

SiteAdmin
SiteAdmin's picture
Few Comments from LinkedIn

When trying to replicate in python a selenium program that was written in Java, and running it with Python the program the Chrome Driver opens a window an immediately crashes popping up a error window stating "chromedriver.exe has stopped working", but it does not happen when run in Java. Program executes and terminates normally. 

Here are few ideas to solve the issue:

  1. Verify the following configurations:
    1. driver=webdriver.Chrome()
    2. driver.maximize_window()
    3. driver.implicitly_wait(30)
    4. driver.set_page_load_timeout(120)
    5. driver.set_script_timeout(30)
    6. have ChromeDriver binary present in your PATH variable
  2. verify browser - driver version for incompatibility (use the latest versions of both),
  3. URL issues (that might be mitigated using raw strings),
  4. OS related issues (chromedriver has a history of crashing on Windows when running large test suites but that does not seem to relate to your problem),
  5. Resource issues (like missing files), Python-version driver issues with PATH (even if correctly set)
  6. If you are using Webdriver 3.x version, problems might be more frequent just because it's so new and Python bindings for Webdriver may have poorer support than, say, Java or Ruby bindings. When your Webdriver script in Python crashes, the traceback may provide useful insights into what might have gone wrong,
  7. Check the logfile.
  8. Running command line python in a Windows 64bit environment, might use python IDE
  9. Make sure python version and selenium-webdriver python package compatibility
  10. Verify you have the correct chrome driver for your OS.
  11. Verify that you have added the chrome driver on your PATH. 
  12. Add chromedriver.exe file in your windows folder :"C:\Windows\System32"

 

Log in or register to post comments

MANUFACTURERS Wallboard

Testing tool manufacturers world-wide list
10Levels ABID CONSULTING AccelQ Accord Software ActiMind AdaCore
AdaLog AgileLoad AgileWay Agitar Algorismi ALL4TEC
Andreas Kleffel Android Apache Apica Apollo Systems AppAssist.mobi
Applitools AppPerfect Appsee ApTest Assertible Assure
Atlassian AutoIt Consulti .. Automation Anyw .. Automation Cons .. Axosoft Aztaz Software
Backtrace I/O Badboy BlazeMeter Borvid BrowserStack BSQUARE
BStriker Intern .. CA Technologies Canonical Canoo Engineeri .. Catch Software CelestialTeapot
Chris Mallett Cleanscape ClicTest CloudQA Codeborne CodeCentrix
CodePlex projec .. Codoid Cogitek Compuware Configure IT Conflair
ConSol Core Services Coronys Ltd Countersoft CresTech Softwa .. CrossBrowserTes ..
Crosscheck Netw .. Crowdsourced Te .. Cucumber Ltd Cyara Cygnet Infotech DareBoost
Databene Datamatics Glob .. DevExpress DTM soft Dynatrace LLC EasyQA
Eclipse EkaTechserv Elvior Emmanuel Jorge Empirix EPAM Systems
Equafy Esterel Technol .. eXept Software .. Experitest Finaris Froglogic
FrontEndART Ltd GeneXus GitHub project gnoso Google Code Pro .. GrammaTech
Gurock Software HelpSystems HENIX Hewlett Packard .. Hexawise High-Tech Bridg ..
Hiptest Hitex IBM Rational imbus Shanghai Impetus Inflectra
informUp InTENSO - IT Ex .. Ipswitch Jamo Solutions Janova JAR Technologie ..
JBoss Developer jClarity Jellly.io JetBrains Jively jQuery foundati ..
JS Foundation Jspresso Kanoah KMS Technology Kualitee LDRA Limited
Litmus LoadFocus Loadster Perfor .. MarathonITE Marketcircle Marketcircle
Maveryx Meliora Ltd Micro Focus Sof .. Microsoft Mobile Labs Mobile1st
Mockaroo, LLC Monkop Mozila MSys Technologi .. Navicat NeoTys
Neowise Softwar .. NetCart NORIZZK.COM Novosync Mobili .. NRG Global NTT Resonant
OC Systems Odin Technology OpCord Oracle Orcanos Original Softwa ..
OW2 PANAYA Parasoft PassMark Patterson Consu .. Perfecto Mobile
Pivotal, Inc. Plutora Postman (API To .. PractiTest PrimaTest Process One
Programming Res .. Psoda PureLoad PushToTest Python Q-Assurance
QA Systems QACube QASymphony QAWorks QMetry Quali
Qualitia Softwa .. Quality First S .. Quotium RadView Softwar .. Ranorex RedLine13
Reflective Solu .. ReQtest RevDeBug Robotium Tech Rogue Wave Soft .. Rommana Softwar ..
RTTS ruby-doc.org Runscope Sandklef GNU La .. Sauce Labs Seapine Softwar ..
SeleniumHQ Sencha Sensiple Siemens PLM Sof .. SmartBear Softw .. SmarteSoft
SOASTA SoftLogica Softomotive Softsmith Solution-Soft SonarSource
Sourceforge Spirent Technol .. SQS Software Qu .. Square Stimulus Techno .. Swifting AB
Synopsys T-komp T-Plan TechExcel TechTalk Telerik By Prog ..
Tellurium Test Collab Test Goat Test Recon TestCaseLab testCloud.de Gm ..
TestCraft Techn .. Testenium Testim.io TestingBot TestLodge Testmunk
Testomato TestOptimal TestPlant TestPro Testuff The Core Bankin ..
The MathWorks The Open Group thePHP.cc Thoughtbot Thoughtworks Tigris.org
Time Simulator Top-Q Trace Technolog .. TrendIC TRICENTIS Tritusa Pty Ltd
TWD Solutions P .. TypeMock Tyto Software Ubertesters UniTESK Universal Test ..
Usetrace Ltd Utrecht Univers .. Validata Group Vanamco AG Vector Software Veracode
Verifaya Corpor .. Verit VersionOne Viewlike.us Vornex Inc. Watir.com
WcfStorm Soluti .. We Are Mammoth Web Performance .. Wintask Wireshark Found .. Worksoft
Xceptance XK72 Xpand IT XQual ZAPTEST Zeenyx Software ..
Zephyr Zeta Software zutubi pty

Selenium Youtube Playlist

Theme by Danetsoft and Danang Probo Sayekti