Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- class Driver:
- def __init__(self):
- self.instance = webdriver.Chrome()
- def navigate(self, url):
- if isinstance(url, str):
- self.instance.get(url)
- else:
- raise TypeError("URL must be a string.")
Add Comment
Please, Sign In to add comment