.
Question : How To Select Radio Button in Selenium webdriver using java ?
Answer :
Click method is used to select the radio button in selenium Webdriver.
Click() method
Click method in selenium used to perform various mouse based operation.In selenium click method is use for various purpose some of them listed below
- Selecting the radio button
- Clicking on Check box
- Clicking on Link
- Clicking on radio button
- Mouse Drag and Drop
- Click and Hold etc.
Example
Example of Click method is given below
driver.findElement(By.id("vfb-7-1")).click();
Selenium Code to select the radio button in selenium webdriver .
Code:
Answer :
Click method is used to select the radio button in selenium Webdriver.
Click() method
Click method in selenium used to perform various mouse based operation.In selenium click method is use for various purpose some of them listed below
- Selecting the radio button
- Clicking on Check box
- Clicking on Link
- Clicking on radio button
- Mouse Drag and Drop
- Click and Hold etc.
Example
Example of Click method is given below
driver.findElement(By.id("vfb-7-1")).click();
Selenium Code to select the radio button in selenium webdriver .
Code:
package automation;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import
org.openqa.selenium.chrome.ChromeDriver;
public class ClickMethod
{
{
public static void main(String[] args)
{
System.setProperty("webdriver.chrome.driver", "C:\\Software\\chromedriver.exe");
System.setProperty("webdriver.chrome.driver", "C:\\Software\\chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.manage().window().maximize();
driver.navigate().to("http://demo.guru99.com/test/radio.html");
driver.findElement(By.id("vfb-7-1")).click();
}
}
In this tutorial we learn how to Select Radio button in selenium webdriver with various types .Hope this tutorial helpful for you 😊
Thanks & Regards
Sandeep Yadav
Related Post :
Important Tags :
How to select the radio button in selenium Webdriver , How to select the radio button , how to click on radio button in selenium webdriver , how to select the radio button in selenium webdriver java
In this tutorial we learn how to Select Radio button in selenium webdriver with various types .Hope this tutorial helpful for you 😊
Thanks & Regards
Sandeep Yadav
Related Post :
- How to click on check box in selenium webdriver
- How to select value from dropdown in selenium webdriver
- How to delete cookies in selenium webdriver
- How to Click on link in selenium webdriver
Important Tags :
How to select the radio button in selenium Webdriver , How to select the radio button , how to click on radio button in selenium webdriver , how to select the radio button in selenium webdriver java
How To Select Radio Button in Selenium webdriver |
0 Comments