Need Help with Select List option tags

4 views
Skip to first unread message

Usman Hussain

unread,
Nov 8, 2010, 10:03:38 AM11/8/10
to webdriver
Hi Guys,

Im using watir-webdriver and ive come across a small problem.

here is the HTML:

<select size="8" name="allItems" style="width: 100%;" id="allItems">
<option value="/content/managedasset/newsinternational/slideshow/
USMAN">/content/managedasset/newsinternational/slideshow/USMAN</
option>
<option value="/content/managedasset/newsinternational/slideshow/
in_100_percent_welcome">/content/managedasset/newsinternational/
slideshow/in_100_percent_welcome</option>
<option value="/content/managedasset/newsinternational/slideshow/
in_meg2k">/content/managedasset/newsinternational/slideshow/in_meg2k</
option>
<option value="/content/managedasset/newsinternational/slideshow/
in_breakfastbingo">/content/managedasset/newsinternational/slideshow/
in_breakfastbingo</option>
<option value="/content/managedasset/newsinternational/slideshow/
in_cashnbargains">/content/managedasset/newsinternational/slideshow/
in_cashnbargains</option><option value="/content/managedasset/
newsinternational/slideshow/in_200_percent_welcome">/content/
managedasset/newsinternational/slideshow/in_200_percent_welcome</
option>
<option value="/content/managedasset/newsinternational/slideshow/
in_raf">/content/managedasset/newsinternational/slideshow/in_raf</
option><option value="/content/managedasset/newsinternational/
slideshow/in_reload">/content/managedasset/newsinternational/slideshow/
in_reload</option>
</select>

there are two things i need to happen here.
The last option tag was added by myself. so i need to find out how
many options tags there are so that i can move my new option to the
top of the list.

The reason for this is because i do not know how many options there
will be in the list so i do not know how many times i have to click on
the UP button to get my option to the top of the list.

Any help would be great help.

Kind regards,
Usman Hussain

Jari Bakken

unread,
Nov 8, 2010, 10:50:12 AM11/8/10
to webd...@googlegroups.com
On Mon, Nov 8, 2010 at 4:03 PM, Usman Hussain <usmanh...@gmail.com> wrote:
> Hi Guys,
>
> Im using watir-webdriver and ive come across a small problem.
>

Please don't double post. I've answered you on the wtr-general list.

Sarndeep Nijjar

unread,
Nov 8, 2010, 10:53:33 AM11/8/10
to webd...@googlegroups.com
Yes please dont double post, it goes against the rules of the forum and life.

If everyone in the world did what you did Usman, double posted....there would be alot of wasted server storage being used up.....

you think thats good Usman?, im frankly quite upset about it.


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.


Simon Stewart

unread,
Nov 8, 2010, 11:13:09 AM11/8/10
to webd...@googlegroups.com
Sarndeep, please remember that there's a human being at the end of
your email, and they can't judge your tone without hints. I'm guessing
that your reply was some sort of joke, but if not then there was no
need for it. Jari's reminder was polite and enough.

Simon

Sarndeep Nijjar

unread,
Nov 8, 2010, 11:20:27 AM11/8/10
to webd...@googlegroups.com
Sorry Simon, i get real emotional when it comes to people double posting. I let my emotions control my actions on this occasion....im human sometimes that happens.

Sorry if I upset you Usman, but please dont double post again.

Usman Hussain

unread,
Nov 8, 2010, 11:24:58 AM11/8/10
to webdriver
Jair's reply was fair and i only posted double because i thought i
could get a broader range of answers. in future ill post to one board.
Im still to try the solution as ive got problems with the environment.
but as soon as i do ill let you know how i get on. thanks for your
help.

Simon - Sarndeep is a mate of mine. we have worked together so i know
he is just trying to have a laugh.

Sarndeep - I hope i didnt upset you to much by double posting... i
know how you get... please stay away from the balcony...

Kind regards,
Usman Hussain

On Nov 8, 4:20 pm, Sarndeep Nijjar <sarndeepnij...@googlemail.com>
wrote:
> Sorry Simon, i get real emotional when it comes to people double posting. I
> let my emotions control my actions on this occasion....im human sometimes
> that happens.
>
> Sorry if I upset you Usman, but please dont double post again.
>
> On Mon, Nov 8, 2010 at 4:13 PM, Simon Stewart <simon.m.stew...@gmail.com>wrote:
>
>
>
> > Sarndeep, please remember that there's a human being at the end of
> > your email, and they can't judge your tone without hints. I'm guessing
> > that your reply was some sort of joke, but if not then there was no
> > need for it. Jari's reminder was polite and enough.
>
> > Simon
>
> > On Mon, Nov 8, 2010 at 3:53 PM, Sarndeep Nijjar
> > <sarndeepnij...@googlemail.com> wrote:
> > > Yes please dont double post, it goes against the rules of the forum and
> > > life.
>
> > > If everyone in the world did what you did Usman, double posted....there
> > > would be alot of wasted server storage being used up.....
>
> > > you think thats good Usman?, im frankly quite upset about it.
>
> > > On Mon, Nov 8, 2010 at 3:50 PM, Jari Bakken <jari.bak...@gmail.com>
> > wrote:
>
> > >> On Mon, Nov 8, 2010 at 4:03 PM, Usman Hussain <usmanhhuss...@gmail.com>
> > >> wrote:
> > >> > Hi Guys,
>
> > >> > Im using watir-webdriver and ive come across a small problem.
>
> > >> Please don't double post. I've answered you on the wtr-general list.
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > Groups
> > >> "webdriver" group.
> > >> To post to this group, send email to webd...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups .com>
> > .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/webdriver?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "webdriver" group.
> > > To post to this group, send email to webd...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups .com>
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/webdriver?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "webdriver" group.
> > To post to this group, send email to webd...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups .com>
> > .

Sarndeep Nijjar

unread,
Nov 8, 2010, 11:29:15 AM11/8/10
to webd...@googlegroups.com
@Usman......you are no friend of mine.

Im glad you have seen that double posting is a deteriment to forums, and you wont do it in the future.

Thanks
Sarndeep

To unsubscribe from this group, send email to webdriver+...@googlegroups.com.

Simon Stewart

unread,
Nov 8, 2010, 11:29:39 AM11/8/10
to webd...@googlegroups.com
Thank you. I appreciate it.

Simon

On Mon, Nov 8, 2010 at 4:20 PM, Sarndeep Nijjar

Reply all
Reply to author
Forward
0 new messages