GeekInterview.com
Series: Subject: Topic:
Question: 7 of 142

Identifying HTML Elements with same name

In an HTML page, if there are three checkboxes and all are having same names internally and externally, then while recording how it would be distinguished?
Asked by: darshanp | Member Since May-2009 | Asked on: Jun 4th, 2009

View all questions by darshanp

Showing Answers 1 - 3 of 3 Answers
InkThink

Answered On : Jul 15th, 2009

View all answers by InkThink

We should add some other property(through object identification) which uniquely identifies each checkbox. If there are no other properties which uniquely identify the object and the number of items is fixed, I guess you can use "index".

Yes  1 User has rated as useful.
  
Login to rate this answer.
ashishks

Answered On : Aug 21st, 2009

View all answers by ashishks

You can use xpath or class name associated with check box or label associated with checkbox to identifiy same name elements.

Yes  1 User has rated as useful.
  
Login to rate this answer.

In case of QTP you can use Index as one of proprties of the object.

Yes  1 User has rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.