Class: HeadlessBrowserTool::Tools::GoBackTool
- Defined in:
- lib/headless_browser_tool/tools/go_back_tool.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/headless_browser_tool/tools/go_back_tool.rb', line 11 def execute url_before = browser.current_url browser.title browser.go_back { navigation: { from: url_before, to: browser.current_url, title: browser.title, navigated: browser.current_url != url_before }, status: "navigated_back" } end |