Package org.openqa.selenium

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


            communityTags.sendKeys(tags);
        }

        public void setCommunityContent(String content) {
            WebElement communityContent = getCommunityContent();
            communityContent.clear();
            communityContent.sendKeys(content);
        }

        public void setCommunityTitle(String title) {
            WebElement communityTitle = getCommunityTitle();
View Full Code Here


            communityContent.sendKeys(content);
        }

        public void setCommunityTitle(String title) {
            WebElement communityTitle = getCommunityTitle();
            communityTitle.clear();
            communityTitle.sendKeys(title);
        }

        public void clickCreate() {
            getCreateBtn().click();
View Full Code Here

      return resultEl.findElement(By.id("pinUnPin"));
    }

    public void setFileLabel(String label) {
      WebElement fileLabel = getFileLabel();
      fileLabel.clear();
      fileLabel.sendKeys(label);
    }

    public void setFileSummary(String summary) {
      WebElement fileSummary = getFileSummary();
View Full Code Here

      fileLabel.sendKeys(label);
    }

    public void setFileSummary(String summary) {
      WebElement fileSummary = getFileSummary();
      fileSummary.clear();
      fileSummary.sendKeys(summary);
    }

    public void setFileVisibility(String visibility) {
      WebElement fileVisibility = getFileVisibility();
View Full Code Here

      return resultEl.findElement(By.id("updateBtn"));
    }

    public void setProfileBuilding(String building) {
      WebElement profileBuilding = getProfileBuilding();
      profileBuilding.clear();
      profileBuilding.sendKeys(building);
    }

    public void setProfileFloor(String floor) {
      WebElement profileFloor = getProfileFloor();
View Full Code Here

      profileBuilding.sendKeys(building);
    }

    public void setProfileFloor(String floor) {
      WebElement profileFloor = getProfileFloor();
      profileFloor.clear();
      profileFloor.sendKeys(floor);
    }

    public void setProfileJobTitle(String jobTitle) {
      WebElement profileJobTitle = getProfileJobTitle();
View Full Code Here

      profileFloor.sendKeys(floor);
    }

    public void setProfileJobTitle(String jobTitle) {
      WebElement profileJobTitle = getProfileJobTitle();
      profileJobTitle.clear();
      profileJobTitle.sendKeys(jobTitle);
    }
   
    public void clickUpdate() {
      getUpdateBtn().click();
View Full Code Here

        /**
         * @param tags
         */
        public void setMemberEmail(String email) {
            WebElement communityTags = getMemberEmail();
            communityTags.clear();
            communityTags.sendKeys(email);
        }

        public void clickRemove() {
            getRemoveBtn().click();
View Full Code Here

        element =
        driver.findElement(By.xpath("//form[@name='someForm']/input[@id='username']"));
    String originalValue = element.getAttribute("value");
    assertEquals(originalValue, ("change"));

    element.clear();
    element.sendKeys("some text");

    element = driver.findElement(By.xpath("//form[@name='someForm']/input[@id='username']"));
    String newFormValue = element.getAttribute("value");
    assertEquals(newFormValue, ("some text"));
View Full Code Here

    WebElement element = driver.findElement(By.id("working"));
    element.sendKeys("Some text");
    String value = element.getAttribute("value");
    assertTrue(value.length() > 0);

    element.clear();
    value = element.getAttribute("value");

    assertEquals(value.length(), (0));
  }
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.