[wtr-general] Re: Connecting Watir to an IE control in a dotnet app?
Hi David, Did you ever get this to work? I am trying to do a similar thing with an embedded IE automation object inside a powerbuilder app. Thanks, Alister Scott http://watirmelon.wordpress.com/ On Aug 4 2007, 12:26 am, David Pollack davidspoll...@gmail.com wrote: thanks, we will give this a shot. On 8/3/07, Bret Pettichord b...@pettichord.com wrote: kyleaschmitt wrote: Yup. The ie is hidden inside a windows forms app. So there is no iexplore.exe in the process list even. If you can get access to the automation object, this will work: ie = Watir::IE.new nil ie.ie = the_automation_object_from_my_app --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Maximizng the Browser
When i am trying to maximize the ie with the folllowing code am getting this error message can anyone pls guide me where am doing mistake ie = Watir::IE.start(http://groups.google.com/group;) ie.goto(http://http://groups.google.com/group;) $ie.maximize() am getting the following error message c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x800401f3 Invalid class string from c:/ruby/lib/ruby/gems/1.8/gems/ watir-1.6.2/lib/watir/ie.rb:113:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 425:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 422:in `set_window_state' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 398:in `maximize' So i used this methtod ie.set_window_state :SW_MAXIMIZE even though showing some error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Test Set
You can use Rake to execute multiple tests. On Mar 20, 12:28 am, vladimir...@hotmail.com vladimir...@hotmail.com wrote: How to execute multiple functional Watir scripts unattended in a test set? Do I need to use Test::Unit even the test cases are not unit tests? Thanks, Vladimir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Calling classes in a defined order
On Fri, Mar 20, 2009 at 12:05, GJHmf graham.harb...@googlemail.com wrote: require 'C.rb' require 'A.rb' require 'B.rb' Instead of that, you will have to do something like: require 'test/unit/testsuite' require 'tc_myfirsttests' require 'tc_moretestsbyme' require 'ts_anothersetoftests' class TS_MyTests def self.suite suite = Test::Unit::TestSuite.new suite TC_MyFirstTests.suite suite TC_MoreTestsByMe.suite suite TS_AnotherSetOfTests.suite return suite end end Test::Unit::UI::Console::TestRunner.run(TS_MyTests) More info (at the bottom of the page): http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html If you need more help, ask. :) Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Script not running and not showing error message also
Hi all I am trying with this sccript to handle jaava pop ups can any one pls help me regarding this? If i run this script its not clicking on OK button and not displaying any errors also require 'watir' $ie = Watir::IE.new $ie.goto('http://www.google.com/preferences?hl=en') $ie.button(:name,submit2).click def popup_clicker(ie,buttonname) require 'watir/contrib/enabled_popup' require 'win32ole' hwnd = ie.enabled_popup(5) if(hwnd) #yeah! a popup popup = WinClicker.new popup.makeWindowActive(hwnd) #Activate the window. popup.clickWindowsButton_hwnd(hwnd,buttonname) #Click the button #popup.clickWindowsButton(/Internet/,buttonname,30) popup=nil end end ie=Watir::IE.attach(:title,Microsoft Internet Explorer) #ie.link(:text,/click/i).click_no_wait popup_clicker(ie,OK) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Calling classes in a defined order
Thanks Željko, I'm getting the following error with that example: uninitialized constant Test::Unit::UI::Console (NameError) What extras would I need to have installed to make this work? As its not entirely clear (to me) on the Test::Unit page you highlighted. Adding in require 'test/unit/ui/console/testrunner' brings up other errors: 'suite': uninitialized constant TS_MyTest::C (Name Error) from c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:27:in 'initialize' from c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:29:in 'new' from c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:29:in 'run' from ABC.rb:24 GJHmf - - - - - - - - ABC.rb # Test Suite require 'test/unit/testsuite' require 'C' require 'A' require 'B' class CABTest def self.suite suite = Test::Unit::TestSuite.new suite C.suite suite A.suite suite B.suite return suite end end Test::Unit::UI::Console::TestRunner.run(CABTest) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Maximizng the Browser
In a few of your recent posts, the code you're using is mixing local variables (ie) and global variables ($ie). You need to first understand the difference between these two, the Ruby Pickaxe guide has information on variable types in Ruby. ie = Watir::IE.start(http://groups.google.com/group;) ie.goto(http://http://groups.google.com/group;) ie.maximize() Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Fri, Mar 20, 2009 at 1:25 AM, Shweta nagman...@gmail.com wrote: When i am trying to maximize the ie with the folllowing code am getting this error message can anyone pls guide me where am doing mistake ie = Watir::IE.start(http://groups.google.com/group;) ie.goto(http://http://groups.google.com/group;) $ie.maximize() am getting the following error message c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x800401f3 Invalid class string from c:/ruby/lib/ruby/gems/1.8/gems/ watir-1.6.2/lib/watir/ie.rb:113:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 425:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 422:in `set_window_state' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 398:in `maximize' So i used this methtod ie.set_window_state :SW_MAXIMIZE even though showing some error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] IE freezes up
Hello all. I have noticed an odd behaviour. When I am developing a new test in Watir, often it will not work on the first try - various things crash. I go back to my code, fix things up and re-run the test. However, I noticed that after a test crashes, the next time my test opens an IE, it seems to be completely unresponsive. I need to open-exit IE several times in order to clear something. Has anyone else noticed this? Is there a better way to clear this up? Thanx, M. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Calling classes in a defined order
On Fri, Mar 20, 2009 at 16:17, GJHmf graham.harb...@googlemail.com wrote: How embarrassing. :) I learn a lot when I make mistakes in public. :) Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: IE freezes up
Hi Mark! The only time I've seen anything remotely like that, it's due to issues with my application under test. Try following your automated test steps manually to see if you can reproduce the problem without Watir. Also, have you tried clearing the browser cache when you restart your tests? -Tiffany On Mar 20, 8:50 am, Mark Lehky mark.le...@aclaro.com wrote: Hello all. I have noticed an odd behaviour. When I am developing a new test in Watir, often it will not work on the first try - various things crash. I go back to my code, fix things up and re-run the test. However, I noticed that after a test crashes, the next time my test opens an IE, it seems to be completely unresponsive. I need to open-exit IE several times in order to clear something. Has anyone else noticed this? Is there a better way to clear this up? Thanx, M. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Different Methods
Hi Vikas! I think many of your issues can be solved using autoIt commands: http://www.autoitscript.com/autoit3/ I haven't tried drag and drop functionality, but it looks like it's possible if you have a very good understanding of how it's implemented: http://tinyurl.com/cw3co7 Hope this helps! -Tiffany On Mar 19, 11:48 pm, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Guys, I have some questions -- 1. Can I select multiple elements from a list, if yest then what is the method? 2. Can I double click on elements in watir? 3. Can I perform a Drag and Drop operation in Watir if my AUT supports it ? 4. Can I perporf Mous up/Down, Mouse Movement/over , Key Press/Down events on any particular objects. Please answer. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: IE freezes up
This problem occurs _only_ under Watir. Clearing the cache does fix the issue ... most of the time. It appears, and please keep in mind that this is way outside of my knowledge, as if Watir ties up some resources in order to start up IE and keep track of everything - it must in order to be able to do it's work. But if the test does not end cleanly, and I have to kill everything (IE and the ruby shell), then these resources are not freed up properly? M. 2009/3/20 Tiffany Fodor tcfo...@comcast.net: Hi Mark! The only time I've seen anything remotely like that, it's due to issues with my application under test. Try following your automated test steps manually to see if you can reproduce the problem without Watir. Also, have you tried clearing the browser cache when you restart your tests? -Tiffany On Mar 20, 8:50 am, Mark Lehky mark.le...@aclaro.com wrote: Hello all. I have noticed an odd behaviour. When I am developing a new test in Watir, often it will not work on the first try - various things crash. I go back to my code, fix things up and re-run the test. However, I noticed that after a test crashes, the next time my test opens an IE, it seems to be completely unresponsive. I need to open-exit IE several times in order to clear something. Has anyone else noticed this? Is there a better way to clear this up? Thanx, M. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Count table Element
Without knowing how your application works, it's hard to say how to delete an item, but you can count the rows and columns in a table like this: num_rows = browser.table(:id, 'tableID').row_count num_columns = browser.table(:id, 'tableID').column_count -Tiffany On Mar 20, 9:05 am, maximore hri...@gmail.com wrote: Hi I want to remove an exiting table item, on a table . but I want to count and know how many item are there , before deleting an item on the table . My question is How to implement this pcs of code in ruby . in C or C++ I could used pointer and point in memory to each item in memory and count the items... Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Excel Issue?
All, I have a routine in my program that compares files in two directories with the same name. For example, lets say I have 'Directory1' and 'Directory2'. The routine looks in each directory, and if a file name exists in both directories I compare the files. I then print the results of each comparison in an excel spreadsheet. Each comparison is put on its own row in the spreadsheet. This has been working fine, but now I have two directories with about 80,000 files each. I am getting this error when I run this against these directories: :in 'method_missing' : Range (WIN32OLERuntimeError) OLE error code:800A03EC in (Unknown) (No Description) HRESULT error code:0x80020009 Exception occurred. Is this an Excel size limitation issue? Thanks in advance for all help. - Shelton _ Get quick access to your favorite MSN content with Internet Explorer 8. http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Issue?
Hi! I think Excel's row limit is 65536, if you're trying to write more rows than that, this could be your problem. If you really want to keep working with Excel, you could check to see if rows are available and if they're not, add a new tab or use new columns in the current tab. -Tiffany On Mar 20, 10:20 am, Jason Shelton jas.shel...@hotmail.com wrote: All, I have a routine in my program that compares files in two directories with the same name. For example, lets say I have 'Directory1' and 'Directory2'. The routine looks in each directory, and if a file name exists in both directories I compare the files. I then print the results of each comparison in an excel spreadsheet. Each comparison is put on its own row in the spreadsheet. This has been working fine, but now I have two directories with about 80,000 files each. I am getting this error when I run this against these directories: :in 'method_missing' : Range (WIN32OLERuntimeError) OLE error code:800A03EC in (Unknown) (No Description) HRESULT error code:0x80020009 Exception occurred. Is this an Excel size limitation issue? Thanks in advance for all help. - Shelton _ Get quick access to your favorite MSN content with Internet Explorer 8.http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] help: click on nest tag link of jsp page using xpath
hello need some help here... trying to click on a link on jsp page using xpath but tried a few and none are working... here's the html tag from IE Developer tool bar: A title=To Operate On Sensor Points href=javascript:window.open('/ sirius/SiteMgrs.jsp? sel=SaveSensorPoints','_parent','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');Operate on Sensor Points/A these are the ones i've tried: # $ie.link(:xpath,//a[conta...@href ,'To Operate on Sensor Points']/).click # $ie.link(:xpath,//a[conta...@title ,'To Operate on Sensor Points']/).click # $ie.link(:xpath,//a[conta...@href , 'SiteMgrs.jsp? sel=SaveSensorPoints']/).click # $ie.link(:xpath,//a[conta...@href , 'javascript:window.open('/ sirius/SiteMgrs.jsp? sel=SaveSensorPoints','_parent','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')']/).click #$ie.link(:xpath,//a[conta...@href , 'javascript:window.open('/sirius/ SiteMgrs.jsp?sel=SaveSensorPoints']/).click any other ways to click on this link? thx! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Test Set
Hi! Watir is a Ruby library, not a framework - you can use any framework you like to run Watir tests. Some that come to mind are Test::Unit, RSpec, WatirCraft, Taza, Watirloo, Rasta and Cucumber. Most people are moving away from Test::Unit and implementing RSpec (although I still use and like Test::Unit). You can find examples of some frameworks here: http://wiki.openqa.org/display/WTR/Examples The others can be easily found with a quick web search. Hope this helps! -Tiffany On Mar 19, 5:28 pm, vladimir...@hotmail.com vladimir...@hotmail.com wrote: How to execute multiple functional Watir scripts unattended in a test set? Do I need to use Test::Unit even the test cases are not unit tests? Thanks, Vladimir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: help: click on nest tag link of jsp page using xpath
thanks Tiffany we've spend some time on #watir irc and got it to work with frame for this page, will see how it goes with later pages... $ie.frame(:name, menu).link(:text, 'Operate on Sensor Points').click On Mar 20, 9:33 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi! Have you tried :text or :href? If all else fails, you might be able to use :index, but I'd recommend that as a last resort. You could try in irb with index just to make sure you can click on it and then work on a better solution from there. Also, I've run into cases where the link is actually a span. Hope this helps! -Tiffany On Mar 20, 10:58 am, anssirius anssir...@gmail.com wrote: hello need some help here... trying to click on a link on jsp page using xpath but tried a few and none are working... here's the html tag from IE Developer tool bar: A title=To Operate On Sensor Points href=javascript:window.open('/ sirius/SiteMgrs.jsp? sel=SaveSensorPoints','_parent','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');Operate on Sensor Points/A these are the ones i've tried: # $ie.link(:xpath,//a[conta...@href ,'To Operate on Sensor Points']/).click # $ie.link(:xpath,//a[conta...@title ,'To Operate on Sensor Points']/).click # $ie.link(:xpath,//a[conta...@href , 'SiteMgrs.jsp? sel=SaveSensorPoints']/).click # $ie.link(:xpath,//a[conta...@href , 'javascript:window.open('/ sirius/SiteMgrs.jsp? sel=SaveSensorPoints','_parent','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')']/).click #$ie.link(:xpath,//a[conta...@href , 'javascript:window.open('/sirius/ SiteMgrs.jsp?sel=SaveSensorPoints']/).click any other ways to click on this link? thx! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Cucumber, Celerity FireWatir
http://video.google.com/videoplay?docid=470645360297935233 Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Test Set
Thank you very much to ALL. On Mar 20, 10:27 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi! Watir is a Ruby library, not a framework - you can use any framework you like to run Watir tests. Some that come to mind are Test::Unit, RSpec, WatirCraft, Taza, Watirloo, Rasta and Cucumber. Most people are moving away from Test::Unit and implementing RSpec (although I still use and like Test::Unit). You can find examples of some frameworks here: http://wiki.openqa.org/display/WTR/Examples The others can be easily found with a quick web search. Hope this helps! -Tiffany On Mar 19, 5:28 pm, vladimir...@hotmail.com vladimir...@hotmail.com wrote: How to execute multiple functional Watir scripts unattended in a test set? Do I need to use Test::Unit even the test cases are not unit tests? Thanks, Vladimir- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Hover image
is this a UI within IE? or a windows file browser UI? if the latter you'll need to look at something like using AutoIt to click on it. if it's in the browser the 'tool-tip' effect is generally done via either ALT or TITLE attributes on the object.. view the source and seach for some portion of the popup text (or use the IE deveoper toolbat to examine the thing. it's also possible to do it with a javascript function that uses a onmouseover event, but since the browser will do it for you with just the Alt or Title tags, most devs just use that instead of trying to reinvent that particular wheel. (otoh if i's doing other effects like changing the image, then it's likely javascript) On Mar 19, 12:59 pm, maximore hri...@gmail.com wrote: I want to click on a file in program which has a hover over, name display, the name appear as the user hover . Then when the mouse is removed from the location the name of the file will disappear. This is how it works I am looking for a way to automate clicking on file with such properties. do you know know to go about ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] WatirRecorder++ Playback question
Can anyone answer this? I uninstalled Ruby and watirrecorder++ and reinstalled Ruby hoping that would help. After reinstalling Ruby I ran a .rb file and after running the .rb file from a dos box WatirRecorder installed it's self and opened a WatirRecorder++ window. Of course, I'm still getting the same results with not getting playback to work or not being able to run a ruby file form a dos box and not have it open a WatirRecorder++ dialog box. Thank you for your help. On Thu, Mar 19, 2009 at 11:10 PM, nagmani vm nagman...@gmail.com wrote: Am New to Ruby Watir can u pls send the Watir Recorder software On Thu, Mar 19, 2009 at 3:32 AM, Boyd Ivey boydiv...@gmail.com wrote: I'm new to watir and have a easy question. When I record a ruby script in WatirRecorder++ it records fine. When I'm finished recording I can Stop and Save the script with no problems. However at this point in WatirRecorder++ if I click the Playback button a new WatirRecorder++ program pops up with the identical code (now I have 2 WatirRecorder programs running with identical scripts) and the script does not run. My default code in the script is: require 'watir' include Watir require 'test/unit' class TC_recorded Test::Unit::TestCase def test_recorded ie = IE.new ** I've also used: ie = Watir::IE.new on the last line above and received same results ** Also, I've tried running the scripts from a dos prompt. First off, the files are saved as .ware files. I get an error when I try to run the .ware file. If I rename the file to a .rb and type: *scriptname.rb* it again opens WatirRecorder++ with the script displaying and does not run the script. What am I missing? Isn't Playback supposed to playback the script? Why is running a ruby file from a dos prompt opening WatirRecorder++ and not running the script? Thanks, -- Thanks Regards, Nagmani V.M. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Different Methods
1) see this (unfortunatey poorly tited) topic from a day or so ago. http://groups.google.com/group/watir-general/browse_thread/thread/d9e4ba1cd54fffbf?hl=en 2) huh? I don't think I've ever seen stuff inside a browser that is doubleclicked.. pretty much everything in a 'web interface' is single click type stuff. If your app has a web interface is is somehow supporting double-clicking I think you'd need to try and figure out how that's been implemented. with more details we might be able to assist you. 3) again, drag and drop is not typical for a web interface, you'd have to perhaps talk to your devs to see how this has been implemented, but it may be possible to fire appropriate events to indicate things like a mouse down on one object (the click) and a mouse up over another object (the release after the drag) 4) yes, firing off of events of this sort is pretty easily done. There's likely a bunch of messages here already on that sort of topic, I'd suggest you try seaching the group for the name of the event you want to fire. as an aside, laundry lists of questions like this don't tend to be a lot of use to others down the road when they come here and try to search for answers. You are better off to search first, and if you don't find an answer then start a new thread for each separate question, with a title that accurately summarizes your question. --Chuck You can invoke: user.leadto(knowledge.location) but unfortunately: user.drink() is a private method On Mar 19, 10:48 pm, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Guys, I have some questions -- 1. Can I select multiple elements from a list, if yest then what is the method? 2. Can I double click on elements in watir? 3. Can I perform a Drag and Drop operation in Watir if my AUT supports it ? 4. Can I perporf Mous up/Down, Mouse Movement/over , Key Press/Down events on any particular objects. Please answer. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Issue?
As an aside, I'm not sure what file system you are using, but in my experience for a lot of file systems putting that many files into a singe directory can cause system performance to suffer immensely.. I don't recall the exact number (it's been several years, and I found it the hard way) but I remember hitting a limit with NTFS where I was unabe to copy more than around 40K files into a single directory Also it seems a bit like you are re-inventing the wheel as it were, have you considered trying WINDIFF? it has a function that compares directories of files and indicates the differences. On Mar 20, 9:20 am, Jason Shelton jas.shel...@hotmail.com wrote: All, I have a routine in my program that compares files in two directories with the same name. For example, lets say I have 'Directory1' and 'Directory2'. The routine looks in each directory, and if a file name exists in both directories I compare the files. I then print the results of each comparison in an excel spreadsheet. Each comparison is put on its own row in the spreadsheet. This has been working fine, but now I have two directories with about 80,000 files each. I am getting this error when I run this against these directories: :in 'method_missing' : Range (WIN32OLERuntimeError) OLE error code:800A03EC in (Unknown) (No Description) HRESULT error code:0x80020009 Exception occurred. Is this an Excel size limitation issue? Thanks in advance for all help. - Shelton _ Get quick access to your favorite MSN content with Internet Explorer 8.http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---