View Javadoc

1   package edu.samplu.admin.test;
2   
3   import org.junit.Test;
4   import org.openqa.selenium.By;
5   
6   import java.util.HashMap;
7   import java.util.Map;
8   
9   /**
10   * @author Kuali Rice Team (rice.collab@kuali.org)
11   */
12  public class DocumentSearchURLParametersIT_testAdvancedSearchFields extends DocumentSearchURLParametersITBase {
13      @Test
14      public void testAdvancedSearchFields() throws InterruptedException{
15          // criteria.initiator=delyea&criteria.docTypeFullName=" + documentTypeName +
16          Map<String, String> values = new HashMap<String, String>(BASIC_FIELDS);
17          values.putAll(ADVANCED_FIELDS);
18          driver.get(getDocSearchURL(values));
19  
20          assertInputValues(values);
21  
22          driver.findElement(By.id("toggleAdvancedSearch")).click();
23  
24          assertInputValues(BASIC_FIELDS);
25      }
26  }