List of usage examples for org.openqa.selenium Keys END
Keys END
To view the source code for org.openqa.selenium Keys END.
Click Source Link
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 3) public void checkRenamePrivateField3() throws Exception { setFieldsForTest("test3"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from w w w .j a v a 2 s . co m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("g"); refactor.sendKeysIntoField("g"); refactor.waitTextIntoNewNameField("gg"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.setAndWaitStateCommentsAndStringsCheckbox(true); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 4) public void checkRenamePrivateField4() throws Exception { setFieldsForTest("test4"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from ww w. j a v a 2 s .c om*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(18); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("fY"); refactor.sendKeysIntoField("o"); refactor.sendKeysIntoField("u"); refactor.waitTextIntoNewNameField("fYou"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.setAndWaitStateCommentsAndStringsCheckbox(true); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 5) public void checkRenamePrivateField5() throws Exception { setFieldsForTest("test5"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from www. ja va2 s . co m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("fY"); refactor.sendKeysIntoField("o"); refactor.sendKeysIntoField("u"); refactor.waitTextIntoNewNameField("fYou"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 6) public void checkRenamePrivateField6() throws Exception { setFieldsForTest("test6"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from ww w . ja v a2s . co m*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("fY"); refactor.sendKeysIntoField("o"); refactor.sendKeysIntoField("u"); refactor.waitTextIntoNewNameField("fYou"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 7) public void checkRenamePrivateField7() throws Exception { setFieldsForTest("test7"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from w w w. jav a 2s . c om*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("fS"); refactor.sendKeysIntoField("mal"); refactor.sendKeysIntoField("l"); refactor.waitTextIntoNewNameField("fSmall"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 8) public void checkRenamePrivateField8() throws Exception { setFieldsForTest("test8"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from ww w . j a v a2s . c o m*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("g"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.clickOkButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 9) public void checkRenamePrivateField9() throws Exception { setFieldsForTest("test9"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from ww w . j a v a2 s . c o m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("fS"); refactor.sendKeysIntoField("mal"); refactor.sendKeysIntoField("l"); refactor.waitTextIntoNewNameField("fSmall"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.clickOkButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 10) public void checkRenamePrivateField10() throws Exception { setFieldsForTest("test10"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from w ww. j a va 2 s .co m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(19); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); loader.waitOnClosed(); refactor.typeAndWaitNewName("fElem"); refactor.sendKeysIntoField("ent"); refactor.sendKeysIntoField("s"); refactor.waitTextIntoNewNameField("fElements"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); loader.waitOnClosed(); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 11) public void checkRenamePrivateField11() throws Exception { setFieldsForTest("test11"); projectExplorer.openItemByPath(pathToCurrentPackage); consoles.closeProcessesArea();//from w w w .j a va2s . c o m projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor(); editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(21); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); loader.waitOnClosed(); refactor.typeAndWaitNewName("fElem"); refactor.sendKeysIntoField("ent"); refactor.sendKeysIntoField("s"); refactor.waitTextIntoNewNameField("fElements"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); loader.waitOnClosed(); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenamePrivateFieldTest.java
License:Open Source License
@Test(priority = 12) public void checkRenameUnicode12() throws Exception { setFieldsForTest("test12"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*w ww. ja va 2s.co m*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(14); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.typeAndWaitNewName("fe"); refactor.sendKeysIntoField("e"); refactor.sendKeysIntoField("l"); refactor.waitTextIntoNewNameField("feel"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(true); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitRenameFieldFormIsClosed(); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }