com.atlassian.jira.webtest.selenium.harness.util
Class DashboardImpl

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.harness.util.AbstractSeleniumUtil
      extended by com.atlassian.jira.webtest.selenium.harness.util.DashboardImpl
All Implemented Interfaces:
Dashboard

public class DashboardImpl
extends AbstractSeleniumUtil
implements Dashboard


Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.harness.util.AbstractSeleniumUtil
environmentData, PAGE_LOAD_WAIT, selenium
 
Constructor Summary
DashboardImpl(String dashboardId, com.atlassian.selenium.SeleniumClient selenium, JIRAEnvironmentData environmentData)
           
 
Method Summary
 void dragGadgetToTab(String gadgetId, String targetTabName, int targetShimIndex)
          Drags a gadget to the tab specified by name.
 int getGadgetCount()
          Returns how many gadgets are being displayed on this dashboard
 void view()
          View this dashboard
 
Methods inherited from class com.atlassian.jira.webtest.selenium.harness.util.AbstractSeleniumUtil
getEnvironmentData, getSelenium
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashboardImpl

public DashboardImpl(String dashboardId,
                     com.atlassian.selenium.SeleniumClient selenium,
                     JIRAEnvironmentData environmentData)
Method Detail

view

public void view()
Description copied from interface: Dashboard
View this dashboard

Specified by:
view in interface Dashboard

getGadgetCount

public int getGadgetCount()
Description copied from interface: Dashboard
Returns how many gadgets are being displayed on this dashboard

Specified by:
getGadgetCount in interface Dashboard
Returns:
how many gadgets are being displayed on this dashboard

dragGadgetToTab

public void dragGadgetToTab(String gadgetId,
                            String targetTabName,
                            int targetShimIndex)
Description copied from interface: Dashboard
Drags a gadget to the tab specified by name.

The targetShimIndex is a bit of a workaround to fire the mouseup event when dropping the gadget on the right element.

Basically every writable tab will have a hotspot shim. The index starts with 1 for the first tab, and is incremented by 1 for every subsequent writable tab.

E.g. if we have the following tabs:



Copyright © 2002-2013 Atlassian. All Rights Reserved.