Radio button is a type of HTML tag which contains the number of options and it allows the user to select any one of the options.
The main difference between the radio button and checkbox is, in radio button user can able to select only one option but in the checkbox, the user can select one or many options.
You can easily handle the radio button with selenium webdriver in Java. First, you need to locate the option that you want to select in radio button with any one of the locators like XPath, CSS, Id or name.
Once you successfully located the radio button option, you need to use click() method to select the radio button options.
If you want to uncheck any of the radio button options, you need to perform click on any other options in the radio button
Along with that, you can use the below methods in radio button web element
isDisplayed()
isEnabled()
isSelected()
isDisplayed() -- It return true if the radio button is present on the web page.
isEnabled()-- It return true if the radio button is enabled(ready to interact) on the webpage
isSelected()- It return true if the option in the radio button is already selected.
********* Tutorial Playlists *********
Google apps script tutorial for beginners- https://bit.ly/google-apps-script-tut...
Automate internet explorer with VBA- https://goo.gl/Xmy8Af
Autoit tutorials for beginners- https://goo.gl/JHB1E2
Selenium Webdriver tutorials for beginners -https://goo.gl/QqxTrF
***** Contact me *******
Blog: http://www.amarindaz.com/contact/
FB page: / amarindaz
****** Books written by me *******
Autoit tutorials for beginners: http://amzn.to/2GjaDbD
Excel VBA for beginners: http://amzn.to/2nhI067
****** Productivity tool ********
My Favorite YouTube Tools ➜ https://goo.gl/MX9Z4p and ➜https://goo.gl/UW1uRX
****** Gear Used To Shoot This Video *****
_Audio & Microphone
http://amzn.to/2GibdGu
*******Learning partner*******
Video courses ➜https://click.linksynergy.com/fs-bin/...
Don't forget to subscribe! https://goo.gl/J2453w
💼 To Hire Me 👉 https://fwd.cx/WLGgpTiZW5HK
Checkout my app 👉 https://www.myfreshtools.com