Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97778

Chrome open then immediately quits after running Selenium test with python

$
0
0

Chrome open then immediately quits after running Selenium test with python. any suggestions? I have searched all over but nothing helps.

from selenium import webdriver
import os

class AutoAlef():
    def test (self):
        driver_location = 'D:\\chromedriver.exe'
        os.environ["webdriver.chrome.driver"] = driver_location
        driver = webdriver.Chrome(driver_location)
        driver.get("http://www.google.com/")

ChromeTest = AutoAlef()
ChromeTest.test()

Viewing all articles
Browse latest Browse all 97778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>