Package org.openqa.selenium.interactions

Examples of org.openqa.selenium.interactions.Actions.sendKeys()


                }
                    builder.build().perform();
                    break;
                case DELETE:
                    String ctrlADel = Keys.chord(Keys.CONTROL, "a", Keys.DELETE);
                    builder.sendKeys(root, ctrlADel);
                    builder.build().perform();
                    break;
                case ESCAPE_SQ:
                    StringBuilder sb = new StringBuilder();
                    for (int i = 0; i < valueLength; i++) {
View Full Code Here


      createRFile();
     
      // Type some code into the file. Note that the matching brace is auto
      // completed.
      Actions a = new Actions(driver_);
      a.sendKeys("f <- function() {" + Keys.ENTER);
      a.sendKeys(Keys.TAB + "42");
      a.perform();
     
      // Source the entire file
      WebElement sourceMenuEntry = MenuNavigator.getMenuItem(driver_,
View Full Code Here

     
      // Type some code into the file. Note that the matching brace is auto
      // completed.
      Actions a = new Actions(driver_);
      a.sendKeys("f <- function() {" + Keys.ENTER);
      a.sendKeys(Keys.TAB + "42");
      a.perform();
     
      // Source the entire file
      WebElement sourceMenuEntry = MenuNavigator.getMenuItem(driver_,
            "Code", "Source");
View Full Code Here

      createRFile();
     
      // Type some code into the file
      String preReplaceCode = "foo <- 'bar'";
      Actions a = new Actions(driver_);
      a.sendKeys(preReplaceCode + Keys.ENTER);
      a.perform();
     
      // Find the ACE editor instance that the code appears in. (CONSIDER:
      // This is not the best way to find the code editor instance.)
      WebElement editor = null;
View Full Code Here

        .until(ExpectedConditions.presenceOfElementLocated(
              By.id(ElementIds.getElementId(ElementIds.FIND_REPLACE_BAR))));
     
      // Type the text and the text to be replaced (replace 'bar' with 'foo')
      Actions rep = new Actions(driver_);
      rep.sendKeys("bar" + Keys.TAB + "foo" + Keys.ENTER);
      rep.perform();
     
      DialogTestUtils.respondToModalDialog(driver_, "OK");
     
      Actions dismiss = new Actions(driver_);
View Full Code Here

      rep.perform();
     
      DialogTestUtils.respondToModalDialog(driver_, "OK");
     
      Actions dismiss = new Actions(driver_);
      dismiss.sendKeys(Keys.ESCAPE);
      dismiss.perform();
     
      // Ensure that the source has been updated
      Assert.assertTrue(editor.getText().contains("foo <- 'foo'"));
     
View Full Code Here

   }
  
   @Test
   public void testBasicRInteraction() {
       Actions do42 = new Actions(driver_);
       do42.sendKeys(Keys.chord(Keys.CONTROL, "l"));
       do42.sendKeys(Keys.ESCAPE);
       do42.sendKeys("41 + 1");
       do42.sendKeys(Keys.ENTER);
       do42.perform();
View Full Code Here

  
   @Test
   public void testBasicRInteraction() {
       Actions do42 = new Actions(driver_);
       do42.sendKeys(Keys.chord(Keys.CONTROL, "l"));
       do42.sendKeys(Keys.ESCAPE);
       do42.sendKeys("41 + 1");
       do42.sendKeys(Keys.ENTER);
       do42.perform();

       ConsoleTestUtils.waitForConsoleContainsText(driver_, "42");
View Full Code Here

   @Test
   public void testBasicRInteraction() {
       Actions do42 = new Actions(driver_);
       do42.sendKeys(Keys.chord(Keys.CONTROL, "l"));
       do42.sendKeys(Keys.ESCAPE);
       do42.sendKeys("41 + 1");
       do42.sendKeys(Keys.ENTER);
       do42.perform();

       ConsoleTestUtils.waitForConsoleContainsText(driver_, "42");
   }
View Full Code Here

   public void testBasicRInteraction() {
       Actions do42 = new Actions(driver_);
       do42.sendKeys(Keys.chord(Keys.CONTROL, "l"));
       do42.sendKeys(Keys.ESCAPE);
       do42.sendKeys("41 + 1");
       do42.sendKeys(Keys.ENTER);
       do42.perform();

       ConsoleTestUtils.waitForConsoleContainsText(driver_, "42");
   }
  
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.