1

I wan to reload a html page which I created locally in my computer using python. I have tried using this:

from selenium import webdriver
import time
driver = webdriver.Firefox()
driver.get('C://User/Desktop/total.html')
while True:
    time.sleep(20)
    driver.refresh()
driver.quit()

but it was throwing FileNotFounError. Any idea on how to do it? Thanks.

2
  • Read this answer, might be helpful click here Commented Apr 14, 2019 at 12:48
  • I used the same code but it wasn't working Commented Apr 14, 2019 at 13:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.