package tr.search;

import net.sourceforge.jwebunit.junit.WebTestCase;


/*-----------------------------------------------------------------------------
 *
 * File: FilterMethodTest.java
 *
 * ****************************************************************************
 * * COPYRIGHT Ericsson 2007                                               *
 * *                                                                          *
 * * The copyright to the computer program(s) herein is the property of       *
 * * Ericsson Inc. The programs may be used and/or copied only with written   *
 * * permission from Ericsson Inc. or in accordance with the terms and        *
 * * conditions stipulated in the agreement/contract under which the          *
 * * program(s) have been supplied.                                           *
 * ****************************************************************************
 */

/**
 * @author daniemic
 *
 */
public class SelectAndScriptTest extends WebTestCase {

  /**
   * @param name
   */
  public SelectAndScriptTest(String name) {
    super(name);
  }

  public void testSelectAndScript() throws Exception 
  {
    this.tester.getTestContext().setBaseUrl("file:///c:/");
    this.tester.beginAt("/test.html");
    this.tester.selectOptionByValue("prio", "C");
    
    setExpectedJavaScriptAlert("C");
    this.tester.clickElementByXPath("//input[@type='button' and @name='N']");
    closeBrowser();
  }


}
