Re: [Wtr-general] test/unit argument error

2007-06-26 Thread Manish Sapariya
Jeff Fry wrote: Happily, setup and teardown are also optional methods for those of us using Watir. If you don't want something to happen automatically at the beginning of every run, don't put it in setup. Likewise with teardown. For functional automation I often don't include these

Re: [Wtr-general] test/unit argument error

2007-06-25 Thread Manish Sapariya
Bret Pettichord wrote: Depending on what the rest of your code looks like, this might work, though: require 'watir' require 'test/unit' class Login Test::Unit::TestCase def setup @site=$site @user_name=$user_name @passwd=$passwd end end I ran

Re: [Wtr-general] A novel use of Watir

2007-06-24 Thread Manish Sapariya
Quite interesting, but I didn't understand few things. Bret Pettichord wrote: Using JRuby, we solved the problem in a novel way, by leveraging our existing WATIR codebase that was used for functional tests. We grafted a new backend onto WATIR (easier than it sounds, actually) that talks not

[Wtr-general] OT: Is cruisecontrol.rb by thoughworks is withdrawn

2007-06-18 Thread Manish Sapariya
I am trying to access following url for last two days, but no success. http://cruisecontrolrb.thoughtworks.com/ Is anybody out here facing same problem. Thanks, Manish ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] OT: Is cruisecontrol.rb by thoughworks is withdrawn

2007-06-18 Thread Manish Sapariya
Owen Rogers wrote: try now. the server needed a reboot. cheers, owen. Thanks all. -Manish ___ 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-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

[Wtr-general] forum do not get the postings made using the mailing list

2007-06-07 Thread Manish Sapariya
Hi All, This particular mail is targeted to the admin of watir-general forum on openqa.org. This may be known issue, but I observed that the postings done using mailing list mail id, does not get reflected in the forum and many user's are using just forum for discussing the queries. Is there any

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-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

Re: [Wtr-general] Gmail Automation: Repeated execution fails to send mails, set values fails

2007-06-01 Thread Manish Sapariya
devya wrote: But this case fails after few iteration with following exception c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/./watir.rb:1819:in `method_missing': unknown property or method `readyState' (WIN32OLERuntimeError) HRESULT error code:0x80070005 Access is denied.

Re: [Wtr-general] Gmail Automation: Repeated execution fails to send mails, set values fails

2007-06-01 Thread Manish Sapariya
devya wrote: Case 2: Fails to set value for the to,subject and mailbody fields after few iteration. login for 1 to 50 sendmail logout In this case after sending the first, few mails, it shows the to,subject,mailbody fields. The exists? test passes for these controls. However setting

Re: [Wtr-general] How click on save button in file download

2007-05-31 Thread Manish Sapariya
You need to invoke following two code snippets in two different thread/process. i.e. You spawn new thread/process and invoke the click handler code and then in the main thread execute the click code. ===click code=== ie.button(:value, Download File).click click handler code=

Re: [Wtr-general] Automating gmail: nor click on Compose Mail, neither fire_event works

2007-05-29 Thread Manish Sapariya
Manish Sapariya wrote: Hi All, I am trying to automate sending mail using gmail. I could locate the Compose Mail div and make it flash using, irb(main):100:0 ie.frame(:name, main).frame(:name,v1).span(:text,Compose M ail).flash However, the click() or fire_event(onclick) does not seem

Re: [Wtr-general] Automating gmail: nor click on Compose Mail, neither fire_event works

2007-05-29 Thread Manish Sapariya
Željko Filipin wrote: Are you working for Google, or are you automating Gmail for some other reason. I am asking because, if you work for Google, you could ask developers how to click Compose Mail link. I am really interested to know the answer. Another workaround would be to switch to

[Wtr-general] test, please ignore

2007-05-28 Thread Manish Sapariya
___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Automating gmail: nor click on Compose Mail, neither fire_event works

2007-05-28 Thread Manish Sapariya
Hi All, I am trying to automate sending mail using gmail. I could locate the Compose Mail div and make it flash using, irb(main):100:0 ie.frame(:name, main).frame(:name,v1).span(:text,Compose M ail).flash However, the click() or fire_event(onclick) does not seem to be working. irb(main):109:0

Re: [Wtr-general] Automating gmail: nor click on Compose Mail, neither fire_event works

2007-05-28 Thread Manish Sapariya
Željko Filipin wrote: Take a look at Internet Explorer Developer Toolbar ( http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en

Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Manish Sapariya
Hi, I am facing same problem in 1.5, not sure if its the same. I had sent query regarding this on list, but had no replies. It happens always when I do goto (www.hotmail.com) Is there any known bug in 1.5 latest gem? Any directions so that I can give more inputs to debug problem. Watir Version:

Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Manish Sapariya
in place until we get around to a longer term fix. It's the same cross site scripting frame issue which has been discussed on this list previously. -Charley On 4/13/07, *Manish Sapariya* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I am facing same problem in 1.5

[Wtr-general] method missing: document while accessing hotmail.com

2007-04-12 Thread Manish Sapariya
Hi, I tried searching archives but did not see any issue. If run this code snippet --- #includes require 'watir' # the controller include Watir #test::unit includes require 'test/unit' require 'test/unit/ui/console/testrunner'

[Wtr-general] click() in infinite loop while working with orkut

2007-01-03 Thread Manish Sapariya
Hi, Please find attached a script to extract scrap information from orkut user. What I am seeing is that when I do click on submit button, the click call never returns. The tracing of the calls reveals that click function call is spinning because @ie.busy status never becoming false. I think

Re: [Wtr-general] click() in infinite loop while working with orkut

2007-01-03 Thread Manish Sapariya
Thanks Bret. It worked. I would be glad if you can me point to anything that can explain the root cause of the problem and whats the solution. Thanks again. -Manish Bret Pettichord wrote: Manish Sapariya wrote: Please find attached a script to extract scrap information from orkut user

Re: [Wtr-general] Watir on Linux

2006-09-12 Thread Manish Sapariya
Hi Ryan, There is no official build for Linux. However, few people have ported and changed necessary file to make it work on MacOS and Linux. I have modified copy of FireWatir which kind of works on Linux with prototype code for supporting clicking on javascript dialogs. Please let me know if

[Wtr-general] oo design question for desigining domain specific library using watir

2006-08-25 Thread Manish Sapariya
Hi, I am trying to automate web management console of our appliance. I am trying to write a class library using watir which will kind of provide all functionality which a user can perform using this GUI. Going step forward I am wrapping this library in unit test to build my regression tests.

[Wtr-general] ruby test unit, recovering from failure

2006-08-19 Thread Manish Sapariya
Hi, Is there any way to keep on running my testsuite if one of my test raises exceptions which is not handled by the application under test gracefully. What if i catch all exception in my testing code? Will test unit report failure for those test cases? Thanks, Manish

Re: [Wtr-general] ruby test unit, recovering from failure

2006-08-19 Thread Manish Sapariya
If I enclose my test code in begin rescue end the test suite does not report any exception as failure? Any ideas? Regards, Manish Manish Sapariya wrote: Hi, Is there any way to keep on running my testsuite if one of my test raises exceptions which is not handled by the application under

[Wtr-general] contains_text not giving match when the requested tags are in frames instead of main html body

2006-08-19 Thread Manish Sapariya
Hi I have following HTML in one of my frames on my html page. - div id=menurightmenu div align=CENTERAccount name: strongadmin/strong |nbsp;a href=/analyst/ReLogout.do target=_parentLogout/a/div /div -- ie.contains_text(admin) returns me nil. Does watir support contains_text

[Wtr-general] not exactly watir but a ruby question

2006-08-11 Thread Manish Sapariya
Hi, How do break out of x.times loop. 10.times do findWindowLike(nil, /^Microsoft Internet Explorer$/, //) {|win| puts #{win.getClassName}\t#{win.getWindowText} #p win.getWindowRect #p win if(win.getParent().hwnd == $ie.hwnd) then #p $ie.hwnd,

Re: [Wtr-general] Wtr-general Digest, Vol 33, Issue 19

2006-08-11 Thread Manish Sapariya
Thanks, It did work. Regards, Manish Jeff Wood wrote: Or, you could use a simple throw-catch pair. % irb irb(main):001:0 catch :done do irb(main):002:1* irb(main):003:1* 10.times do |x| irb(main):004:2* irb(main):005:2* [1,2,3].each do |y| irb(main):006:3*throw :done if

[Wtr-general] Clicking on the java script dialog box when IE window is not in focus

2006-08-10 Thread Manish Sapariya
Hi, Last few days I have been investigating this and tried all the dialog related tests in the current watir (1.5) code. None of the test I tried works if the IE windows is not in focus. I started digging about how this could be achieved and I came across few win32 api (getting window handle,

[Wtr-general] FireWatir performance and watir on linux

2006-08-10 Thread Manish Sapariya
Hi, I have proof of concept for clicking on javascript dialog boxes in firefox on linux using at-spi library. However before I proceed ahead with some more experiments, I wanted to investigate the reason of slowness of FireWatir. 1. Is it because of inherent approach of driving firefox using

Re: [Wtr-general] porting Watir to Selenium

2006-08-02 Thread Manish Sapariya
Hi, I have not used selenium, but was wondering how is the javascript dialog support in selenium. Does watir have upper hand there? Thanks and Regards, Manish On 08/02/2006 01:14 AM, Chris McMahon wrote: Jason Huggins is a very smart guy: http://www.jrandolph.com/blog/?p=44

Re: [Wtr-general] why win32ole needed to be patched or modified

2006-07-14 Thread Manish Sapariya
for patch quite exactly, but more understanding of ruby ole binding will make picture clear. Thanks anyways. Regards, Manish Bret Pettichord wrote: On 7/7/06, *Manish Sapariya* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, Bret mentioned in one of the posts that in order

[Wtr-general] Watir ran on Linux Fedora Core 5

2006-07-10 Thread Manish Sapariya
Hi All, Dave provided me following xpi for jssh and FireWatir worked as expected on - Fedora Core - Firefox 1.5.0.1. http://people.mozilla.com/~davel/jssh/jssh-Linux-1.5.0.x.xpi Thanks to Dave for providing me the xpi. Currently I could only run links_xpath_test.rb. I haven't tried any other

[Wtr-general] why win32ole needed to be patched or modified

2006-07-07 Thread Manish Sapariya
Hi, Bret mentioned in one of the posts that in order for watir to be working, win32ole ruby bindings needed to be patched. I was wondering for what kind of patch this was? If I want my own app to be driven using ole, what kind of patch I might require to add? I would appreciate pointers to the

[Wtr-general] FireWatir on linux

2006-07-07 Thread Manish Sapariya
Hi, Has anyone tried running firewatir on linux? I went through the code and looks like it wont run under linux because references to win32ole and autoit libraries. Is it expected run under linux by any chance? What will it take to make it run under linux? Thanks and Regards, Manish

[Wtr-general] using autoit functions from inside watir scripts

2006-06-20 Thread Manish Sapariya
Hi Lonny, thanks for the help. I could run IE with mutliple user. Can I invoke autoit functions directly from watir script. I dont want to install autoit, just because I want to use two apis: RunAsSet Run Thanks and Regards, Manish ___ Wtr-general

Re: [Wtr-general] Understanding WATIR

2006-06-16 Thread Manish Sapariya
Hi David, Yes, you are right. it gave me access to all elements in page, as I was expecting. However when the page has multiple frames, I have to qualify frames explicitly, in order to access all the elements. e.g. $ie.frame(:name, 'mainFrame').text_fields.length There is one more

[Wtr-general] Understanding WATIR

2006-06-14 Thread Manish Sapariya
Hi, I was wondering how watir maintains and creates the list of controls it sees on a page. I am not sure whether this functionality is directly provided by the WebBrowser control or watir does some magic to get the lists of various controls. To illustrate when I say ie.tables.each { |t|

Re: [Wtr-general] watir and html source does not concur

2006-06-12 Thread Manish Sapariya
Hi, One more question related to this html. How do I distinguish between the two Add buttons? Thanks, Manish Manish Sapariya wrote: Hi, Here is one more html. -- $ie.frame(mainFrame).table(:id, /tblMain/i).cells.each { |l| if l.text_field(:name, hostName).exists

[Wtr-general] running multiple ie session with diff user id for same server

2006-06-09 Thread Manish Sapariya
Hi, Is there any workaround or trick know to run multiple ie to the same server with different user ids? I need to run same test simultaneously but with different user credentials. But when I tried to do it expires one of the users session. Thanks and Regards, Manish

Re: [Wtr-general] frame error in waitreadyState

2006-05-20 Thread Manish Sapariya
and not working? David Manish Sapariya wrote: I get following error when I run my script. However when I run script with the defaulting function alone, it works fine. Any ideas? Has anyone run into this kind of issue. Please let me know if you need more details to help. --- W, [19-May-2005

Re: [Wtr-general] frame error in waitreadyState

2006-05-20 Thread Manish Sapariya
Pettichord wrote: On 5/20/06, *Manish Sapariya* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: W, [19-May-2005 16:15:24#3268] WARN -- : frame error in waitreadyState OLE error code:0 in Unknown No Description HRESULT error code:0x80070005 Access

Re: [Wtr-general] need help clicking on one of the links with same name

2006-05-19 Thread Manish Sapariya
(:text, /schedule/i).click break; # end End } i = i + 1 end Hope this helps, --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manish Sapariya Sent: Thursday, May 18, 2006 4:58 AM To: wtr-general@rubyforge.org Subject: [Wtr-general

[Wtr-general] frame error in waitreadyState

2006-05-19 Thread Manish Sapariya
I get following error when I run my script. However when I run script with the defaulting function alone, it works fine. Any ideas? Has anyone run into this kind of issue. Please let me know if you need more details to help. --- W, [19-May-2005 16:15:24#3268] WARN -- : frame

[Wtr-general] need help clicking on one of the links with same name

2006-05-18 Thread Manish Sapariya
Hi, Please find attached the html which I need help with. It has table of searches which has actions like edit,view,schedule attached with them. I want to write a method which takes search name and schedules it. The logic I have used is: --- $ie.frame(mainFrame).cells.each {

[Wtr-general] Clicking on the link in table

2006-05-17 Thread Manish Sapariya
Hi, In the attached html code, I have two tables in 2nd Frame. There is a link in first table Create New Policy. I cannot click on this link by $ie.frame(mainFrame).link(:text,Create New Policy).click. However, the link in 2nd table can be clicked when I say $ie.frame(mainFrame).link(:text,

Re: [Wtr-general] Clicking on the link in table

2006-05-17 Thread Manish Sapariya
are what make it a link.Using Watir 1.5, this will work: $ie.frame("mainFrame").cell(:text,"Create New Policy).clickBret On 5/17/06, Manish Sapariya [EMAIL PROTECTED] wrote: Hi,In the attached html code, I have two tables in 2nd Frame.There is a link in first table "C

[Wtr-general] running ruby developement branch code when 1.4.1 is also installed

2006-03-27 Thread Manish Sapariya
There was thread but I cant find it in archives... Could somebody please tell me how do I run code checkout from SVN I am not sure what Path varibale i need to change... Thanks, Manish ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] multiple mails for a post

2006-02-24 Thread Manish Sapariya
No, I use thunderbird. Its just last two days I started recieving multiple mails. Regards, Manish On 02/24/2006 01:23 PM, Zeljko Filipin wrote: No. Are you using Outlook? On 2/24/06, Manish Sapariya [EMAIL PROTECTED] wrote: Is everybody getting multiple mails for one post like me? Thanks

Re: [Wtr-general] multiple mails for a post

2006-02-24 Thread Manish Sapariya
for sorting. On 2/24/06, Manish Sapariya [EMAIL PROTECTED] wrote: No, I use thunderbird. Its just last two days I started recieving multiple mails. Regards, Manish ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo

[Wtr-general] multiple mails for a post

2006-02-23 Thread Manish Sapariya
Is everybody getting multiple mails for one post like me? Thanks, Manish ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how to access links in table cells

2006-02-18 Thread Manish Sapariya
and code. On 2/16/06, *Manish Sapariya* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I have a table, which has few columns with simple text and few columns with links. I want to do a search on text columns, and click in the link for one of the column for a given row

[Wtr-general] watir: windows and unix

2006-01-31 Thread Manish Sapariya
Hi List, I need to login to unix box and carry out some task before proceding with my test. I could find rexpect module but it seems that works only on *nix and not on windows. I am not sure whether rexpect can work on windows. Can somebody confirm? If rexpect is not the way, what would be

Re: [Wtr-general] HTML Results Reports for Watir

2005-11-25 Thread Manish Sapariya
I tried installing and running damagecontrol, but it crashes. I am no Ruby expert and could not figure out whats exactly wrong? Anywasy, Is project alive? The project does n't have active mailing list. No messages since April. Has anybody working installation, I wanted to try out to see how I

Re: [Wtr-general] Can watir be used to drive gmail....

2005-11-17 Thread Manish Sapariya
Could you please more info on this. How does exactly mouse over event will be generated. I dont see any of the links seen in view source file. When I do show_all_objects it hardly gives me any object info. What are other javascript event? Thanks for all help. Manish On 11/16/2005 09:36 PM, Jeff

Re: [Wtr-general] watir exception...

2005-11-16 Thread Manish Sapariya
Nope, I still get the same error. Note that script runs fine.only at the end it throws this error. Regards, Manish On 11/16/2005 03:21 PM, Sathya Shankar wrote: Hi [a href=/ym/Logout?YY=77101YY=77101 target=_topSign Out/a, Here the , seems to be causing the problem. So in your script

Re: [Wtr-general] Security Popup Windows

2005-10-28 Thread Manish Sapariya
Here is how got read of my dialog box Main script- # set a variable def execute_and_click_dialog(extra_file, block) Thread.new { system(rubyw \#{$mydir}\\#{extra_file}.rb\) } block.call end $ie=Watir::IE.new .. .. ..

[Wtr-general] clicking on link with same name

2005-10-25 Thread Manish Sapariya
Hi list, I have a app which has multiple links on same page with same name. However each of this link is associated with one more link which identifies them uniquely. To be very specific its the page has list of records which I can edit or delete. The links for edit/delete have same name, but

[Wtr-general] Handling popup window

2005-10-25 Thread Manish Sapariya
I couldn't get away with the dialog box popped up by my application. I tried autoit but could not get it working. Even tried simple send_keys() function but was not sure whether it was sending the key event to right window. The dialog box is not javascript dialog. Developer says it is dialog