nuclei/integration_tests/protocols/headless/headless-waitevent.yaml
Tarun Koyalwar 47e75038f0
headless: fix panic + refactor waitevent action (#4465)
* fix waitEvent action

* avoid future panics

* integration test + bug fix

* headless: add max-duration support in waitevent

* fix comment + max-duration input
2023-12-06 19:08:26 +05:30

24 lines
454 B
YAML

id: headless-waitevent
info:
name: WaitEvent
severity: info
author: pdteam
headless:
- steps:
# note waitevent must be used before navigating to any page
# unlike waitload
- action: waitevent
args:
event: 'Page.loadEventFired'
max-duration: 15s
- action: navigate
args:
url: "{{BaseURL}}/"
matchers:
- type: word
words:
- "<html>"