Re: Query on how to select a checkbox

Michael Habbert <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Am 08.01.2014 10:24, schrieb Iain Kennelly:
> Hi,
>
> Thanks for the reply.
>
> But we would need to select based on either the number or the name.
>
> i.e. 57 is different to 58
>
> Our html would be :
>
> <inputclass="checkbox" type="checkbox" value="10137,Test Group,131,1"
> name="tcf_mpf_file_groups_[57]">
>
> <span>TestGroup</span>
>
> <inputclass="checkbox" type="checkbox" value="10138,Test Group2,132,1"
> name="tcf_mpf_file_groups_[58]">
>
> <span>TestGroup2</span>
>
> So how can we select either of these without using the name?
>
> thanks,
>
> /Iain…

So is this case we do generate an id like id="checkbox-group-id" to each 
element of the list.

But any way the main focus should be what do you intend to test? Why are 
the order in the list varies on what reason?

cheers

Michael Habbert
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.