Course Content

Course Content


  • isSelected(): Determines whether or not a radio button is selected.
  • isDisplayed(): Determines whether or not a radion button is shown on the web page.
  • isEnabled() determines whether or not a radion button is active.
#BBD0E0 »

  • Making use of ID Attributes.
  • Is Selected Is Selected Is Selected Is Selected Is Selected I ()
  • Making use of a name.
  • Using Element Value.
  • Using the CSS Selector.
  • Using XPATH.

Selecting elements include checkboxes and radio buttons. Checkboxes allow users to select items from a limited number of options, whereas radio buttons allow users to select exactly one option from a list of multiple options.

The isSelected() method of Selenium Webdriver returns a boolean value as output when checking the state of a radio button or checkbox.

We have the isSelected() method to check if a certain radio button or checkbox is chosen by default. This similarly gives a boolean value (true if the element is selected, false otherwise). Check to see if the radio button labelled 'Magazines' is selected by default.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere