Emre Bayram
Emre Bayram

Reputation: 148

How can I test locally saved web page with selenium?

I have saved a web page to local file system. How can I use selenium on it without starting any web server?

Upvotes: 0

Views: 442

Answers (1)

Yusuf Ziya
Yusuf Ziya

Reputation: 107

Provide the Location of Your Local File as the Address

As a example:

from selenium import webdriver
driver = webdriver.Chrome()
driver.get("file:///C:/Users/User/Desktop/index.html")

Upvotes: 2

Related Questions