Skip to content

Commit 0cb4193

Browse files
committed
Update the github_test
1 parent 0c54d09 commit 0cb4193

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/github_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
from seleniumbase import BaseCase
2-
import time
32

43

54
class GitHubTests(BaseCase):
65

76
# Selenium can trigger GitHub's abuse detection mechanism:
87
# "You have triggered an abuse detection mechanism."
98
# "Please wait a few minutes before you try again."
10-
# To avoid this, slow down Selenium actions.
11-
def slow_click(self, css_selector):
12-
time.sleep(1.05)
13-
self.click(css_selector)
9+
# To avoid this, slow_click() is being used to
10+
# slow down Selenium actions.
1411

1512
def test_github(self):
1613
self.open("https://github.com/")

0 commit comments

Comments
 (0)