It work's!! 

Thanks a lot!

When i use it in the "step file" (i'm using cucumber framework) it work's! 

But.. when i put this on the "PageObjects" file.. it doesn't work... 

My class is:

require 'rubygems'
require 'watir-webdriver'

class EnquetePage
include PageObject
 text_field(:title, :id => "poll_title")
checkbox(:categoria_primeiro_nivel, :id => "Arquitetura, Casa e Decoração")
checkbox(:categoria_segundo_nivel, :id => "Arquitetura, Casa e 
Decoração::Ambiente")
checkbox(:editoria, :id => "poll_editorias_")
*div(:test,:class => "fields pergunta").legend.click*
text_field(:pergunta, :id => "poll_questions_attributes_0_description")

Thanks again!


Em quinta-feira, 30 de agosto de 2012 12h28min14s UTC-3, Željko Filipin 
escreveu:
>
> On Thu, Aug 30, 2012 at 4:41 PM, Daniela <[email protected]<javascript:>> 
> wrote:
> > I have to click on "legend" tag! to start a javascript! .. 
>
> If it is the only legend tag, this should work:
>
> browser.legend.click
>
> If there are more, try this:
>
> browser.div(:class => "fields pergunta").legend.click
>
> Željko
> --
> filipin.eu 
>  

-- 
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