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.FailNotPrivateFieldTest.java
License:Open Source License
@Test public void testFail0() throws Exception { setFieldsForTest("testfail0"); projectExplorer.scrollToItemByPath(PROJECT_NAME + "/src/main/webapp"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from w w 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.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.waitTextInErrorMessage("A field with this name is already defined."); refactor.clickCancelButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 1) public void testFail3() throws Exception { setFieldsForTest("testfail3"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from www. j av a2 s . 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.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.waitTextInErrorMessage("A field with this name is already defined."); refactor.clickCancelButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 2) public void testFail7() throws Exception { setFieldsForTest("testfail7"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/*from w w w . j a v a 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.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.clickOkButtonRefactorForm(); askDialog.acceptDialogWithText( "Problem in 'A.java'. Another name will shadow access to the renamed element"); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 3) public void testFail10() throws Exception { setFieldsForTest("testfail10"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/* w ww. j a v a 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.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.clickOkButtonRefactorForm(); askDialog.acceptDialogWithText( "Problem in 'A.java'. Another name will shadow access to the renamed element"); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailNotPrivateFieldTest.java
License:Open Source License
@Test(priority = 4) public void testFail14() throws Exception { setFieldsForTest("testfail14"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from w w w . j av a 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.launchRefactorFormFromEditor(); refactor.waitRenameFieldFormIsOpen(); refactor.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.clickOkButtonRefactorForm(); askDialog.acceptDialogWithText( "Problem in 'A.java'. Another name will shadow access to the renamed element"); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailPrivateFieldTest.java
License:Open Source License
@Test public void testFail0() throws Exception { setFieldsForTest("testfail0"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();//from w w w .ja va 2 s . 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.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.waitTextInErrorMessage("A field with this name is already defined."); refactor.clickCancelButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailPrivateFieldTest.java
License:Open Source License
@Test(priority = 1) public void testFail4() throws Exception { setFieldsForTest("testfail4"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();/* w w w .j ava 2 s. 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.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.waitTextInErrorMessage("A field with this name is already defined."); refactor.clickCancelButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailPrivateFieldTest.java
License:Open Source License
@Test(priority = 2) public void testFail6() throws Exception { setFieldsForTest("testfail6"); projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java"); editor.waitActiveEditor();// w w w . j av 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.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.clickOkButtonRefactorForm(); askDialog.acceptDialogWithText("After renaming, the field 'f' will be hidden" + " in the scope of the field 'g' declared in type 'testfail6.A.B'"); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.FailPrivateFieldTest.java
License:Open Source License
@Test(priority = 3) public void testFail7() throws Exception { setFieldsForTest("testfail7"); 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.waitUpdateReferencesIsSelected(); refactor.typeAndWaitNewName("g"); refactor.clickOkButtonRefactorForm(); askDialog.acceptDialogWithText( "Problem in 'A.java'. Another name will shadow access to the renamed element"); refactor.waitRenameFieldFormIsClosed(); editor.closeFileByNameWithSaving("A"); }
From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java
License:Open Source License
@Test public void checkRenameNotPrivateField0() throws Exception { setFieldsForTest("test0"); projectExplorer.scrollAndselectItem(pathToCurrentPackage); projectExplorer.openItemByPath(pathToCurrentPackage); projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java"); projectExplorer.sendToItemDownArrowKey(); projectExplorer.sendToItemEnterKey(); editor.waitActiveEditor();//from ww w . ja va 2 s . com editor.waitTextIntoEditor(contentFromInA); loader.waitOnClosed(); editor.setCursorToLine(21); 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"); }