Yes you are right. But my problem is ids and names are dynamically generated
in the drop down. I want to select one of them.

Please tell me how to select one of the options among- Nature Picures, Test
123 adn Pictures. And these are dynamically generated.

<option id="1254542" name="profile" title="Nature Picures">Nature
Picures</option>
<option id="5674845" name="profile" title="Test 123">Test 123</option>
<option id="5245465" name="profile" title="Pictures">Pictures</option>

Or is there any method or way to get the contents of the drop down?


Thanks,
Amit


On Thu, May 12, 2011 at 2:05 PM, Željko Filipin <
[email protected]> wrote:

> On Thu, May 12, 2011 at 10:29 AM, Amit Bobade <[email protected]>
> wrote:
> >Now I want to select one of the values at random
>
> Random is another story. :)
>
> Getting a random number is Ruby feature, does not have anything to do with
> Watir, for example:
>
>
> http://stackoverflow.com/questions/198460/how-to-get-a-random-number-in-ruby
>
> When you have a random number then you can select a value.
>
> Željko
>
>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to