generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscroll_to_element.yml
34 lines (32 loc) · 1.06 KB
/
scroll_to_element.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Screenshot from a scrolled page
on:
workflow_dispatch:
jobs:
by_xpath:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: karol-brejna-i/webpage-screenshot-action@v1
with:
url: https://github.com/karol-brejna-i/webpage-screenshot-action/blob/main/README.md
mode: scrollToElement
xpath: //table[1]
output: scroll-to-element-xpath-screenshot.png
- uses: actions/upload-artifact@v3
with:
name: simple-screenshot
path: ${{ github.workspace }}/*.png
by_selector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: karol-brejna-i/webpage-screenshot-action@v1
with:
url: https://github.com/karol-brejna-i/webpage-screenshot-action/blob/main/README.md
mode: scrollToElement
selector: table
output: scroll-to-element-selector-screenshot.png
- uses: actions/upload-artifact@v3
with:
name: simple-screenshot
path: ${{ github.workspace }}/*.png