package basicexample;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class RadioCheckBox {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","c:\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://shivaconceptsolution.com/test.html");
driver.manage().window().maximize();
//driver.findElement(By.name("r1")).click();
driver.findElement(By.cssSelector("input[value=FeMale]")).click();
driver.findElement(By.cssSelector("input[value=CPP]")).click();
}
}
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class RadioCheckBox {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","c:\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://shivaconceptsolution.com/test.html");
driver.manage().window().maximize();
//driver.findElement(By.name("r1")).click();
driver.findElement(By.cssSelector("input[value=FeMale]")).click();
driver.findElement(By.cssSelector("input[value=CPP]")).click();
}
}
Post a Comment
POST Answer of Questions and ASK to Doubt