Example usage for org.openqa.selenium Keys RETURN

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

Introduction

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

Prototype

Keys RETURN

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

Click Source Link

Usage

From source file:org.keycloak.testsuite.pages.social.InstagramLoginPage.java

License:Apache License

@Override
public void login(String user, String password) {
    usernameInput.clear();//from  w w w .  j a  va 2  s .  c  o m
    usernameInput.sendKeys(user);
    passwordInput.sendKeys(password);
    passwordInput.sendKeys(Keys.RETURN);
}

From source file:org.keycloak.testsuite.pages.social.OpenShiftLoginPage.java

License:Apache License

@Override
public void login(String user, String password) {
    usernameInput.sendKeys(user);
    passwordInput.sendKeys(password);
    passwordInput.sendKeys(Keys.RETURN);
}

From source file:org.neo4j.server.webadmin.ConsoleWebIT.java

License:Open Source License

@Test
@Ignore("Broken due to http://code.google.com/p/selenium/issues/detail?id=1723")
public void cypherHasMultilineInput() {
    accessing_the_Shell_console();/*  w w  w  .  j  av a 2s  .  com*/

    wl.writeTo(By.id("console-input"), "start a=node(1)", Keys.RETURN);
    wl.writeTo(By.id("console-input"), "return a", Keys.RETURN);
    wl.writeTo(By.id("console-input"), Keys.RETURN);

    wl.waitForElementToAppear(By.xpath("//li[contains(.,'Node[0]')]"));
}

From source file:org.neo4j.server.webadmin.ConsoleWebIT.java

License:Open Source License

@Test
public void canAccessServerViaHttpConsoleTest() {
    wl.goToWebadminStartPage();/*from   w w w  .  j a v  a2  s  .  com*/
    wl.clickOnTab("Console");
    wl.clickOnLink("HTTP");

    wl.writeTo(By.id("console-input"), "GET /db/data/", Keys.RETURN);

    wl.waitForElementToAppear(By.xpath("//li[contains(.,'200')]"));
}

From source file:org.neo4j.server.webadmin.ConsoleWebIT.java

License:Open Source License

@Test
public void httpConsoleShows404ProperlyTest() {
    wl.goToWebadminStartPage();/*  www .  j a  va2  s  .  co m*/
    wl.clickOnTab("Console");
    wl.clickOnLink("HTTP");

    wl.writeTo(By.id("console-input"), "GET /asd/ads/", Keys.RETURN);

    wl.waitForElementToAppear(By.xpath("//li[contains(.,'404')]"));
}

From source file:org.neo4j.server.webadmin.ConsoleWebIT.java

License:Open Source License

@Test
public void httpConsoleShowsSyntaxErrorsTest() {
    wl.goToWebadminStartPage();/*from  ww w  . ja  va2s. c om*/
    wl.clickOnTab("Console");
    wl.clickOnLink("HTTP");

    wl.writeTo(By.id("console-input"), "blus 12 blah blah", Keys.RETURN);

    wl.waitForElementToAppear(By.xpath("//li[contains(.,'Invalid')]"));
}

From source file:org.neo4j.server.webadmin.ConsoleWebIT.java

License:Open Source License

@Test
public void httpConsoleShowsJSONErrorsTest() {
    wl.goToWebadminStartPage();//from   ww w .  j  av a2s . c om
    wl.clickOnTab("Console");
    wl.clickOnLink("HTTP");

    wl.writeTo(By.id("console-input"), "POST / {blah}", Keys.RETURN);

    wl.waitForElementToAppear(By.xpath("//li[contains(.,'Invalid')]"));
}

From source file:org.neo4j.server.webadmin.DatabrowserWebIT.java

License:Open Source License

@Test
public void canSetNodePropertyTest() {
    wl.goToWebadminStartPage();//from www.j  av a2  s  .c  o m
    wl.createNodeInDataBrowser();

    wl.clickOnButton("Add property");

    wl.waitForElementToAppear(By.xpath("//li[1]/ul/li//input[@class='property-key']"));

    wl.writeTo(By.xpath("//li[1]/ul/li//input[@class='property-key']"), "mykey");
    wl.writeTo(By.xpath("//li[1]/ul/li//input[@class='property-value']"), "12", Keys.RETURN);

    wl.getElement(By.xpath("//div[@class='data-save-properties button']")).waitForTextToChangeTo("Saved");

    wl.searchForInDataBrowser(wl.getCurrentDatabrowserItemSubtitle());

    propertyShouldHaveValue("mykey", "12");
}

From source file:org.neo4j.server.webadmin.DatabrowserWebIT.java

License:Open Source License

@Test
public void canSetRelationshipPropertiesTest() {
    canCreateRelationshipTest();//from  w ww .j  av a  2  s .  c  om

    wl.clickOnButton("Add property");

    wl.waitForElementToAppear(By.xpath("//li[1]/ul/li//input[@class='property-key']"));

    wl.writeTo(By.xpath("//li[1]/ul/li//input[@class='property-key']"), "mykey");
    wl.writeTo(By.xpath("//li[1]/ul/li//input[@class='property-value']"), "12", Keys.RETURN);

    wl.getElement(By.xpath("//div[@class='data-save-properties button']")).waitForTextToChangeTo("Saved");

    wl.searchForInDataBrowser(wl.getCurrentDatabrowserItemSubtitle());

    propertyShouldHaveValue("mykey", "12");

}

From source file:org.neo4j.server.webadmin.LoadingSpinnerWebIT.java

License:Open Source License

@Test
@Ignore("Broken due to http://code.google.com/p/selenium/issues/detail?id=1723")
public void showsLoadingSpinnerTest() {

    wl.goToWebadminStartPage();//from  w  ww .j av a 2  s  .c o m
    wl.clickOnTab("Console");
    wl.writeTo(By.id("console-input"), "Thread.sleep(3000);", Keys.RETURN);
    wl.waitForElementToAppear(By.xpath("//div[@class='loading-spinner']"));
}