1

I am using Python and Selenium and want to test it on a saved website so I don't keep generating a lot of login requests and get locked out. I have:

driver = webdriver.Chrome()
driver.get("WEBSITE URL")

How would this differ with a file location instead?

Thanks!

0

1 Answer 1

1

I have a example.html which resides in a folder in my local machine.

I do this to get it using Selenium :-

driver = webdriver.Chrome(driver_path)
driver.maximize_window()
driver.get("C:\\Users\\****\\OneDrive-abc\\Desktop\\Automation\\example.html")
Sign up to request clarification or add additional context in comments.

Comments

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.