[Selenium]how to run your test in Chrome
1. Download following driver
3. Load your driver in your code.
I want to open Chrome browser so I set the path up in my code.
from selenium import webdriver
url="C:\\Programs\\Python36\\BrowersDriver\\chromedriver.exe"
driver=webdriver.Chrome(url)
driver.get("http://www.yahoo.com")
driver.close()
driver.quit()
No comments:
Post a Comment