Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread Manish Sapariya
I think watir 1.4 does not support map and area element. Try watir 1.5. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread mihai
that doesn't work Error: undefined method `area' for # (NoMethodError) watir code: require 'watir' #includes include Watir ie = IE.new ie.goto( 'http://www.squarebox.co.uk/scalc.html' ) sleep(5) ie.area(:href, /digit\(4\)/).click ___ Wtr-general mai

Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread Manish Sapariya
This should work. ie.area(:href, /digit\(4\)/).click For accessing the operators you will have to change the regexp and you are done. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread Manish Sapariya
mihai wrote: > nobody can help me? > Did you try solution posted by me? reproduced here--- This should work. ie.area(:href, /digit\(4\)/).click For accessing the operators you will have to change the regexp and you are done. --- -Manish

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread mihai
nobody can help me? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread Manish Sapariya
mihai wrote: > this is the page i want to test: > [http://www.squarebox.co.uk/scalc.html|http://www.squarebox.co.uk/scalc.html] > This should work. ie.area(:href, /digit\(4\)/).click For accessing the operators you will have to change the regexp and you are done. Question to the list: On gi

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread mihai
this is the page i want to test: [http://www.squarebox.co.uk/scalc.html|http://www.squarebox.co.uk/scalc.html] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread Ċ½eljko Filipin
Some html would help. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] run a javascript in html?

2007-06-06 Thread mihai
i have a scientific calculator made in java in a html; how do i test the buttons? when i want to press "5" it runs a javascript function digit(5) how do i call that function in watir? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforg