Skip to content

Commit ad317cb

Browse files
committed
testing actions
1 parent 8891aa0 commit ad317cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/take_screenshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def take_screenshot(driver, url, selector, output_name):
3232
element = WebDriverWait(driver, 10).until(
3333
EC.presence_of_element_located((By.CSS_SELECTOR, selector))
3434
)
35-
temp_output = output_name
36-
element.screenshot(temp_output)
35+
element.screenshot(output_name)
3736
# crop_image(temp_output, output_name)
3837

3938

4039
def main():
40+
os.makedirs("screenshots", exist_ok=True)
4141
cookie = os.getenv('COOKIE')
4242
driver = setup_driver(cookie)
4343
try:

0 commit comments

Comments
 (0)