Re: [Wtr-general] How can I click h4 headline?

2007-07-04 Thread Željko Filipin

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-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] How can I click h4 headline?

2007-07-03 Thread 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
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How can I click h4 headline?

2007-07-03 Thread Angrez Singh

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?

Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How can I click h4 headline?

2007-07-03 Thread Željko Filipin

Angrez,

Thanks a lot. It works.

Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How can I click h4 headline?

2007-07-03 Thread Bret Pettichord
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 H4.new(self, how, what)
end
  end

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general