How do you verify if the checkbox/radio is checked or not?



How do you verify if the checkbox/radio is checked or not?..

Answer / Mr Sandeep Kumar

To verify if a checkbox or radio button is checked, locate the element using its WebElement object and then compare its selected state. If the checkbox, for example, has the attribute 'checked' equal to 'true', then it is checked; otherwise, it's not.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What is object repository in selenium webdriver?

1 Answers  


What selenium components do you know?

1 Answers  


How to developer selenium test cases?

1 Answers  


How can we type text in a textbox element using selenium?

1 Answers  


How to capture screenshot in webdriver?

1 Answers  


How to insert a start point in selenium ide?

1 Answers  


What is the difference between verify and assert commands?

1 Answers  


How to perform right click action (context click) in selenium webdriver?

1 Answers  


What kind of mouse actions can be performed in selenium?

1 Answers  


What is Selenese?

1 Answers  


Explain the line of code webdriver driver = new firefoxdriver()?

1 Answers  


What kinds of tests can be run with the selenium framework?

1 Answers  


Categories