broadfield-dev commited on
Commit
04b791b
·
verified ·
1 Parent(s): 3069015

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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