Re: [Wtr-general] How to click on image associated with link

2007-01-22 Thread Željko Filipin

On 1/19/07, minal <[EMAIL PROTECTED]> wrote:


For some strange resons ie.cell(:id, "10TD37").click doesn't work on my
application.



I think you need to have watir 1.5 for that.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to click on image associated with link

2007-01-19 Thread minal
Thanks to both of you for your replies. 

Clicking on image based on IMG tag attributes, will not work for this 
application, since each row in table has same image with same IMG-tag 
attributes.

For some strange resons ie.cell(:id, "10TD37").click doesn't work on my 
application.

But I found work around for that, in case anybody is looking solution for 
similar problems. 

my_row = ie.row( :id , "TR37")
links = tabs[my_row.column_count()].document().all.tags("A")
my_link=""
 links.each do |p|
my_link=p.invoke("href")  # since there is only one A-tag in each cell, we 
are ok 
 end
ie.goto(my_link)  # this is same as clicking on image

minal
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6176&messageID=17403#17403
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to click on image associated with link

2007-01-19 Thread Željko Filipin

This will click that cell.
ie.cell(:id, "10TD37").click

This will click the link that contains that image.
ie.cell(:id, "10TD37").link(:href, /Adminpage/).click

Finally, this will click that image in that cell.
ie.cell(:id, "10TD37").image(:title, "Delete survey, responses,
emails").click

Choose the one that works for you. I tried it with watir 1.5.1.1145
--
Zeljko Filipin
zeljkofilipin.com
Testing is not only what I do for a living. It is also what I do for fun.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to click on image associated with link

2007-01-18 Thread carl . l . shaulis




I typically use a syntax similar to  this:

@ie.image(:src , /ps_header_module_solution_builder_iconUp.gif/).click

Good luck,

Carl

Carl L. Shaulis
Convergys - Senior Analyst
512-634-0607



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