Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def selenium(message):
|
|
43 |
time.sleep(3)
|
44 |
#text_input = wd.find_element(By.XPATH, '/html/body/div[1]/div/div[2]/div[2]/div/div/div[2]/div[2]/div/div/div[1]/textarea')
|
45 |
|
46 |
-
|
47 |
text_input = wait.until(EC.visibility_of_element_located((By.ID, "chat-input"))) # Korrektur der Verwendung von EC
|
48 |
#text_input = WebDriverWait(wd, 25).until(
|
49 |
#EC.presence_of_element_located((By.ID, 'chat-input'))
|
|
|
43 |
time.sleep(3)
|
44 |
#text_input = wd.find_element(By.XPATH, '/html/body/div[1]/div/div[2]/div[2]/div/div/div[2]/div[2]/div/div/div[1]/textarea')
|
45 |
|
46 |
+
wait = WebDriverWait(wd, 25) # Korrektur der Instanziierung
|
47 |
text_input = wait.until(EC.visibility_of_element_located((By.ID, "chat-input"))) # Korrektur der Verwendung von EC
|
48 |
#text_input = WebDriverWait(wd, 25).until(
|
49 |
#EC.presence_of_element_located((By.ID, 'chat-input'))
|