add playwright debug helper
This commit is contained in:
parent
6d752fa0d1
commit
1577fdd6af
1 changed files with 7 additions and 0 deletions
|
@ -96,6 +96,13 @@ module SystemHelpers
|
|||
end
|
||||
end
|
||||
|
||||
def playwright_debug
|
||||
page.driver.with_playwright_page do |page|
|
||||
page.context.enable_debug_console!
|
||||
page.pause
|
||||
end
|
||||
end
|
||||
|
||||
def pause
|
||||
$stderr.write 'Spec paused. Press enter to continue:'
|
||||
$stdin.gets
|
||||
|
|
Loading…
Reference in a new issue