forked from projectdiscovery/nuclei
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
headless: fix panic + refactor waitevent action (projectdiscovery#4465)
* fix waitEvent action * avoid future panics * integration test + bug fix * headless: add max-duration support in waitevent * fix comment + max-duration input
- Loading branch information
1 parent
1fadc83
commit c82d2b5
Showing
3 changed files
with
83 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
integration_tests/protocols/headless/headless-waitevent.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
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>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters