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.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 w w w . j av 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.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 = 14) public void checkRenameDelegate28() throws Exception { setFieldsForTest("test28"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();// www. j a va 2 s . c o m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(15); 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 = 15) public void checkRenameEnumField31() throws Exception { setFieldsForTest("test31"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();//from www .j av a2s.c o m editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(15); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.typeTextIntoEditor("other"); 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 = 16) public void checkRenameGenerics32() throws Exception { setFieldsForTest("test32"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();/*from w ww .ja v a2s.c o m*/ editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(14); 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 = 17) public void checkRenameGenerics33() throws Exception { setFieldsForTest("test33"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();//from ww w . j a va 2 s.com editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(14); 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 = 18) public void checkRenameGenerics36() throws Exception { setFieldsForTest("test36"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();//from ww w . java 2 s . c om editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(16); 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.RenamePrivateFieldSmokeTest.java
License:Open Source License
@Test public void checkRenamePrivateField0() throws Exception { setFieldsForTest("test0"); projectExplorer.waitItem(PROJECT_NAME); consoles.closeProcessesArea();/*from ww w .jav a 2 s .c o m*/ projectExplorer.quickExpandWithJavaScript(); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor(); editor.waitTextIntoEditor(contentFromInA); editor.setCursorToLine(13); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor(Keys.ARROW_LEFT.toString()); editor.launchRefactorFormFromEditor(); editor.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); 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 public void checkRenamePrivateField0() throws Exception { setFieldsForTest("test0"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();// w w w . ja v a2 s .com 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 = 1) public void checkRenamePrivateField1() throws Exception { setFieldsForTest("test1"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from w ww . java 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"); 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 = 2) public void checkRenamePrivateField2() throws Exception { setFieldsForTest("test2"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*www . j av a 2 s . c om*/ 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("g"); loader.waitOnClosed(); refactor.setAndWaitStateUpdateReferencesCheckbox(false); refactor.clickOkButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); editor.waitTextIntoEditor(contentFromOutA); editor.closeFileByNameWithSaving("A"); }