Unexpected modal dialog appears sometimes in a test

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Sometimes a test fails because next exception is thrown:

      org.openqa.selenium.UnhandledAlertException: Unexpected modal dialog (text: This page is asking you to confirm that you want to leave - data you have entered may not be saved.): This page is asking you to confirm that you want to leave - data you have entered may not be saved.
      

      It seems that depending on previous execution, the browser contains some old values and when the new test tries to create a new item, since browser is in a form with some data, the modal dialg is shown.

      To avoid this situation, pushing confirm button might be a good solution to avoid this problem instead of making test fails.

            Assignee:
            Alex Soto
            Reporter:
            Alex Soto
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: