Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,11 @@ def selenium(message):
|
|
40 |
wd.get(url)
|
41 |
wd.implicitly_wait(3)
|
42 |
|
43 |
-
textarea =
|
|
|
|
|
|
|
|
|
44 |
time.sleep(3)
|
45 |
textarea.send_keys(f"{message}")
|
46 |
time.sleep(3)
|
|
|
40 |
wd.get(url)
|
41 |
wd.implicitly_wait(3)
|
42 |
|
43 |
+
textarea = WebDriverWait(driver, 15).until(
|
44 |
+
EC.presence_of_element_located((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"))
|
45 |
+
)
|
46 |
+
|
47 |
+
#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")
|
48 |
time.sleep(3)
|
49 |
textarea.send_keys(f"{message}")
|
50 |
time.sleep(3)
|