/** types text for txtContextPath * @param text String text */ public void typeContextPath(String text) { txtContextPath().typeText(text); }
/** types text for txtBuildScript * @param text String text */ public void typeBuildScript(String text) { txtBuildScript().typeText(text); }
/** types text for txtContextPath * @param text String text */ public void typeContextPath(String text) { txtContextPath().typeText(text); }
/** types text for txtProjectFolder * @param text String text */ public void typeProjectFolder(String text) { txtProjectFolder().typeText(text); }
/** types text for txtJSPFileName * @param text String text */ public void typeJSPFileName(String text) { txtJSPFileName().typeText(text); }
/** types text for txtProject * @param text String text */ public void typeProject(String text) { txtProject().typeText(text); }
/** types text for txtCreatedFile * @param text String text */ public void typeCreatedFile(String text) { txtCreatedFile().typeText(text); }
/** types text for txtFolder * @param text String text */ public void typeFolder(String text) { txtFolder().typeText(text); }
/** types text for txtWebPagesFolder * @param text String text */ public void typeWebPagesFolder(String text) { txtWebPagesFolder().typeText(text); }
/** types text for txtProjectName * @param text String text */ public void typeProjectName(String text) { txtProjectName().typeText(text); }
/** types text for txtLocation * @param text String text */ public void typeProjectLocation(String text) { txtLocation().typeText(text); }
new ClassReference("org.netbeans.jemmy.explorer.GUIBrowser") .startApplication(); JFrameOperator mainFrame = new JFrameOperator("GUI Browser"); new JButtonOperator(mainFrame, "Reload In").push(); new JLabelOperator(mainFrame, "Reloaded"); JTreeOperator tree = new JTreeOperator(mainFrame); //click in the middle of the tree tree.clickMouse(); //collapse node tree.collapsePath(tree.findPath("", "|")); //expand node tree.expandPath(tree.findPath("", "|")); //select node tree.selectPath(tree.findPath("GUI Browser", "|")); JTextFieldOperator testField = new JTextFieldOperator(mainFrame); //type new value in the text field testField.clearText(); testField.typeText("3");
Action action = new Action("File|New Project", null); action.perform(); WizardOperator wo = new WizardOperator("New Project"); wo.next(); JTextFieldOperator txtName = new JTextFieldOperator( (JTextField) new JLabelOperator(wo, "Project Name:").getLabelFor()); txtName.clearText(); txtName.typeText("MyProject"); wo.finish();
/** Type given package in combo box Package. * @param packageName name of package */ public void setFolder(String packageName) { new EventTool().waitNoEvent(500); txtFolder().clearText(); txtFolder().typeText(packageName); }