Neil Daniell wrote:
>  use Watir to click on secondTab but cannot seem to get the following to work:
> $ie = IE.new
> ....
> $ie.div(:index, 1).table(:index,1)[1][2].span(:index, 1).click
> Can someone indicate to me how I can fix this?
> Is it possible to select an element via the class?
>   

Using Watir 1.5, you can do

$ie.div(:class, 'TabGroup') ...

> Page source:(jsp)
>
> <div class="TabGroup">
> <table width="100%" cellpadding="0" cellspacing="0">
>   


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to