[wtr-general] Re: Show tables within a frame

2011-09-20 Thread Asif Iquebal Sarkar
ie.frame(how,what).tables.show
this doesn't help. It says undefined method 'show'. I get it from the
following discussion;
http://groups.google.com/group/watir-general/browse_thread/thread/882b935a0fe1c76c?pli=1

On Sep 20, 1:13 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Sep 20, 2011 at 7:17 AM, Asif Iquebal Sarkar asu9...@gmail.com
 wrote:

  How to show tables which are inside a frame with Watir 2.0?

 Did you read this?

 http://wiki.openqa.org/display/WTR/Frames

 Try:

 browser.frame(how, what).tables

 Željko
 --
 watir.com - community manager
 watir.com/book - author
 watirpodcast.com - host

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Show tables within a frame

2011-09-19 Thread Asif Iquebal Sarkar
How to show tables which are inside a frame with Watir 2.0?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] How to change select_list box value ?

2011-08-11 Thread Asif Iquebal Sarkar
Try with,
select_list(:how,what).set(ur desired option)

On Thu, Aug 11, 2011 at 5:44 PM, Dmitri Karusar flysteppe...@gmail.comwrote:

 Hi, I am new here. Have a problem that can't select another option
 value

 Source code:
 select name=defaultLicensingPeriod size=1
 class=origDhtmlDropDownSearch style=display: none; 
option value=M1 selected=selected1 month/option
option value=M22 months/option
option value=M33 months/option
 /select

 Tried:
 $ie.frame(:name,mainFrame).select_list(:name,
 'defaultLicensingPeriod').option(:text, '2 months').value #= 'M2'
 $ie.frame(:name,mainFrame).select_list(:name,
 'defaultLicensingPeriod').select('2 months')

 Can you help, what is wrong?

 BR,
 Dmitri

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com




-- 

Thanks  Regards
Asif Iquebal Sarkar
Bhubaneswar, Orissa

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] How to know whether a javascript been fired or not?

2011-07-29 Thread Asif Iquebal Sarkar
No, that couldn't help.
I just need to script it down to know whether it's been fired ot not. If
fired then click on OK button, print the number used and try with a new
number.
pseudo code like this
for i in(0..100)
 $ie.text_field(:id,number_sos).set(i.to_s)
 if($ie.javascript_dialog.exists?)   ## need something like this
 $ie.javascript_dialog.button('OK').click
 puts Number failed to enter: #{i}
 end
end
On Fri, Jul 29, 2011 at 5:27 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Fri, Jul 29, 2011 at 1:55 PM, Asif Iquebal Sarkar asu9...@gmail.com
 wrote:
  I need to know when the
  pop up fired and against which number?

 Maybe this could help:


 http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired

 Željko
 --
 watir.com - community manager
 watir.com/book - author
 watirpodcast.com - host

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com




-- 

Thanks  Regards
Asif Iquebal Sarkar
Bhubaneswar, Orissa

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com