Skip to content

Commit

Permalink
Critical fixes to last commit, now beta
Browse files Browse the repository at this point in the history
  • Loading branch information
thelabcat committed May 10, 2024
1 parent 08dd046 commit cea8675
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/rumchat_actor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init__(self, stream_id = None, init_message = "Hello, Rumble world!", prof
if username and password:
sign_in_buttn.click()
WebDriverWait(self.browser, BROWSER_WAIT_TIMEOUT).until(
EC.visibility_of_element_located(By.ID, "login-username"),
EC.visibility_of_element_located((By.ID, "login-username")),
"Timed out waiting for sign-in dialouge"
)

Expand All @@ -208,14 +208,10 @@ def __init__(self, stream_id = None, init_message = "Hello, Rumble world!", prof

#Wait for signed in loading to complete
WebDriverWait(self.browser, BROWSER_WAIT_TIMEOUT).until(
EC.invisibility_of_element(uname_field),
"Timeout waiting for username field to disappear"
EC.element_to_be_clickable((By.ID, "chat-message-text-input")),
"Timed out waiting for chat message field to become usable"
)

WebDriverWait(self.browser, BROWSER_WAIT_TIMEOUT).until(
EC.visibility_of_element_located(By.ID, "chat-message-text-input"),
"Timed out waiting for chat message field to appear"
)

#Find our username
if username:
Expand Down

0 comments on commit cea8675

Please sign in to comment.