Re: [Wtr-general] Project Map
Patrick from Openqa is trying to merge Watir General forum and this list. There are some problems, but I hope he will resolve them in near future.ŽeljkoOn 7/28/06, Bret Pettichord [EMAIL PROTECTED] wrote: OpenQA provides a web-based forum:http://forums.openqa.org/forum.jspa?forumID=5start=15, but this isn't monitored by as many people. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I use Arachno Ruby (http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php). Take a look.Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I use Arachno Ruby (http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php ). Take a look. supports only 1.8.2. and the beta for 1.8.4 ([for me] kept crashing). Would like peoples experience on Rad Rails though. aidy --- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
Did you sent crash reports? Every time I send one, Lothar (developer) quickly fixes it.On 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote: I use Arachno Ruby ( http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php). Take a look.supports only 1.8.2. and the beta for 1.8.4 ([for me] kept crashing). ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I have ruby 1.8.4 and official version of Arachno works at my windows machine (http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php). There is even a Linux version (beta) http://ruby-ide.com/forum/showthread.php?t=589.ŽeljkoOn 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote:Zeljko Could you give me a link to the Ruby 184 supported version. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I have ruby 1.8.4 and official version of Arachno works at my windows machine But there is no de-bugging with this version and 1.8.4. Am I correct in saying that? aidy --- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I do not use debugger a lot, but I just tried it and it works. If you have any problems, contact Lothar or post a question at Arachno forum. What happens when you start debugger? Nothing?Željko On 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote: But there is no de-bugging with this version and 1.8.4. Am I correct insaying that? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
What happens when you start debugger? Nothing? Crashes. But the last time I used it was over a month ago. Aidy --- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
Try new and improved Arachno, it will work. And, if it does not, just submit crash report and it will be fixed soon.ŽeljkoOn 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote: What happens when you start debugger? Nothing? Crashes. But the last time I used it was over a month ago. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
We have been using RadRails almost since it has been available. It is based on the time-tested Eclipse IDE from IBM. (Get it? This was started when Java became big. Eclipse as opposed to Sun). So RadRails has a solid foundation, but it is still dependent on its developers to make sure it works properly for Ruby / Rails. The first release or two of RadRails were missing so much in functionality that they were pretty much unusable. But it has come so far since then that I have to wonder why anyone would use anything else, unless it were for performance reasons (Eclipse can be something of a hog). It supports just about all functions of SVN, allowing you to track your source visibly and seamlessly. (It must be noted, however, that the release we are currently using, 0.6.4, has a bug in its SVN support: it does not create tags properly. But you can still do that manually, so no big deal.) Despite a couple of very minor bugs, RadRails is by far the most fully-functional IDE for Ruby / Rails that I have seen. Eclipse has so many features that it would be pointless to even try to list them here, and most if not all of those features carry over to RadRails. Lonny Eachus From: Adrian Lewis [EMAIL PROTECTED] To: wtr-general@rubyforge.org Date: Mon, 31 Jul 2006 10:23:23 +0100 Subject: Re: [Wtr-general] Newbie - Ruby dev IDE question I use Arachno Ruby (http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php). Take a look. supports only 1.8.2. and the beta for 1.8.4 ([for me] kept crashing). Would like peoples experience on Rad Rails though. aidy ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] No tests specified
Hi- I tried changing the code as suggested: quote Test::Unit::TestCase must have at least one method which name starts with test_. Change def centralvision load 'centralvision.rb' end to def test_centralvision load 'centralvision.rb' end and you should be fine. /quote However, I now get this output- ruby harness.rb Loaded suite TestSuite Started ./test_centralvision.rb:17: warning: parenthesize argument(s) for future version EE Finished in 0.078 seconds. 1) Error: test_centralvision(TestSuite): SyntaxError: ./test_centralvision.rb:17: syntax error harness.rb:10:in `load' harness.rb:10:in `test_centralvision' 2) Error: test_centralvision(TestSuite): Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window with title of Central Vision c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1208:in `attach_browser_window' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb::in `attach_init' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1104:in `attach' harness.rb:14:in `teardown' 1 tests, 0 assertions, 0 failures, 2 errors I really dont see why it should be getting a Syntax Error? I still have the same simple test loading up but have changed the def as suggested. thanks Max Russell test Analyst. InPS Tel: 01382 223900 Fax:01382 204488 Visit our Web site at www.inps.co.uk The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of In Practice Systems Limited or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir 1.5
Hi Thanks, I downloaded and installed using the gem. (gem install watir) How do I know where it got installed ? Also currently I am running watir 1.4.x, shall I need to remove it ? Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir 1.5
I'd recommend you uninstall your previous version if you've used the one click installer for Watir 1.4.1. Gems get installed into your ruby gems directory - ruby_install_directory\lib\ruby\gems\1.8\gems. Read through the FAQ, should help explain some basics. -CharleyOn 7/31/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Hi Thanks, I downloaded and installed using the gem. (gem install watir) How do I know where it got installed ? Also currently I am running watir 1.4.x, shall I need to remove it ? Thanks Meghanath ___Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Click on the Tab
Hi I am trying to click a "Tab" in my application . I tried with various combinations, but couldnt succeed. Here is the source code can anyone help me ? I have to click on the "Parties" tab. div id='Zeroth_HdrTabId' style='position:absolute; left:0px; top:12px; width:595px; height:300px; z-index:1;align=left;visibility:hidden;'table width='595' cellspacing='0' cellpadding='0' border=0 align='center'trtd width='10'img name='a' src='' width='10' height='20' border='0'//tdtd width='81' background='' class='blktext1' align='center' valign='bottom'Orderbrimg name='a' src='' width='1' height='3' border='0'//tdtd width='81' background='' class='blktext1' align='center' valign='bottom' style='cursor:hand'Partiesbrimg name='a' src='' width='1' height='3' border='0'//tdtd width='81' background='' class='blktext1' align='center' valign='bottom' style='cursor:hand'Transportationbrimg name='a' src='' width='1' height='3' border='0'//tdtd width='81' background='' class='blktext1' align='center' valign='bottom' style='cursor:hand'Compliancebrimg name='a' src='' width='1' height='3' border='0'//tdtd width='81' background='' class='blktext1' align='center' valign='bottom' style='cursor:hand'Holdsbrimg name='a' src='' width='1' height='3' border='0'//tdtd width='81' background='' class='blktext1' align='center' valign='bottom' style='cursor:hand'Line Itemsbrimg name='a' src='' width='1' height='3' border='0'//tdtd width='81' background='' class='blktext1' align='center' valign='bottom' style='cursor:hand'LineHoldsbrimg name='a' src='' width='1' height='3' border='0'//tdtd width='22'img src='' width='15' height='20' border='0' style='cursor:hand'/td /tr/table Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir 1.5
Meghanath, You will most likely have some trouble if you do not uninstall 1.4 first. To check, run this command from a DOS prompt: ruby -e 'require "watir"; puts Watir::IE::VERSIONIf it still shows 1.4, use 'gem uninstall watir' and choose the 1.4 version at the promptThanks,Adam From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chintakrindi Meghanath Sent: Monday, July 31, 2006 11:55 AMTo: wtr-general@rubyforge.orgSubject: [Wtr-general] Watir 1.5 Hi Thanks, I downloaded and installed using the gem. (gem install watir) How do I know where it got installed ? Also currently I am running watir 1.4.x, shall I need to remove it ? Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Click on the Tab
You can use the cell text contents to find the cell to click: table = ie.table(:index, 1)# Find the tab table using some method tab_cell = table.cell(:text, 'Parties') tab_cell.click If you know that this cell is the ONLY one with that text then you can just look for it anywhere on the page with: ie.cell(:text, 'Parties').click You can also regular expressions in the search: ie.cell(:text, /Par/).click David Schmidt [EMAIL PROTECTED] Chintakrindi Meghanath wrote: Hi I am trying to click a Tab in my application . I tried with various combinations, but couldnt succeed. Here is the source code can anyone help me ? I have to click on the Parties tab. div id='Zeroth_HdrTabId' style='position:absolute; left:0px; top:12px; width:595px; height:300px; z-index:1;align=left;visibility:hidden;' table width='595' cellspacing='0' cellpadding='0' border=0 align='center' trtd width='10'img name='a' src='/tc/img/en/a.gif' width='10' height='20' border='0'//td td width='81' background='/tc/img/en/on_tab.gif' class='blktext1' align='center' valign='bottom'Orderbrimg name='a' src='a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('1','11','DefaultActionTab',''); style='cursor:hand'*Parties*brimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('2','11','DefaultActionTab',''); style='cursor:hand'Transportationbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('4','11','DefaultActionTab',''); style='cursor:hand'Compliancebrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('5','11','FifthChild_ListTab|FifthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'Holdsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('6','11','SixthChild_ListTab|SixthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'Line Itemsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('7','11','SeventhChild_ListTab|SeventhChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'LineHoldsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='22'img src='/tc/img/en/aro_right.gif' width='15' height='20' border='0' onClick=displayTab('8','11','EighthChild_ListTab|EighthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'/td /tr /table Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] simple solution for basic authentication
I tried and failed, but I thought my problem was in the way IE handled the data. I'd love to be proven wrong: It works for me, hacking watir.rb with hardcoded credentials like so - def goto( url ) user = username pass = password auth = Authorization: Basic + Base64.encode64(user + : + pass) + \015\012 @ie.navigate(url, nil, nil, nil, auth) wait() sleep 0.2 return @down_load_time end I added a require 'base64' near the top. This is working for a site that's a huge mess of nested frames plus a swarm of small js, image, and css files, etc. I noticed that you hardcoded the base64 encoding of the credentials. Did you try to do it by doing the encoding on the fly? To productize it, I'd recommending adding a credentials method like Win32::IE::Mechanize uses. -Danny ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Click on the Tab
Hi I tried with ie.cell(:text, /Par/).click but its not working. Thanks Meghanath -Original Message- From: David Schmidt [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 2:33 PM To: wtr-general@rubyforge.org Cc: Chintakrindi Meghanath Subject: Re: [Wtr-general] Click on the Tab You can use the cell text contents to find the cell to click: table = ie.table(:index, 1)# Find the tab table using some method tab_cell = table.cell(:text, 'Parties') tab_cell.click If you know that this cell is the ONLY one with that text then you can just look for it anywhere on the page with: ie.cell(:text, 'Parties').click You can also regular expressions in the search: ie.cell(:text, /Par/).click David Schmidt [EMAIL PROTECTED] Chintakrindi Meghanath wrote: Hi I am trying to click a Tab in my application . I tried with various combinations, but couldnt succeed. Here is the source code can anyone help me ? I have to click on the Parties tab. div id='Zeroth_HdrTabId' style='position:absolute; left:0px; top:12px; width:595px; height:300px; z-index:1;align=left;visibility:hidden;' table width='595' cellspacing='0' cellpadding='0' border=0 align='center' trtd width='10'img name='a' src='/tc/img/en/a.gif' width='10' height='20' border='0'//td td width='81' background='/tc/img/en/on_tab.gif' class='blktext1' align='center' valign='bottom'Orderbrimg name='a' src='a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('1','11','DefaultActionTab',''); style='cursor:hand'*Parties*brimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('2','11','DefaultActionTab',''); style='cursor:hand'Transportationbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('4','11','DefaultActionTab',''); style='cursor:hand'Compliancebrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('5','11','FifthChild_ListTab|FifthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'Holdsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('6','11','SixthChild_ListTab|SixthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'Line Itemsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('7','11','SeventhChild_ListTab|SeventhChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'LineHoldsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='22'img src='/tc/img/en/aro_right.gif' width='15' height='20' border='0' onClick=displayTab('8','11','EighthChild_ListTab|EighthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'/td /tr /table Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] simple solution for basic authentication
This is working for a site that's a huge mess of nested frames plus a swarm of small js, image, and css files, etc. I noticed that you hardcoded the base64 encoding of the credentials. Did you try to do it by doing the encoding on the fly? Didn't try that, I didn't think it would have an effect. I'll go back and try again. And this works on all your frames and links? My experience was that the outer page was OK, but the credentials didn't allow access to other aspects of the page, like frames and links. -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Click on the Tab
OK, that may be a feature of the 1.5 development thread, which I'm running here. Did you try it with the quoted version? ie.cell(:text, 'Parties').click I've found the 1.5 versions to be very stable and worth running, BTW. David Chintakrindi Meghanath wrote: Hi I tried with ie.cell(:text, /Par/).click but its not working. Thanks Meghanath -Original Message- From: David Schmidt [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 2:33 PM To: wtr-general@rubyforge.org Cc: Chintakrindi Meghanath Subject: Re: [Wtr-general] Click on the Tab You can use the cell text contents to find the cell to click: table = ie.table(:index, 1)# Find the tab table using some method tab_cell = table.cell(:text, 'Parties') tab_cell.click If you know that this cell is the ONLY one with that text then you can just look for it anywhere on the page with: ie.cell(:text, 'Parties').click You can also regular expressions in the search: ie.cell(:text, /Par/).click David Schmidt [EMAIL PROTECTED] Chintakrindi Meghanath wrote: Hi I am trying to click a Tab in my application . I tried with various combinations, but couldnt succeed. Here is the source code can anyone help me ? I have to click on the Parties tab. div id='Zeroth_HdrTabId' style='position:absolute; left:0px; top:12px; width:595px; height:300px; z-index:1;align=left;visibility:hidden;' table width='595' cellspacing='0' cellpadding='0' border=0 align='center' trtd width='10'img name='a' src='/tc/img/en/a.gif' width='10' height='20' border='0'//td td width='81' background='/tc/img/en/on_tab.gif' class='blktext1' align='center' valign='bottom'Orderbrimg name='a' src='a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('1','11','DefaultActionTab',''); style='cursor:hand'*Parties*brimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('2','11','DefaultActionTab',''); style='cursor:hand'Transportationbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('4','11','DefaultActionTab',''); style='cursor:hand'Compliancebrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('5','11','FifthChild_ListTab|FifthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'Holdsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('6','11','SixthChild_ListTab|SixthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'Line Itemsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='81' background='/tc/img/en/tab_on3.gif' class='blktext1' align='center' valign='bottom' onClick=displayTab('7','11','SeventhChild_ListTab|SeventhChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'LineHoldsbrimg name='a' src='tc/img/a.gif' width='1' height='3' border='0'//td td width='22'img src='/tc/img/en/aro_right.gif' width='15' height='20' border='0' onClick=displayTab('8','11','EighthChild_ListTab|EighthChild_ListDvv|ListTab|ListDvv',''); style='cursor:hand'/td /tr /table Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir 1.5
Hi I unstalled the version 1.4.1 using the gem command and after that installed 1.5 version But when I used the command ruby -e 'require "watir"; puts Watir::IE::VERSION its showing as 1.4.1. I repeated the same twice but still its showing the 1.4 version Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] simple solution for basic authentication
On 7/31/06, Danny R. Faught [EMAIL PROTECTED] wrote: To productize it, I'd recommending adding a credentials method likeWin32::IE::Mechanize uses.I don't understand the $realm argument in this API. Can you explain? Could we drop it?Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] simple solution for basic authentication
On 7/31/06, Bret Pettichord [EMAIL PROTECTED] wrote: On 7/31/06, Danny R. Faught [EMAIL PROTECTED] wrote: To productize it, I'd recommending adding a credentials method like Win32::IE::Mechanize uses. I don't understand the $realm argument in this API. Can you explain? Could we drop it? realm is the value of the message presented to the user on the popup. The value is widely disregarded as an actual means of authorization, but it's still part of the spec. -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] 40 K limit to attachments
On 7/31/06, Zeljko Filipin [EMAIL PROTECTED] wrote: I would not even look at 40K+ html. All I really need to provide some help is a little snippet of relevant html.I see your point, although sometimes people send us the wrong snippet. Esp. when it comes to _javascript_. (They often send the functions when we need to see the html they are attached to). But i guess they really need to learn how to figure out where the html is themselves if they are going to be successful with watir.Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Not working here. Re: simple solution for basic authentication
I am getting exactly the same behavior using this approach as I did hacking the raw string: my browser is authorized only for the outer page. In my app, frames and links inside the outer page are also protected by basic auth. That is, each of the internal frames and links send back a 401 error to the browser upon first attempting to access them. IE by itself is smart enough to the do the right thing and acknowledge every single 401 it receives from the page, but Watir doesn't work that way-- you only get one goto() method per page, and hacking Watir to acknowledge an arbitrarily large number of 401 challenges seems like a complicated job. Again, I could be wrong, but the code below on my app behaves exactly like my other demonstration code. -Chris On 7/31/06, Danny R. Faught [EMAIL PROTECTED] wrote: I tried and failed, but I thought my problem was in the way IE handled the data. I'd love to be proven wrong: It works for me, hacking watir.rb with hardcoded credentials like so - def goto( url ) user = username pass = password auth = Authorization: Basic + Base64.encode64(user + : + pass) + \015\012 @ie.navigate(url, nil, nil, nil, auth) wait() sleep 0.2 return @down_load_time end I added a require 'base64' near the top. This is working for a site that's a huge mess of nested frames plus a swarm of small js, image, and css files, etc. I noticed that you hardcoded the base64 encoding of the credentials. Did you try to do it by doing the encoding on the fly? To productize it, I'd recommending adding a credentials method like Win32::IE::Mechanize uses. -Danny ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] RPC Server unavailable
w 1. Add time delays between the ie.close and ie.new or ie.start. This will give a chance for the ie.close to really close. 2. Don't close IE -- just reuse the existing client between tests. 3. Create an additional IE. As long as this lives, the IE server will continue to live and you can close and create IE windows without worry. I started getting the RPC server error in my script, when I changed it to close IE, clear the cache, and restart IE between iterations. The solution I'm trying, not quite on the list above, is this - # Close IE and make darn sure it's closed def closeIE(ie) while 1 begin ie.close rescue break end sleep 0.1 end end Seems to avoid the RPC error. I just bounce on ie.close until it throws an exception, before I try to open another IE window. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir 1.5
In this case, pleaseuninstall and reinstall watir and Ruby. If you install watir from the source ".gem" file instead of the windows installer (this obviously does not apply to 1.5.1 since it is only in .gem format), you will not have the uninstall trouble in the future. Thanks, Adam From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chintakrindi Meghanath Sent: Monday, July 31, 2006 2:23 PMTo: wtr-general@rubyforge.orgSubject: [Wtr-general] Watir 1.5 Hi I unstalled the version 1.4.1 using the gem command and after that installed 1.5 version But when I used the command ruby -e 'require "watir"; puts Watir::IE::VERSION its showing as 1.4.1. I repeated the same twice but still its showing the 1.4 version Thanks Meghanath ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Click on the Tab
On my lunch break, I copied your html into the body of an otherwise empty web page. (Had to add a /div to the end.) Then I fired up IRB, required 'watir', attached to the page, and tried this: irb(main):015:0 ie.cell(:text, /Par/).exists? = true irb(main):016:0 ie.cell(:text, /Par/).text = "*Parties*" irb(main):017:0 ie.cell(:text, /Par/).html = "\r\nTD class=blktext1 style=\"CURSOR: hand\" > 'DefaultActionTab','');\" vAlign=bottom align=middle width=81 background=""> /en/tab_on3.gif*Parties*BRIMG height=3 src="" width=1 border=0 name=a/TD" So Watir should be finding this cell. Whether it is kicking off your _javascript_ or not is another matter . . . I do not have a copy of that. Lonny Eachus === Subject: Re: [Wtr-general] Click on the Tab From: "Chintakrindi Meghanath " [EMAIL PROTECTED] Date: Mon, 31 Jul 2006 14:48:33 -0400 Hi I tried with ie.cell(:text, /Par/).click but its not working. Thanks Meghanath -Original Message- From: David Schmidt [mailto:[EMAIL PROTECTED]] Sent: Monday, July 31, 2006 2:33 PM To: wtr-general@rubyforge.org Cc: Chintakrindi Meghanath Subject: Re: [Wtr-general] Click on the Tab You can use the cell text contents to find the cell to click: ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Forums and mailing list merged
The mailing lists are now synchronizing with the forums at http://forums.openqa.org. You can post using either medium and be sure it will reach the same audience. The forums provided the added advantages of RSS feeds and reward points, but of course are only available online. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3167messageID=8700#8700 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Not working here. Re: simple solution for basic authentication
Again, I could be wrong, but the code below on my app behaves exactly like my other demonstration code. if anyone were really motivated to see what's happening, you could download the free version of the app I ran against: http://lyris.com/products/listmanager/free_trial.html -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] RPC Server unavailable
A collegue reports that he directly kills the iexplore process as a way of closing IE, and avoiding the RPC error.On 7/31/06, Danny R. Faught [EMAIL PROTECTED] wrote:w 1. Add time delays between the ie.close and ie.new or ie.start. Thiswill give a chance for the ie.close to really close. 2. Don't close IE -- just reuse the existing client between tests. 3. Create an additional IE. As long as this lives, the IE server will continue to live and you can close and create IE windows without worry. I started getting the RPC server error in my script, when I changed it toclose IE, clear the cache, and restart IE between iterations. Thesolution I'm trying, not quite on the list above, is this - # Close IE and make darn sure it's closeddef closeIE(ie)while 1beginie.closerescuebreakend sleep 0.1endendSeems to avoid the RPC error. I just bounce on ie.close until it throwsan exception, before I try to open another IE window.___ Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] DL::DLError too many callbacks defined from winClicker.rb (with fix)
While running a web scraping application under Mongrel we started getting a DL::DLError too many callbacks defined exception from winClicker.rb (which we're using to pull the static text from Javascript popups. I finally tracked this down to two problems in winClicker.rb where DL Callback blocks are defined. The first problem is that some of the callback blocks do a return from within the callback. This return doesn't just return from the callback, it returns from the winClicker function, bypassing the normal termination of the Windows EnumWindows or EnumChildWindows call. I've fixed this by properly setting the callback return code (bContinueEnum) so that the Windows call is properly terminated. In cases where the callback was trying to return a value from the callback I simply set a Ruby variable that is initialized outside the callback. However, this didn't solve the DL::DLError problem. Turns out that the DL library keeps it's own callback table (set in the DL.callback call). After digging through the DL C source code in dl.c I noticed that there is a DL.remove_callback call which is used to remove the callback from the DL table. I've added that call to all of the winClicker.rb methods which use DL.callback and my testing confirms that I'm no longer having a problem with that exception. I've checked this fix into the 1.5 development trunk as revision 1070. David Schmidt [EMAIL PROTECTED] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Want to run my test in slow speed??
What exactly do i have to code in Watir to run my test in slow mode so i can see what is typing during debugging?? Thanks! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] launch broswer as another user ?
Hi has anyone had to come up with a way of launching an instance of ie from within a script but run as another user context? I tried using cpau and I can launch a browser using a ruby script. I then run that script using cpau -u user -p password -ex cmd /K \launchbrowser.rb params -enc -file launchbrowser.job cpau -dec -file launchbrowser.job whilst this works fine to run the script standalone when I try to run this script from within a testcase using puts(Foo1) exec cpau -dec -file launchbrowser.job puts(Foo2) the browser launches but the testcase dosen't run through to completition drops out to cmd prompt as soon as the exec finishes. the plan was then to use ie.attach to attach to this browser window I'm hoping someone else has an easier / better idea to do this sort of thing? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3171messageID=8712#8712 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general