[wtr-general] Using Aptana IDE

2009-02-25 Thread Jagdeep Jain
guide me where I am wrong or is Aptana IDE is good for watir script developement and execution or there are other tools available for the same? I have already tried SciTE. Thanks in advance, Jagdeep Jain --~--~-~--~~~---~--~~ You received this message because yo

[wtr-general] problem in displaying objects from frames

2009-01-21 Thread Jagdeep Jain
Hi, It seems that there are some problem with following methods with frames... are there any other ways we can have all images, spans, links, divs, frames, tables from the frames? 1) Error: NoMethodError: undefined method `show_images' for # puts $browser.frame("#...@frame}").show_images puts $b

[wtr-general] Re: Test Results output capturing

2009-01-16 Thread Jagdeep Jain
Thanks A lot JArkelen, This is exciting :-) I have started using this Class ;-) On Jan 15, 8:03 pm, JArkelen wrote: > http://wiki.openqa.org/display/WTR/HTML+report+class > > On Jan 15, 7:53 am, Jagdeep Jain wrote: > > > I got it through Rspec: > > spec usi

[wtr-general] Re: Test Results output capturing

2009-01-16 Thread Jagdeep Jain
Thanks Jarkelen, This is exciting :-) I have started using this class ;-) On Jan 15, 8:03 pm, JArkelen wrote: > http://wiki.openqa.org/display/WTR/HTML+report+class > > On Jan 15, 7:53 am, Jagdeep Jain wrote: > > > I got it through Rspec: > > spec usi

[wtr-general] Re: Using Watir TestCase with RSpec - Problem

2009-01-15 Thread Jagdeep Jain
Thanks John, this is really help full. On Jan 15, 4:36 pm, John Kolokotronis wrote: > I forgot to note that the above code does not contain a valid > assertion so the test will always pass. You can fix this with a > "should" statement, like this: > > $browser.contains_text("rubyforge.org").shoul

[wtr-general] Using Watir TestCase with RSpec - Problem

2009-01-15 Thread Jagdeep Jain
In the following code I am using Rspec for putting my results in proper format. If I am executing the below code by commenting the class declaration then its working fine but if I want to use watir class here like the code below then it not working and I got the following error on console. C:\Ru

[wtr-general] Re: Test Results output capturing

2009-01-14 Thread Jagdeep Jain
I got it through Rspec: spec usingrspec.rb --format html > testresult.html On Jan 15, 11:31 am, Jagdeep Jain wrote: > I want to populate Watir results to HTML format. Is there any way to > do this? > Or is there any way to have all 'puts&#

[wtr-general] Test Results output capturing

2009-01-14 Thread Jagdeep Jain
I want to populate Watir results to HTML format. Is there any way to do this? Or is there any way to have all 'puts' goes to HTML file? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post

[wtr-general] Re: Navigating to the next page problem - Javascript pop up

2009-01-06 Thread Jagdeep Jain
;) > $ie.link(:text, 'Click Here').click_no_wait > startClicker("OK") > > Charley Baker > blog:http://charleybakersblog.blogspot.com/ > Project Manager, Watir,http://wtr.rubyforge.org > QA Architect, Gap Inc Direct > > On Sun, Jan 4, 2009 at 10:07 PM, Jagdeep Jain wrote: &

[wtr-general] Re: Frame, nested frame

2009-01-04 Thread Jagdeep Jain
Index can also be used to differentiate b/w the similar objects/ components. On Jan 4, 6:29 am, "Wilson Xu" wrote: > Please ignore 'iframe' element in your script code, you can try it again and > can you post your html source code. > Wilson > > On Wed, Dec 31, 2008 at 6:35 PM, rr wrote: > > > H

[wtr-general] Re: text_field problem

2009-01-04 Thread Jagdeep Jain
I got into the same problem and found that whenever you are using variable we need to use .value=variable instead of .set variable. On Dec 31 2008, 3:39 am, sowmya wrote: > Never mind. It worked. > [ie.text_field(:id, "create_id").value=(id)] > > On Dec 30, 2:26 pm, sowmya wrote: > > > Hello, >

[wtr-general] Navigating to the next page problem - Javascript pop up

2009-01-04 Thread Jagdeep Jain
Hi, The problem with the code below is that I am not able to move forward to next page which appear after clicking on "OK" button of Java Script pop up. HTML is as follows: I save this file in C: drive as test.html function disp_alert() { alert("I am an alert box!!"); } Jagdeep http://ww

[wtr-general] Re: overriding javascript

2009-01-04 Thread Jagdeep Jain
Hi Aidy, I have changed "disp_confirm" with the earlier one you have supplied "window.confirm" and removed "JavaScript" from the end and it works fine for me. require 'watir' ie = Watir::IE.new ie.goto("http://www.w3schools.com/JS/tryit.asp? filename=tryjs_confirm") ie.maximize ie.document.pare

[wtr-general] Re: About Javascript Popups/Dialogue Box

2009-01-02 Thread Jagdeep Jain
Hi, I have the following code but the problem here is that I am not able to move forward to next page which appear after clicking on "OK" button of Java Script pop up. HTML is as follows: I save this file in C: drive as test.html function disp_alert() { alert("I am an alert box!!"); } Jagdee

[wtr-general] Re: Problem using 'ie' commands inside definations

2008-12-08 Thread Jagdeep Jain
Thanks Michael, It works now... Jagdeep On Dec 8, 11:29 pm, Michael Hwee <[EMAIL PROTECTED]> wrote: > change all your 'ie' to '$ie' in your scripts. > > - Original Message > From: Jagdeep Jain <[EMAIL PROTECTED]> > To: Watir Gener

[wtr-general] Problem using 'ie' commands inside definations

2008-12-08 Thread Jagdeep Jain
owing is the error I am getting after executing the script... getters.rb:99:in `getUsertId': undefined local variable or method `ie' for main:Object (NameError) from getters.rb:108 Should I need to include 'ie' in the argument? If yes then how can I include frame

[wtr-general] Re: error is generating while using require 'watir'

2008-12-08 Thread Jagdeep Jain
Check if you path contains watir. mine is C:\Ruby\lib\ruby\gems\1.8\gems\ Also have you installed watir properly? Navigate to the site http://wtr.rubyforge.org/install.html for more information. Thanks, Jagdeep On Dec 8, 4:57 pm, Parul <[EMAIL PROTECTED]> wrote: > hello frnds, > > in my sc

[wtr-general] Re: Dealing with Java script pop up -- Please help

2008-12-04 Thread Jagdeep Jain
Thanks Chen, Now the same error is not coming up. Thanks Again! Jagdeep Jain On Dec 4, 8:49 pm, "wesley chen" <[EMAIL PROTECTED]> wrote: > I am sure if you search detailed in the group, you can get the solution. > Below is one way to deal with the problem. > require &#

[wtr-general] Dealing with Java script pop up -- Please help

2008-12-04 Thread Jagdeep Jain
# Ruby Script for dealing with pop require "watir" require "logger" require 'net/smtp' require 'win32ole' require 'watir/dialog' require 'watir/ie' require 'watir/contrib/enabled_popup' require 'watir/WindowHelper' require 'watir/winClicker' # set a variable test_site = "C:\\test.html" # open th