Changeset 26116

Show
Ignore:
Timestamp:
16.08.2012 16:26:04 (8 years ago)
Author:
sjm84
Message:

Updates to the tests to use a new util function

Location:
main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/tests/src/gstests/TestClass.java

    r26114 r26116  
    145145 
    146146        //Type "snails" into quick search area and submit  
    147         WebElement quickSearchInput = GSTestingUtil.findElementByXPath(_driver, "//div[@id='quicksearcharea']//input[@name='s1.query']"); 
    148         quickSearchInput.sendKeys("snails"); 
    149         WebElement quickSearchSubmitButton = GSTestingUtil.findElementByXPath(_driver, "//input[@id='quickSearchSubmitButton']"); 
    150         quickSearchSubmitButton.click(); 
     147        GSTestingUtil.performQuickSearch(_driver, "snails", null); 
    151148 
    152149        //Check the number of results on the page 
     
    181178        String randomSearchTerm = GSTestingUtil.generateRandomString(20); 
    182179 
    183         quickSearchInput = GSTestingUtil.findElementByXPath(_driver, "//div[@id='quicksearcharea']//input[@name='s1.query']"); 
    184         quickSearchInput.clear(); 
    185         quickSearchInput.sendKeys(randomSearchTerm); 
    186         quickSearchSubmitButton = GSTestingUtil.findElementByXPath(_driver, "//input[@id='quickSearchSubmitButton']"); 
    187         quickSearchSubmitButton.click(); 
     180        GSTestingUtil.performQuickSearch(_driver, randomSearchTerm, null); 
    188181 
    189182        //Make sure that no documents match