Skip to content

Commit

Permalink
add print_page options
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 28, 2025
1 parent 505eed0 commit b46df8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pwnshop/templates/base/selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
browser.find_element(By.NAME, "submit").submit()
{% endif %}

{% if challenge.print_page %}
print("Retrieved the following HTML:")
print(browser.page_source)
{% endif %}

{% if challenge.reward_alert %}
try:
WebDriverWait(browser, 1).until(EC.alert_is_present())
Expand Down

0 comments on commit b46df8b

Please sign in to comment.