Skip to content

Commit 4e3cdc2

Browse files
committed
Fixed "is not clickable" error
1 parent 2af378f commit 4e3cdc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def setup(self, username, password, panel):
7171
self.driver.find_element_by_id("username-real").send_keys(username)
7272
self.driver.find_element_by_id("pass-real").send_keys(password)
7373
# Login
74-
WebDriverWait(self.driver, self.timeout/2).until(expected_conditions.element_to_be_clickable((By.CLASS_NAME, "button-login"))).click()
74+
force_click(WebDriverWait(self.driver, self.timeout/2).until(expected_conditions.element_to_be_clickable((By.CLASS_NAME, "button-login"))))
7575

7676
# Clicking on the button of the "YOUR ACCOUNT IS APPROVED!"
7777
try:

0 commit comments

Comments
 (0)