Example usage for org.openqa.selenium Keys ENTER

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

Introduction

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

Prototype

Keys ENTER

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

Click Source Link

Usage

From source file:org.eclipse.che.selenium.refactor.methods.RenamePrivateMethodTest.java

License:Open Source License

@Test(priority = 3)
public void test11() {
    projectExplorer.waitProjectExplorer();
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(13, 18);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("k");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutB);
}

From source file:org.eclipse.che.selenium.refactor.methods.RenamePrivateMethodTest.java

License:Open Source License

@Test(priority = 4)
public void test12() {
    projectExplorer.waitProjectExplorer();
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(13, 18);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("k");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutB);
}

From source file:org.eclipse.che.selenium.refactor.methods.RenamePrivateMethodTest.java

License:Open Source License

@Test(priority = 5)
public void test23() {
    projectExplorer.waitProjectExplorer();
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(13, 18);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("k");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutB);
}

From source file:org.eclipse.che.selenium.refactor.methods.RenamePrivateMethodTest.java

License:Open Source License

@Test(priority = 6)
public void testAnon0() {
    projectExplorer.waitProjectExplorer();
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(13, 18);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("k");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutB);
}

From source file:org.eclipse.che.selenium.refactor.methods.RenameStaticMethodsTest.java

License:Open Source License

private void doRefactoringWithKeys(int cursorPositionLine, int cursorPositionChar, String newName) {
    prepareProjectForRefactor(cursorPositionLine, cursorPositionChar);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("k");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutB);
}

From source file:org.eclipse.che.selenium.refactor.methods.RenameVirtualMethodsTest.java

License:Open Source License

private void doRefactoringWithKeys(int cursorPositionLine, int cursorPositionChar, String newName) {
    prepareProjectForRefactor(cursorPositionLine, cursorPositionChar);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor(newName);//from  w  ww  . j  a v a 2  s  .  c o m
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutA);
}

From source file:org.eclipse.che.selenium.refactor.parameters.RenameParametersTest.java

License:Open Source License

@Test(priority = 1)
public void checkRenameParameters3() throws Exception {
    setFieldsForTest("test3");
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitActiveEditor();/* ww w. j av  a  2 s.  c om*/
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(14, 15);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("j");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    loader.waitOnClosed();
    editor.setCursorToDefinedLineAndChar(14, 23);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("j1");
    loader.waitOnClosed();
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutA);
    editor.closeFileByNameWithSaving("A");
}

From source file:org.eclipse.che.selenium.refactor.parameters.RenameParametersTest.java

License:Open Source License

@Test(priority = 2)
public void checkRenameParameters6() throws Exception {
    setFieldsForTest("test6");
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitActiveEditor();/*from  ww  w . ja va2 s  . c o m*/
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(14, 17);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("k");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutA);
    editor.closeFileByNameWithSaving("A");
}

From source file:org.eclipse.che.selenium.refactor.parameters.RenameParametersTest.java

License:Open Source License

@Test(priority = 3)
public void checkRenameParameters9() throws Exception {
    setFieldsForTest("test9");
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitActiveEditor();//from w w  w  .  j a v  a 2 s . c  o m
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(14, 17);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("j");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutA);
    editor.closeFileByNameWithSaving("A");
}

From source file:org.eclipse.che.selenium.refactor.parameters.RenameParametersTest.java

License:Open Source License

@Test(priority = 4)
public void checkRenameParameters12() throws Exception {
    setFieldsForTest("test12");
    projectExplorer.openItemByPath(pathToCurrentPackage + "/A.java");
    editor.waitActiveEditor();/*from  w ww.j  av  a  2  s . c  om*/
    editor.waitTextIntoEditor(contentFromInA);
    editor.setCursorToDefinedLineAndChar(14, 23);
    editor.launchRefactorFormFromEditor();
    editor.typeTextIntoEditor("j");
    editor.typeTextIntoEditor(Keys.ENTER.toString());
    editor.waitTextIntoEditor(contentFromOutA);
    editor.closeFileByNameWithSaving("A");
}