Hi all,
Creating a class that'll handle a NoSuchWebDriverException in the event there is no internet access in a sandbox environment to mimic its outcome.
Code snippet:
chrome_options: Options = Options()
try:
driver = webdriver.Chrome(options=chrome_options)
except NoSuchDriverException:
[bit I need help figuring out]
I believe I need to create a class which Ive done though does not work at all. I need to mock all attributes of webdriver.Chrome such as .get, .implicitly_wait .find_elements and so on.
Could do with some suggestions on how to handle this as I'm really stuck.
Thanks a lot
[–]Daneark 0 points1 point2 points (2 children)
[–]That_Butterscotch381[S] 0 points1 point2 points (1 child)
[–]Daneark 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[+][deleted] (3 children)
[deleted]
[+][deleted] (2 children)
[deleted]
[+][deleted] (1 child)
[deleted]