07.12.07
Posted in Watir at 4:38 pm by Željko Filipin

There was an interesting question recently at Watir General forum. How to get text from Internet Explorer status bar using Watir? I did not know that it was possible. Not only it is possible, but it is so easy.
ie.status
=> “Done”
I just had to put it at How To page of Watir Wiki.
Permalink
07.04.07
Posted in Watir at 11:42 am by Željko Filipin

I had to click a h4 headline.
<h4 id="addproject">Create a new project</h4>
This did not work.
browser.h4(:id, "addproject").click
I posted a question to wtr-general mailing list and Bret Pettichord suggested to extend Watir with this, so it would support 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
Now this works.
browser.h4(:id, "addproject").click
Permalink
07.03.07
Posted in Watir at 4:18 pm by Željko Filipin

I had to click a h4 headline.
Create a new project
This did not work.
ie.h4(:id, “addproject”).click
I posted a question to wtr-general mailing list and Angrez Singh was kind enough to help.
This will click h4 headline.
ie.element_by_xpath(”//h4[@id='addproject']“).click
Permalink