Thanks Bret. I added your code to Watir module and now I can click h4
headlines.
module Watir
class H4 < NonControlElement
TAG = 'H4'
end
module Container
def h4(how, what)
return H4.new(self, how, what)
end
end
end
Zeljko
___
Wtr-gen
Zeljko wrote:
> I have a h4 headline that I have to click.
>
> Create a new project
>
> This does not work.
>
> ie.h4(:id, "addproject").click
>
> Is there a way to click it?
>
class H4 < NonControlElement
TAG = 'H4'
end
module Container
def h4(how, what)
return H4.new(sel
Angrez,
Thanks a lot. It works.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Try this:
ie.element_by_xpath("//[EMAIL PROTECTED]'addproject']").click()
- Angrez
On 7/3/07, Zeljko <[EMAIL PROTECTED]> wrote:
I have a h4 headline that I have to click.
Create a new project
This does not work.
ie.h4(:id, "addproject").click
Is there a way to click it?
Zeljko
__
I have a h4 headline that I have to click.
Create a new project
This does not work.
ie.h4(:id, "addproject").click
Is there a way to click it?
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-gen