ref = new ComponentReference("ab", TextField.class, "ccccc", null);
ab = (TextField)getFinder().findComponent(ref);
//display.setText("5");
ref = new ComponentReference("cd", TextField.class, "ddddd", null);
cd = (TextField)getFinder().findComponent(ref);
//System.out.println(display.getText());
}
}
private int delay = 0;
public void delay(int d) // Control the speed of the "robot".
{ delay = d;
}
private void click(Button button)
{ testBasic.actionClick(button); // robot clicks the button, firing action events
testBasic.actionDelay(delay);
}
public void two() throws Exception
{ click(button2);
}
public void abb(String a) throws Exception
{ ab.setText(a);
}
public void dis(String a) throws Exception
{ display.setText(a);
}
public String value() throws Exception
{ testBasic.actionDelay(delay);
return cd.getText();
}
public static void main(String args[]) {
try {
TestAbbot a = new TestAbbot();
a.dis("4");
a.abb("6");
a.two();
System.out.println(a.value());
} catch (Exception e) {
e.printStackTrace();
}
}
}