Skip to content

suport muilt script headless? #4490

Closed Answered by tarunKoyalwar
hktalent asked this question in Q&A
Discussion options

You must be logged in to vote

@hktalent , not able to reproduce this and script seems to be working as expected . you can always use -svd to verify what variables are available

Note: In headless all actions are put in array and executed in order so there is no deduplication or order mismatch

Example Template

id: headless-extract-values
info:
  name: Headless Extract Value
  author: pdteam
  severity: info
  tags: headless

headless:
  - steps:
      - action: navigate
        args:
          url: "{{BaseURL}}"        
      - action: waitload
      # From headless/extract-urls.yaml
      - action: script
        name: extract
        args:
          code: |
            () => '\n' + [...new Set(Array.from(document.qu…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hktalent
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants