com.atlassian.jira.webtest.selenium.harness.util
Class FormCleaner
java.lang.Object
com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormCleaner
public FormCleaner(SeleniumContext ctx)
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.