List of usage examples for org.openqa.selenium Keys ARROW_LEFT
Keys ARROW_LEFT
To view the source code for org.openqa.selenium Keys ARROW_LEFT.
Click Source Link
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 ww w . j a v a 2 s . c om*/ 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 ww w. j a v a2 s . c om 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();/* w ww . j ava2 s . 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 = 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();/* ww w. j a va 2 s. c o m*/ 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 w ww . j a v a2s .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();//from w ww .java2s .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 = 1) public void checkRenamePrivateField1() throws Exception { setFieldsForTest("test1"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();// ww w . j ava 2s . 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 = 2) public void checkRenamePrivateField2() throws Exception { setFieldsForTest("test2"); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from w w w . jav a 2 s .com 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"); }
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 ww w. j a v a 2s. 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"); 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 w w 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"); }