Skip to content

Commit

Permalink
Update an example test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Jul 26, 2023
1 parent ef8bf26 commit 3fe79ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/verify_undetected.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ def fail_me(self):
self.fail('Selenium was detected! Try using: "pytest --uc"')

def test_browser_is_undetected(self):
if not (self.undetectable):
self.get_new_driver(undetectable=True)
self.open("https://nowsecure.nl/#relax")
try:
self.verify_success()
except Exception:
self.clear_all_cookies()
self.get_new_driver(devtools=True)
self.get_new_driver()
self.open("https://nowsecure.nl/#relax")
try:
self.verify_success()
Expand Down

0 comments on commit 3fe79ca

Please sign in to comment.