How To Enter The Value In Text Box using Selenium Webdriver

How Enter the value in Text Box using Selenium 
By Using Sendkeys Method we Enter the value in Text Box In Selenium WebDriver using java

Sendkeys();

 Syantax-
Syntax of send keys  method is given below

 driver.findElement(By.id("pass")).sendKeys("abc@123");

Selenium Code For Entering The value in Text Box Using Selenium webdriver 

package automationtesting;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class SendKeysMethod
 {
 public static void main(String[] args)
 {
              System.setProperty("webdriver.chrome.driver","D:\\Sandeep\\Soft\\chromedriver.exe");
      WebDriver driver= new ChromeDriver();
      driver.get("https://facebook.com");
      driver.findElement(By.id("email")).sendKeys("sandeep@gamil.com");
     driver.findElement(By.id("pass")).sendKeys("abc@123");

}
       }


Hope !!! The above Code For " How to type in text box using Selenium Webdriver " Helpful for you ...
Team ,
QA acharya

Tags: how to enter the value in text box selenium webdriver , how to type in text box in selenium using java , Entering the value in text box using selenium webdriver.
Related Post:
How To Enter The Value In Text Box using Selenium Webdriver

Post a Comment

0 Comments