Guest User

Untitled

a guest
Feb 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. from selenium import webdriver
  2.  
  3.  
  4. class Driver:
  5.  
  6. def __init__(self):
  7. self.instance = webdriver.Chrome()
  8.  
  9. def navigate(self, url):
  10. if isinstance(url, str):
  11. self.instance.get(url)
  12. else:
  13. raise TypeError("URL must be a string.")
Add Comment
Please, Sign In to add comment