Package org.openqa.selenium

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


    WebElement addANewFilter = driver.findElements(By.linkText("Add a New Filter")).get(0);
    followLink(addANewFilter);
    WebElement filterInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"legend:contains('State Filters')\").parent().find('div > input[type=\"text\"]')[0];");
    filterInput.clear();
    filterInput.sendKeys(" ");

    WebElement addANewField = driver.findElements(By.linkText("Add a New Field")).get(0);
    followLink(addANewField);
    WebElement fieldIdInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
View Full Code Here


    WebElement addANewField = driver.findElements(By.linkText("Add a New Field")).get(0);
    followLink(addANewField);
    WebElement fieldIdInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"legend:contains('Form Field Input Values')\").parent().find('div > input[type=\"text\"]')[0];");
    fieldIdInput.clear();
    fieldIdInput.sendKeys(" ");
    WebElement fieldValueInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"legend:contains('Form Field Input Values')\").parent().find('div > input[type=\"text\"]')[1];");
    fieldValueInput.clear();
    fieldValueInput.sendKeys(" ");
View Full Code Here

        "return $(\"legend:contains('Form Field Input Values')\").parent().find('div > input[type=\"text\"]')[0];");
    fieldIdInput.clear();
    fieldIdInput.sendKeys(" ");
    WebElement fieldValueInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"legend:contains('Form Field Input Values')\").parent().find('div > input[type=\"text\"]')[1];");
    fieldValueInput.clear();
    fieldValueInput.sendKeys(" ");

    WebElement assertionsLink = driver.findElements(By.linkText("Assertions")).get(0);
    followLink(assertionsLink);
View Full Code Here

    addANewConditionLink = driver.findElements(By.linkText("Add a New Condition")).get(0);
    followLink(addANewConditionLink);
    WebElement newConditionInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"legend:contains('Invariants')\").parent().find('div > input[type=\"text\"]')[0];");
    newConditionInput.clear();
    newConditionInput.sendKeys("crawljax");

    List<WebElement> saveConfigurationLink = driver.findElements(By.linkText("Save Configuration"));
    followLink(saveConfigurationLink.get(0));
View Full Code Here

    WebElement copyConfigurationLink = driver.findElements(By.linkText("New Copy")).get(0);
    followLink(copyConfigurationLink);

    WebElement nameInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"label:contains('Name:')\").parent().find('div > input')[0];");
    nameInput.clear();
    nameInput.sendKeys("copy");

    WebElement saveConfigurationLink = driver.findElements(By.linkText("Save Configuration")).get(0);
    followLink(saveConfigurationLink);
View Full Code Here

    openConfiguration();

    WebElement maxCrawlStates = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"label:contains('Maximum Crawl States:')\").parent().find('div > input')[0];");
    maxCrawlStates.clear();
    maxCrawlStates.sendKeys("3");

    maxCrawlStates = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"label:contains('Maximum Crawl States:')\").parent().find('div > input')[0];");
    assertTrue(maxCrawlStates.getAttribute("value").equals("3"));
View Full Code Here

    WebElement addANewConditionLink = driver.findElements(By.linkText("Add a New Condition")).get(0);
    followLink(addANewConditionLink);

    WebElement pageConditionInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
        "return $(\"legend:contains('Page Conditions')\").parent().find('div > input[type=\"text\"]')[0];");
    pageConditionInput.clear();
    pageConditionInput.sendKeys("crawljax");

    WebElement addANewFilter = driver.findElements(By.linkText("Add a New Filter")).get(0);
    followLink(addANewFilter);
    WebElement filterInput = (WebElement) ((JavascriptExecutor)driver).executeScript(
View Full Code Here

    mouseDirector.openRowContextMenu(12);
   
    click(".z-menupopup:visible .zsmenuitem-rowHeight");
    JQuery $input = jq("$headerSize");
    WebElement input = $input.getWebElement();
    input.clear();
    input.sendKeys("40");
    new JavascriptActions(webDriver)
    .keyDown($input, Keycode.ENTER.intValue())
    .keyUp($input, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

    rightClick(jq(".zssheettab").first());
    click(".zsmenuitem-renameSheet");
   
    JQuery $editor = jq(".zssheettab-rename-textbox");
    WebElement editor = $editor.getWebElement();
    editor.clear();
    editor.sendKeys("PP");
    new JavascriptActions(webDriver)
    .keyDown($editor, Keycode.ENTER.intValue())
    .keyUp($editor, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

    //rename twice
    rightClick(jq(".zssheettab").first());
    click(".zsmenuitem-renameSheet");
   
    editor = jq(".zssheettab-rename-textbox").getWebElement();
    editor.clear();
    editor.sendKeys("SS");
    new JavascriptActions(webDriver)
    .keyDown($editor, Keycode.ENTER.intValue())
    .keyUp($editor, Keycode.ENTER.intValue())
    .perform();
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.