/* NavigateToOwner.java
*
* DDSteps - Data Driven JUnit Test Steps
* Copyright (C) 2005 Jayway AB
* www.ddsteps.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, visit
* http: */
package org.ddsteps.examples.petclinic.owner.navigators;
import org.ddsteps.jwebunit.WebBrowser;
import org.ddsteps.step.jwebunit.JWebUnitTestStep;
/**
* Surf to to the owner page.
*
* @author adam
* @version $Id: NavigateToOwner.java,v 1.1 2005/12/03 12:56:13 adamskogman Exp $
*/
public class NavigateToOwner extends JWebUnitTestStep {
protected String name;
/**
* @param webBrowser
*/
public NavigateToOwner(WebBrowser webBrowser) {
super(webBrowser);
}
/**
* @see org.ddsteps.step.TestStep#runStep()
*/
public void runStep() throws Exception {
beginAt("/");
writeTrail("Home");
clickLinkWithText("Find owner");
writeTrail("Find Owners Form");
submit();
writeTrail("List of all owners");
setWorkingForm(name);
submit();
}
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name The name to set.
*/
public void setName(String name) {
this.name = name;
}
}