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
___
I have a h4 headline that I have to click.
h4 id=addprojectCreate a new project/h4
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
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.
h4 id=addprojectCreate a new project/h4
This does not work.
ie.h4(:id, addproject).click
Is there a way to click it?
Angrez,
Thanks a lot. It works.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Zeljko wrote:
I have a h4 headline that I have to click.
h4 id=addprojectCreate a new project/h4
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