List of usage examples for org.openqa.selenium Keys ENTER
Keys ENTER
To view the source code for org.openqa.selenium Keys ENTER.
Click Source Link
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 1) public void checkRenameNotPrivateField1() throws Exception { setFieldsForTest("test1"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from ww w . j a v a 2 s . co m*/ editor.waitTextIntoEditor(contentFromInA); loader.waitOnClosed(); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 2) public void checkRenameNotPrivateField2() throws Exception { setFieldsForTest("test2"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/* w ww . j a va 2 s . c o m*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToDefinedLineAndChar(13, 9); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 3) public void checkRenameNotPrivateField3() throws Exception { setFieldsForTest("test3"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*ww w . ja va2 s.c o m*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(19); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 4) public void checkRenameNotPrivateField4() throws Exception { setFieldsForTest("test4"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();//from ww w . j av a 2 s . c om editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 5) public void checkRenameNotPrivateField5() throws Exception { setFieldsForTest("test5"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();// ww w.j a va 2s.c o m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 6) public void checkRenameNotPrivateField6() throws Exception { setFieldsForTest("test6"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();//from w w w. j a va 2 s .c o m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 9) public void checkRenameNotPrivateField9() throws Exception { setFieldsForTest("test9"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();/*from w w w . ja va 2 s .c o m*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 10) public void checkRenameNotPrivateField10() throws Exception { setFieldsForTest("test10"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from www. jav a 2 s . c om editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("g"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 11) public void checkRenameAnnotation24() throws Exception { setFieldsForTest("test24"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();// w ww.j a va 2 s . co m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToDefinedLineAndChar(14, 9); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("ZORRO"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); loader.waitOnClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 12) public void checkRenameAnnotation25() throws Exception { setFieldsForTest("test25"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from w ww .ja va 2 s . com editor.waitTextIntoEditor(contentFromInA); editor.setCursorToDefinedLineAndChar(16, 14); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("ZORRO"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.ENTER.toString()); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }