Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,11 @@ def take_screenshot(url):
|
|
12 |
#options.add_argument('--disable-dev-shm-usage')
|
13 |
wd = webdriver.Chrome(options=options)
|
14 |
wd.get(url)
|
|
|
15 |
wd.implicitly_wait(7)
|
|
|
|
|
16 |
element=wd.find_element(By.TAG_NAME, "body")
|
17 |
-
|
18 |
return element.text
|
19 |
|
20 |
iface = gr.Interface(
|
|
|
12 |
#options.add_argument('--disable-dev-shm-usage')
|
13 |
wd = webdriver.Chrome(options=options)
|
14 |
wd.get(url)
|
15 |
+
|
16 |
wd.implicitly_wait(7)
|
17 |
+
#element=wd.find_element(By.TAG_NAME, "body")
|
18 |
+
button_send = driver.find_element(By.ID, "L2AGLb").click()
|
19 |
element=wd.find_element(By.TAG_NAME, "body")
|
|
|
20 |
return element.text
|
21 |
|
22 |
iface = gr.Interface(
|