Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

Is there any way to find the count of fields or lables in a particular screen using selenium IDE?

share|improve this question
add comment

2 Answers

jQuery('span').size() will give you the number of span elements in the page.

share|improve this answer
add comment

Reference from Selenium IDE:

storeXpathCount: Returns the number of nodes that match the specified xpath, eg. "//table" would give the number of tables.

storeCssCount: Returns the number of nodes that match the specified selector, eg. "css=table" would give the number of tables.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.