Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-928

Dialog close button cannot be scrolled into view

    XMLWordPrintable

Details

    Description

      When running tests against Service Desk, I often get a 'Cannot scroll element into view' error, caused by an SD dialog that's too big for my browser window.

      Use case: Adding calendars in ServiceDesk in webdriver test. Running test on local machine with Firefox. Firefox defaults to a ~800x800 screen.

      As soon as the calendars are added, the test will attempt to click closeButton. The button is off screen (see screenshot). Apparently there's an overflow: hidden or similar somewhere, preventing Selenium to scroll towards the button.

      I have seen this behaviour on multiple dialogs in ServiceDesk.

      My workaround is to quickly go to Firefox and resize the screen before the tests are at the calendar dialog. This is annoying.

      While it might be a minor issue, I feel that this should be addressed.

      Is this a known issue? And if so, are there plans for fixing this and/or does a workaround exist?

              SlaPage slaPage = jira().goTo(SlaPage.class, PROJECT_KEY);
      
              CalendarDialog calendarDialog = slaPage.editCalendars();
              CalendarEdit calendarEdit = calendarDialog.addCalendar();
              calendarEdit.name(SD_CALENDAR_NAME_1);
              calendarEdit.save();
      
              calendarEdit = calendarDialog.addCalendar();
              calendarEdit.name(SD_CALENDAR_NAME_2);
              calendarEdit.save();
      
              calendarDialog.doWait();
              calendarDialog.dialogClose().click();
      
      org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: Element cannot be scrolled into view:http://localhost:2990/jira/servicedesk/agent/TEST/sla#
      Command duration or timeout: 27 milliseconds
      Build info: version: '2.22.0', revision: '17048', time: '2012-05-29 14:59:54'
      System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.7.0_60'
      Driver info: driver.version: RemoteWebDriver
      Session ID: 857fcc2b-f50a-7947-9a72-81c67efa6936
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
      	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
      	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:458)
      	at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:244)
      	at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:77)
      	at com.atlassian.pageobjects.elements.WebDriverElement.click(WebDriverElement.java:184)
      	at it.com.atlassian.addon.connect.autodispatch.AutodispatchTestCase.setUpBeforeClass(AutodispatchTestCase.java:129)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hwiggers Dick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync