#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Handling Checkboxes, Radio Buttons & Date Pickers

Handling Checkboxes

Checkboxes are toggled using the standard click method, but it's important to first check their current state using is_selected() to avoid accidentally unchecking a box that's already checked.

Handling Radio Buttons

Radio buttons work similarly to checkboxes but only allow one selection within a group. Selenium locates the specific radio input by its value or associated label and clicks it directly.

Automating Date Pickers

Date pickers vary widely in implementation - some are simple text inputs, while others are interactive calendar widgets. Handling them usually requires either typing a formatted date directly or clicking through calendar day elements.

Verifying State Changes

MethodPurpose
is_selected()Checks whether a checkbox or radio button is currently selected
is_enabled()Checks whether an element can currently be interacted with
is_displayed()Checks whether an element is currently visible on the page
Form controls aren't the only tricky interactions - automating file uploads and downloads brings its own unique challenges.

Ready to master Selenium Training Course?

Join Uncodemy's hands-on training and build real automation skills with expert mentors.

Explore Course