[Tutor] cannot find html file, in the same dir as python file

monikajg at netzero.net monikajg at netzero.net
Mon Sep 5 16:59:24 EDT 2016


Hi:
Im trying to learn Selenium with python. I have a html file button.html in the same directory as python file. I have the htnl file on my PC since my html file is much simpler for me to learn from than regular html files on the web. The blow code works with web html files but cannot find my button.html file on my PC. Why?

        chromedriver = "resources/chromedriver"
        os.environ["webdriver.chrome.driver"] = chromedriver
        self.driver = webdriver.Chrome(chromedriver)
        base_url = 'button.html'
        self.driver.get(base_url)

FileNotFoundError: [WinError 2] The system cannot find the file specified
Even though this is in Selenium this is a python question. I think.
Thank you very much
Monika
____________________________________________________________
Daily News (Sponsored by Content.Ad)
How Does This Delhi Student Makes Up to Rs 15000 Per Day?
http://thirdpartyoffers.netzero.net/TGL3241/57cddcf17f4b25cf11e5fst02duc


More information about the Tutor mailing list