[wtr-general] Re: Need to print results of Mulitple scripts in one HTML file

2009-10-08 Thread Prajakta Jadhav
Sorry Bindhu, I have never used CLReport. so can't help you on it. Though I can share with you the sample script that I use. It goes as follows -> def open_log_file(log_name) if(File.exist?(log_name)) #If the log file already exists, attach the new results to it @

[wtr-general] Re: Need to print results of Mulitple scripts in one HTML file

2009-10-08 Thread Bindhu
Thanks Prajakta and Rohan for ur quick reply, And sorry to bother you again... I the below code in every script r = CLReport.new() testReport = r.createReport('D:\\Automation\\ReportName') < Script to be executed>> end r.addtoReport("testReport","TC_001", 'PASSED', "New Acc

[wtr-general] Re: Html Elements Supported by Watir

2009-10-08 Thread Wesley Chen
Yes, Zeljko is really a nice, warm-heart person. Thanks. Wesley Chen. For life, the easier, the better. On Fri, Oct 9, 2009 at 1:34 PM, Raveendran P wrote: > ZelijGO, > > Congrats. Awesome effort. > > Thanks. > > > On Fri, Oct 9, 2009 at 11:00 AM, Pallavi Sharma > wrote: > >> Zeljko

[wtr-general] Re: Need to print results of Mulitple scripts in one HTML file

2009-10-08 Thread Rohan Ojha
Hi, Another alternative would be to call the HTML report class from the rake itself rather than individual scripts. (just an alternate suggestion :-)) Thanks, Rohan Ojha Blue Star Infotech l*+91 900 4955058l * +91 22 6688 6969 l 6 +91 22 6688 6999 l * rohan.o.

[wtr-general] Re: Html Elements Supported by Watir

2009-10-08 Thread Raveendran P
ZelijGO, Congrats. Awesome effort. Thanks. On Fri, Oct 9, 2009 at 11:00 AM, Pallavi Sharma wrote: > Zeljko > > its just awesome the amount of hard work you put into this group. > > Thanks Zeljko for every help and suggestion ... > > > Regards, > > Pallavi. > > > On Thu, Oct 8, 2009 at

[wtr-general] Re: Html Elements Supported by Watir

2009-10-08 Thread Pallavi Sharma
Zeljko its just awesome the amount of hard work you put into this group. Thanks Zeljko for every help and suggestion ... Regards, Pallavi. On Thu, Oct 8, 2009 at 10:33 PM, Charley Baker wrote: > +1, Zeljko has been a long standing active member of the Watir community, > taking care of the wi

[wtr-general] Re: Need to print results of Mulitple scripts in one HTML file

2009-10-08 Thread Prajakta Jadhav
Shouldn't be a problem. Open the same html file in both the scripts for logging the results. It will log the results one after another in the same html file. -Prajakta On Fri, Oct 9, 2009 at 10:31 AM, Bindhu wrote: > > Hi All, > > In batch file I have included 2 scripts to be executed. After a

[wtr-general] Difference b/w Click_no_wait and .Click!

2009-10-08 Thread Pallavi Sharma
Hi Can anyone here tell me what are the differences between Click! and click_no_wait for both watir and firewatir I have a scenario in which click_no_wait is failing but .click! is working? What could be the reason? Can i use safely .click! instead of click_no_wait even for pop ups?? Thanks

[wtr-general] Need to print results of Mulitple scripts in one HTML file

2009-10-08 Thread Bindhu
Hi All, In batch file I have included 2 scripts to be executed. After a successful execution of this batch I want to print the results in one HTML file. As of now I am able to print the one HTML file for one script. But I want a single HTML file to be printed for multiple scripts which I have inc

[wtr-general] The 'enabled' doesn't work in SafariWatir

2009-10-08 Thread yuping zhong
Hi, It is known to all that 'enabled' is work very well in Windows. Such as, @browser.button(:value,"Save").enabled? When use this in SafariWatir,I get the following: irb(main):008:0> sf.button(:value,"Save").enabled? NoMethodError: undefined method `enabled?' for # from (irb):8

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread venkat
Hi Bill and all, Many many thanks, i have tried meanwhile I recieve this reply, it works fine now. Thanks very much for sparing your time. venky On Thu, Oct 8, 2009 at 10:21 PM, Bill Agee wrote: > Ah, so after you browse to the main test page, a new window is opened that > contains the content

[wtr-general] Re: Cannot use the index in SafariWatir

2009-10-08 Thread yuping zhong
That's great. It works fine. Thanks Željko. On Oct 4, 9:23 pm, Željko Filipin wrote: > On Sat, Oct 3, 2009 at 4:37 AM, yuping zhong > wrote: > > > Doesn't work. > > My mistake. 1 should not be quoted. Try this: > > sf.button(:value=>"Enter",:index=>1).click > > sf.button(:index=>1).click > >  

[wtr-general] Re: Does anyone have examples of using rspec with safariwatir

2009-10-08 Thread yuping zhong
Where can we get the video? On Oct 8, 1:08 pm, Bret Pettichord wrote: > Dave Hoover made a video of usingsafariwatirwith cucumber. > > On Oct 7, 3:36 pm, QAguy wrote: > > > > > Or can point out a wiki that would have information on it. My searches > > via google have not bared much fruit. > > >

[wtr-general] Capturing Java Script Errors

2009-10-08 Thread dt_nz
Hi I was hoping someone could point me in the right direction to get some help capturing java script errors. We have a rather large number of tests that are executed during our regression run, and there can be a significant amount of page reloads etc that sometimes cause java script errors. In t

[wtr-general] Re: Iterating through an unordered list

2009-10-08 Thread George
Hey there, Yep, that did it! I didn't see the method 'lis' listed when I did this: @browser.div(:id, "ctl00_cphMain_validationSummary").ul(:class, "VAMValSummaryErrors").methods.sort Oh well, glad it was available for me to use. Thanks a lot! On Oct 8, 2:59 pm, orde wrote: > something l

[wtr-general] Re: Iterating through an unordered list

2009-10-08 Thread orde
something like this(?): browser.lis.each do |x| puts x.text end Hope that helps. On Oct 8, 2:09 pm, George wrote: > Hello everyone, > > Is it possible to iterate each line item () text in an unordered > list ()? > > Thanks, > > George --~--~-~--~~~---~--~~ Y

[wtr-general] Iterating through an unordered list

2009-10-08 Thread George
Hello everyone, Is it possible to iterate each line item () text in an unordered list ()? Thanks, George --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to

[wtr-general] Re: Close All browsers and Firewatir

2009-10-08 Thread orde
According to this page, there's no close_all method for firewatir: http://wiki.openqa.org/display/WTR/Firewatir+Compatibility Could be out of date, though... On Oct 7, 11:28 pm, Pallavi Sharma wrote: > Hi > > Is it possible to close all firefox instances open with FireWatir?? > > Please let me

[wtr-general] Re: watir:buttons returns only 1st button

2009-10-08 Thread orde
Weird. Looks like it's returning the text (i.e. "1st button") instead of the value ("first button"). I'm not sure why you are getting unexpected results, but here are a couple of things that might help: * tag isn't the same as tag * your code below should work if all the buttons are , like th

[wtr-general] Re: Html Elements Supported by Watir

2009-10-08 Thread Charley Baker
+1, Zeljko has been a long standing active member of the Watir community, taking care of the wiki, making podcasts and answering countless emails. Big thanks to him for all that he's done. :) -c On Thu, Oct 8, 2009 at 10:10 AM, tcfodor wrote: > > Thanks so much for all you do Zeljko! > > I look

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread Bill Agee
Ah, so after you browse to the main test page, a new window is opened that contains the content you need to access? In that case you are entering the world of popups and attaching. :) See more info here: http://wiki.openqa.org/display/WTR/Pop+Ups In short, you can use Watir::Browser.attach (or

[wtr-general] Re: Html Elements Supported by Watir

2009-10-08 Thread tcfodor
Thanks so much for all you do Zeljko! I look forward to each Watir podcast and it's reassuring to know that the information on the wiki is being maintained so well! Three cheers for Z*! -Tiffany On Oct 7, 11:18 pm, Bret Pettichord wrote: > On Oct 7, 5:57 pm, Željko Filipin > wrote: > > > On

[wtr-general] Re: How to ensure Firewatir always opens with the jssh

2009-10-08 Thread Angrez Singh
If you are opening it via Firewatir it will always open with JSSh enabled. Else you can use the following command: [Firefox Installation Directory]\firefox.exe -jssh - Angrez On Thu, Oct 8, 2009 at 12:29 PM, Pallavi Sharma wrote: > Hi > > Can anyone here tell me how can i ensure that whenever i

[wtr-general] Re: To fetch the style.DISPLAY property of an object

2009-10-08 Thread Pallavi Sharma
Betsy The error is with Attribute_value function. Betsy for Watir, when we do attribute_value(‘STYLE’) it returns an object for which you can use a . and the other attributes likes color, width and the value will come out Where as for FireFox, when you do attribute_value(‘STYLE’) it retur

[wtr-general] Re: To fetch the style.DISPLAY property of an object

2009-10-08 Thread Betsy
In continuation to the previous mail vals is the array that I receive as properties. For eg:- if property is "class" vals[0] = "class" and if property is "style.Display", vals [0]="style" and vals[1]="DISPLAY" etc. On Oct 8, 3:07 pm, Isabel wrote: > Hi all, > > I could successfully fetch t

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread venkat
Hi Bill, The select element is not present as per the error message. So after troubleshooting what i understood is when i clicked on login button, the next page is opening up in a new window rather than opening in the same window, so my script is not verifying the elements in the newly opened

[wtr-general] To fetch the style.DISPLAY property of an object

2009-10-08 Thread Isabel
Hi all, I could successfully fetch the style.DISPLAY property of an object in Watir using:- ".attribute_value(vals[0])" But when I use the same piece of code with Firefox, it returns me an error:- "undefined method `vals' for "":String" where am I going wrong??? Thanks in advance.. --~--~

[wtr-general] Re: FireWatir and FileDownload

2009-10-08 Thread al3kc
http://groups.google.com/group/watir-general/browse_thread/thread/c00bbeec1223e1ad/feebcb9ffa1d6951?hl=en&lnk=gst&q=download+firefox#feebcb9ffa1d6951 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" gr

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread Bill Agee
Is the error still happening when locating the select list? It seems to work for me with the HTML you pasted - maybe something else is amiss. ie.select_list(:name , "jurisdiction").select("Development") What happens when you run this? ie.select_list(:name , "jurisdiction").exists? On Wed, Oc