def click_and_attach
      assert_exists_and_enabled
      browser = Browser.new(@browser.options.dup)
      browser.webclient.set_cookie_manager(
        @browser.webclient.get_cookie_manager
      ) # hirobumi: we do want cookies as well.

      @browser.disable_event_listener do
        rescue_status_code_exception { browser.page = @object.click }
      end

      browser
    end
def click_and_attach
      assert_exists_and_enabled
      browser = Browser.new(@browser.options.dup)
      browser.webclient.set_cookie_manager(
        @browser.webclient.get_cookie_manager
      ) # hirobumi: we do want cookies as well.

      @browser.disable_event_listener do
        rescue_status_code_exception { browser.page = @object.click }
      end

      browser
    end
Click the element and return a new Browser instance with the resulting page.
 This is useful for elements that trigger popups when clicked.

 @return [Celerity::Browser]