The r trick did it. Yay!
Thank you
Monika
-- Original Message --
From: Alan Gauld
To: "monik...@netzero.net"
Cc: tutor@python.org
Subject: Re: [Tutor] cannot find html file, in the same dir as python file
Date: Tue, 6 Sep 2016 08:43:03 +0100
On 06/09/16 03
On 06/09/16 03:18, monik...@netzero.net wrote:
> I put
>
> print( os.getcwd() )
>
> into my script, and got
>
> C:\Users\Monika\Documents\PythonWeb\class3code\class3code
Is that the directory you expected? Is it where your html file lives?
> So I put into my script:
>
> base_url =
> 'C:\Users\
got a popup message in python:
(unicode error) 'unicodesscape' codec can't decode bytes in position 2-3;
truncated \Uescape
- Original Message --
From: Alan Gauld via Tutor
To: tutor@python.org
Subject: Re: [Tutor] cannot find html file, in the same
On 05/09/16 21:59, monik...@netzero.net wrote:
> chromedriver = "resources/chromedriver"
> os.environ["webdriver.chrome.driver"] = chromedriver
> self.driver = webdriver.Chrome(chromedriver)
> base_url = 'button.html'
> self.driver.get(base_url)
>
> FileNot
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 b