Update app.py
Browse files
app.py
CHANGED
@@ -40,11 +40,13 @@ def selenium(message):
|
|
40 |
#<ol class="AmbQnf">
|
41 |
wd.get(url)
|
42 |
time.sleep(3)
|
|
|
|
|
43 |
#wait = WebDriverWait(wd, 15) # Korrektur der Instanziierung
|
44 |
#textarea = wait.until(EC.visibility_of_element_located((By.ID, "userInput"))) # Korrektur der Verwendung von EC
|
45 |
-
text_input = WebDriverWait(wd, 25).until(
|
46 |
-
EC.presence_of_element_located((By.ID, 'chat-input'))
|
47 |
-
)
|
48 |
#textarea = wd.find_element(By.XPATH, "/html/body/div/main/div[3]/div[2]/div/div[2]/div/div/div[3]/div[2]/div[1]/div/div/div/div/textarea")
|
49 |
#textarea = wd.find_element(By.XPATH, "/html/body/div[1]/div[2]/main/div[1]/div[2]/div/div[1]/div/form/div/div[2]/div/div/div[1]/div[1]/div/textarea")
|
50 |
text_input.send_keys(f"{message}")
|
|
|
40 |
#<ol class="AmbQnf">
|
41 |
wd.get(url)
|
42 |
time.sleep(3)
|
43 |
+
text_input = wd.find_element(By.ID, "chat-input")
|
44 |
+
time.sleep(5)
|
45 |
#wait = WebDriverWait(wd, 15) # Korrektur der Instanziierung
|
46 |
#textarea = wait.until(EC.visibility_of_element_located((By.ID, "userInput"))) # Korrektur der Verwendung von EC
|
47 |
+
#text_input = WebDriverWait(wd, 25).until(
|
48 |
+
#EC.presence_of_element_located((By.ID, 'chat-input'))
|
49 |
+
#)
|
50 |
#textarea = wd.find_element(By.XPATH, "/html/body/div/main/div[3]/div[2]/div/div[2]/div/div/div[3]/div[2]/div[1]/div/div/div/div/textarea")
|
51 |
#textarea = wd.find_element(By.XPATH, "/html/body/div[1]/div[2]/main/div[1]/div[2]/div/div[1]/div/form/div/div[2]/div/div/div[1]/div[1]/div/textarea")
|
52 |
text_input.send_keys(f"{message}")
|