Skip to content

Commit e5cdacd

Browse files
committed
testing actions
1 parent 96fd7b8 commit e5cdacd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/scripts/take_screenshot.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ def crop_image(input_path, output_path, crop_box=(0, 0, 640, 621)):
2727

2828
def take_screenshot(driver, url, selector, output_name):
2929
driver.get(url)
30-
element = WebDriverWait(driver, 10).until(
31-
EC.presence_of_element_located((By.CSS_SELECTOR, selector))
32-
)
30+
driver.save_screenshot('screenshots/full_page.png')
31+
# element = WebDriverWait(driver, 10).until(
32+
# EC.presence_of_element_located((By.CSS_SELECTOR, selector))
33+
# )
3334
temp_output = output_name # Directly save the temp screenshot as the final output
34-
element.screenshot(temp_output)
35+
# element.screenshot(temp_output)
3536
crop_image(temp_output, output_name)
3637

3738

.github/workflows/update_readme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
uses: stefanzweifel/git-auto-commit-action@v4
4747
with:
4848
commit_message: "Update screenshot in README"
49-
file_pattern: screenshots/aoc-screenshot.png
49+
file_pattern: screenshots/*.png

0 commit comments

Comments
 (0)