Example usage for org.openqa.selenium Keys END

List of usage examples for org.openqa.selenium Keys END

Introduction

In this page you can find the example usage for org.openqa.selenium Keys END.

Prototype

Keys END

To view the source code for org.openqa.selenium Keys END.

Click Source Link

Usage

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.  ja v  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.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 w w w .j  a  v a 2 s.  c  om*/
    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");
}

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 www .ja va2  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 = 3)
public void checkRenameNotPrivateField3() throws Exception {
    setFieldsForTest("test3");
    projectExplorer.openItemByPath(pathToCurrentPackage);
    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(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   w w 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.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();//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 = 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();/*w  w  w . j  a  v  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());
    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 = 7)
public void checkRenameNotPrivateField7() throws Exception {
    setFieldsForTest("test7");
    projectExplorer.scrollAndselectItem(pathToCurrentPackage);
    projectExplorer.openItemByPath(pathToCurrentPackage);
    projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java");
    projectExplorer.sendToItemDownArrowKey();
    projectExplorer.sendToItemEnterKey();
    editor.waitActiveEditor();/*from   ww  w .  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");
    loader.waitOnClosed();
    refactor.clickOkButtonRefactorForm();
    refactor.waitRenameFieldFormIsClosed();
    editor.waitTextIntoEditor(contentFromOutA);
    editor.closeFileByNameWithSaving("A");
}

From source file:org.eclipse.che.selenium.refactor.fields.RenameNotPrivateFieldTest.java

License:Open Source License

@Test(priority = 8)
public void checkRenameNotPrivateField8() throws Exception {
    setFieldsForTest("test8");
    projectExplorer.scrollAndselectItem(pathToCurrentPackage);
    projectExplorer.openItemByPath(pathToCurrentPackage);
    projectExplorer.waitVisibleItem(pathToCurrentPackage + "/A.java");
    projectExplorer.sendToItemDownArrowKey();
    projectExplorer.sendToItemEnterKey();
    editor.waitActiveEditor();//from   ww  w  .  ja v a2  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");
    loader.waitOnClosed();
    refactor.clickOkButtonRefactorForm();
    refactor.waitRenameFieldFormIsClosed();
    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();/*  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.typeTextIntoEditor("g");
    loader.waitOnClosed();
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutA);
    editor.closeFileByNameWithSaving("A");
}