Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-95

ContentApp fails when directly opening detail sub-app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0.2
    • None
    • None
    • TE 11
    • 2

    Description

      The ContentApp page object fails when instantiated with the browser sub-app not visible (i.e. a detail sub-app visible instead).

      This can be e.g. experienced when navigating to the resources app from the configuration app via contentApp.hitAction("Show in Resource app").

      This causes the isNewGrid call in the ContentApp constructor to fail:

      org.openqa.selenium.NoSuchElementException: 
      no such element: Unable to locate element: {"method":"xpath","selector":"(//div[contains(@class, 'browser')]//table)[1]"}
        (Session info: chrome=85.0.4183.83)
      For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
      System info: host: 'ip-172-30-100-12', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-1052-aws', java.version: '1.8.0_152'
      Driver info: org.openqa.selenium.remote.RemoteWebDriver
      Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 85.0.4183.83, chrome: {chromedriverVersion: 85.0.4183.83 (94abc2237ae0c..., userDataDir: /tmp/.com.google.Chrome.KqjxTH}, goog:chromeOptions: {debuggerAddress: localhost:44467}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true, webdriver.remote.sessionid: 29d365a2b4579a5294d4701a906...}
      Session ID: 29d365a2b4579a5294d4701a906695c5
      *** Element info: {Using=xpath, value=(//div[contains(@class, 'browser')]//table)[1]}
      	at info.magnolia.addon.uitest.EcommerceUITest.showConfigurationInResourceApp(EcommerceUITest.java:99)
      

      A possible fix could defer resolving the grid web element until actually needed.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mduerig Michael Duerig
              mduerig Michael Duerig
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD