Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,6 +139,8 @@ def convert_endpoint():
|
|
| 139 |
|
| 140 |
# Locate the specific element we want to capture
|
| 141 |
element = page.locator("#output-wrapper")
|
|
|
|
|
|
|
| 142 |
#element = page.locator("")
|
| 143 |
|
| 144 |
# Take a screenshot of just that element
|
|
|
|
| 139 |
|
| 140 |
# Locate the specific element we want to capture
|
| 141 |
element = page.locator("#output-wrapper")
|
| 142 |
+
element.scroll_into_view_if_needed()
|
| 143 |
+
|
| 144 |
#element = page.locator("")
|
| 145 |
|
| 146 |
# Take a screenshot of just that element
|