Package org.openqa.selenium.interactions

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


    getStrokeSender();
    strokeSender.setup();

    Actions act = new Actions(driver);
    callback.exec(act);
    act.perform();

    WebElement elm = strokeSender.waitCommandCompletion();
    strokeSender.finish(elm);

    inputModeOfWacthTarget = inputModeOfWacthTargetDefault;
View Full Code Here


        // following with WebElements from Page Fragments
        builder.click(abstractPageFragmentStub.getLocatorRefByXPath());
        // following with List of WebElements from Page Fragments
        builder.click(abstractPageFragmentStub.getSpansInPageFragment().get(0));

        builder.perform();
    }

    @Test
    public void testInitializationOfEmbeddedPageFragmentsInOtherPageFragments() {
        WebElement element = pageFragmentWithEmbeddedAnotherPageFragment.getEmbeddedPageFragment().getLocatorRefByClassName();
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");
      sourceMenuEntry.click();
View Full Code Here

     
      // 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;
      List<WebElement> editors = driver_.findElements(
View Full Code Here

              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_);
      dismiss.sendKeys(Keys.ESCAPE);
View Full Code Here

     
      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'"));
     
      closeUnsavedRFile();
View Full Code Here

       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");
   }
  
   @Test
View Full Code Here

       Actions popup = new Actions(driver_);
       popup.sendKeys(Keys.ESCAPE);
       popup.sendKeys("print");
       popup.sendKeys(Keys.TAB);
       popup.perform();
      
       (new WebDriverWait(driver_, 5)).until(new ExpectedCondition<Boolean>() {
          public Boolean apply(WebDriver d) {
             List<WebElement>elements = driver_.findElements(By.id(
                   ElementIds.getElementId(ElementIds.POPUP_COMPLETIONS)));
View Full Code Here

   public void testPlotGeneration() {
      ConsoleTestUtils.resumeConsoleInteraction(driver_);

      Actions plotCars = new Actions(driver_);
      plotCars.sendKeys(Keys.ESCAPE + "plot(cars)" + Keys.ENTER);
      plotCars.perform();
     
      // Wait for the Plot window to activate
      final WebElement plotWindow = (new WebDriverWait(driver_, 5))
        .until(ExpectedConditions.presenceOfElementLocated(
              By.id(ElementIds.getElementId(ElementIds.PLOT_IMAGE_FRAME))));
View Full Code Here

   @Test
   public void testInvokeHelp() {
      ConsoleTestUtils.resumeConsoleInteraction(driver_);
      Actions help = new Actions(driver_);
      help.sendKeys(Keys.ESCAPE + "?lapply" + Keys.ENTER);
      help.perform();

      // Wait for the Help window to activate
      final WebElement helpWindow = (new WebDriverWait(driver_, 5))
        .until(ExpectedConditions.presenceOfElementLocated(
              By.id(ElementIds.getElementId(ElementIds.HELP_FRAME))));
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.