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

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.selenium.harness.util.FormCleaner

public final class FormCleaner
extends SeleniumContextAware

Utility class that cleans up forms opened by Selenium after tests, in order to avoid the 'isDirty' pop-ups that block execution of subsequent tests.

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
FormCleaner(SeleniumContext ctx)
           
 
Method Summary
 void cleanUpFields(String... locators)
          Clean up selected fields (if applicable).
 void cleanUpPage()
          Clean up all text inputs on the page.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormCleaner

public FormCleaner(SeleniumContext ctx)
Method Detail

cleanUpPage

public void cleanUpPage()
Clean up all text inputs on the page.


cleanUpFields

public void cleanUpFields(String... locators)
Clean up selected fields (if applicable).

Parameters:
locators - Selenium locators of the fields to clean


Copyright © 2002-2013 Atlassian. All Rights Reserved.