com.atlassian.jira.webtest.framework.impl.selenium.form
Class DirtyFormCheck.DirtyFormDescriptor

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.form.DirtyFormCheck.DirtyFormDescriptor
Enclosing class:
DirtyFormCheck

public static class DirtyFormCheck.DirtyFormDescriptor
extends Object


Constructor Summary
DirtyFormCheck.DirtyFormDescriptor(String formOpenerQuery, String parentReadyQuery, String formReadyQuery, String submitLinkQuery, String cancelLinkQuery, String dirtyLinkQuery, String warningMessage, String fieldName, boolean isOption)
          Describes the form to be tested.
 
Method Summary
 String getCancelLinkQuery()
           
 String getDirtyLinkQuery()
           
 String getFieldName()
           
 String getFormOpenerQuery()
           
 String getFormReadyQuery()
           
 String getParentReadyQuery()
           
 String getSubmitLinkQuery()
           
 String getWarningMessage()
           
 boolean isOption()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirtyFormCheck.DirtyFormDescriptor

public DirtyFormCheck.DirtyFormDescriptor(String formOpenerQuery,
                                          String parentReadyQuery,
                                          String formReadyQuery,
                                          String submitLinkQuery,
                                          String cancelLinkQuery,
                                          String dirtyLinkQuery,
                                          String warningMessage,
                                          String fieldName,
                                          boolean isOption)
Describes the form to be tested.

Parameters:
formOpenerQuery - query that matches the link used to open the form
parentReadyQuery - jQuery used to check if parent page is ready (after cancel)
formReadyQuery - the jQuery query string to use to check the form has displayed
submitLinkQuery - the jQuery query string that matches the form submit button
cancelLinkQuery - the jQuery query string that matches the form cancel button
dirtyLinkQuery - the jQuery query string that matches the link that will cause a dirty form warning
warningMessage - the warning message that shpould appear, null to accept the default message
fieldName - a field to be used to test the dirty form
isOption - if the form field is an HTML select
Method Detail

getSubmitLinkQuery

public String getSubmitLinkQuery()

getCancelLinkQuery

public String getCancelLinkQuery()

getDirtyLinkQuery

public String getDirtyLinkQuery()

getWarningMessage

public String getWarningMessage()

getFormOpenerQuery

public String getFormOpenerQuery()

getParentReadyQuery

public String getParentReadyQuery()

getFieldName

public String getFieldName()

getFormReadyQuery

public String getFormReadyQuery()

isOption

public boolean isOption()


Copyright © 2002-2012 Atlassian. All Rights Reserved.