Package org.openqa.selenium

Examples of org.openqa.selenium.WebElement.click()


    wasaviFrame = invokeWasavi();
    if (wasaviFrame == null) {
      fail("runtimeOverrideSettings: cannot find wasaviFrame, phase 2");
    }
 
    wasaviFrame.click();
    Wasavi.sendNoWait("a\t\nabc\u001b:wq\n");
    sleep(1000);
    assertEquals("#1-1", "\t\n\tabc", findElement(By.id("t2")).getAttribute("value"));

    driver.navigate().to(currentUrl);
View Full Code Here


        if (sectionInitializer == null) {
          System.out.println("section initializer not found.");
          return null;
        }

        sectionInitializer.click();
      }
      else {
        WebElement reset = findElement(By.id("reset-button"));
        if (reset == null) {
          System.out.println("reset button not found.");
View Full Code Here

        if (reset == null) {
          System.out.println("reset button not found.");
          return null;
        }

        reset.click();

        WebElement ro = findElement(By.id("readonly-checkbox"));
        if (ro == null) {
          System.out.println("readonly checkbox not found.");
          return null;
View Full Code Here

          return null;
        }
        String roChecked = ro.getAttribute("checked");
        if (isReadonlyElement && roChecked == null
        ||  !isReadonlyElement && roChecked != null) {
          ro.click();
          System.out.println("readonly checkbox clicked.");
        }

        new WebDriverWait(driver, 1).until(
          new ExpectedCondition<Boolean>() {
View Full Code Here

        return null;
      }
      String useDivChecked = targetSwitcher.getAttribute("checked");
      if (wasaviTargetID.equals("t2") && useDivChecked != null
      ||  wasaviTargetID.equals("t3") && useDivChecked == null) {
        targetSwitcher.click();
        System.out.println("target switcher clicked.");
      }

      //
      target.click();
View Full Code Here

        if (launcher == null) {
          System.out.println("launch button not found.");
          return null;
        }

        launcher.click();
        //System.out.println("launcher click");
        break;
      }

      try {
View Full Code Here

    catch (org.openqa.selenium.UnhandledAlertException e) {
      wasaviFrame = null;
    }

    if (wasaviFrame != null) {
      wasaviFrame.click();
    }

    return wasaviFrame;
  }
View Full Code Here

        return table.getCell(row, column);
    }

    private void clearSelection() {
        WebElement clearButton = vaadinElementById(CLEAR_BUTTON_ID);
        clearButton.click();
    }

    /**
     * Mouse down on element + initial offset -> Moves the "move offset" ->
     * Mouse up
View Full Code Here

    public void testNavigationActionWithError() throws MalformedURLException
    {
        driver.get(new URL(contextPath, "origin.xhtml").toString());

        WebElement button = driver.findElement(By.id("event:pb002ActionWithError"));
        button.click();
        // Index Page is shown instead of DefaultErrorView because PreViewConfigNavigateEvent changed the navigation
        Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("indexPage"), "You arrived at index page")
                .apply(driver));
    }
View Full Code Here

    public void testNavigationActionWithParameter() throws MalformedURLException
    {
        driver.get(new URL(contextPath, "origin.xhtml").toString());

        WebElement button = driver.findElement(By.id("parameter:pb006AnyMethod"));
        button.click();
        Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("customErrorPage"),
                "This is a custom error page")
                .apply(driver));
    }
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.