Class ResubmissionPage

  • public class ResubmissionPage
    extends BasePage
    Resubmission page is used to ask user for confirmation when the CSRF protection detects a request with invalid secret token. The user can resubmit() the request with correct token or cancel() and return to view mode.
    $Id: 6b3da3f482165715cabda1a0231204ca9d80f34e $
    • Constructor Detail

      • ResubmissionPage

        public ResubmissionPage()
    • Method Detail

      • isOnResubmissionPage

        public boolean isOnResubmissionPage()
        true if we are viewing the resubmission page, false otherwise
      • resubmit

        public void resubmit()
        Resubmit the request
      • cancel

        public void cancel()
        Cancel the request. Returns to view mode on some page (do not rely to which exactly, the heuristic might have somewhat surprising results when the request was something other than a simple page save).

        It is safe to ignore the resubmission warning and directly navigate to some other page instead of canceling.