[wtr-general] Re: Invoking a .bat file
Hi Filipin, I had used %x(filepath\filename.bat). But nothing happens the ruby shells opens remains constantly. Kindly help me in this. Thanks, Venkat On Mar 18, 4:27 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Mar 18, 2009 at 12:24, venky venkatesh...@gmail.com wrote: How to invoke a .bat file from watir script `file.bat` http://atog.be/2007/7/24/ruby-backticks/ Ž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: Multiple Attributes and form
next code: p ff.form(:id, /delete_access34074/).exist? html = ff.html p html.scan(/id=\delete_access34074\/) And I execute this: $ ruby test.rb false [id=\delete_access34074\] Why ? --~--~-~--~~~---~--~~ 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: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject...
Thank you, Ravi. It works now on Vista. I opened ruby.exe properties, Tab Compatibility, and selected Privilege Level as 'Run this program as as administrator'. But I had this problem originally on XP. What is the solution there? Thanks, Vladimir On Mar 18, 9:07 pm, Ravi Kumar mvraviku...@gmail.com wrote: Hey , Make sure C:\ruby\bin\ruby.exe invoked as Administrator (if you are running the script in Vista) Thanks Ravi On Wed, Mar 18, 2009 at 9:56 PM, vladimir...@hotmail.com vladimir...@hotmail.com wrote: It opens Google web site, but does not type anything in the search field. All environment variables you've described have been set during Ruby and Watir installation. The error is in /ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:52. Thanks, Vlad On Mar 18, 6:37 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: Does it open the web page correctly? Or does it fail right off the bat? Check the following. Goto Setting -Control Panel- System Click Advanced Tab Click Environment Variables Under Path Variable verify c:\Ruby\bin Exists. If not add it. Under PATHEXT Variable verify .RB exists. If not add it If variable RUBYOPT Doesn't Exist add it RUBYOPT - Value = -rubygems -Original Message- From: watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] On Behalf Of vladimir...@hotmail.com Sent: Wednesday, March 18, 2009 8:26 PM To: Watir General Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... Thank you, Darin for reply. Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] Gem list: *** LOCAL GEMS *** activesupport (2.3.2) builder (2.1.2) commonwatir (1.6.2) firewatir (1.6.2) fxri (0.3.6) fxruby (1.6.12) hoe (1.11.0) hpricot (0.6) log4r (1.0.5) rake (0.8.4, 0.7.3) rubyforge (1.0.3) rubygems-update (1.3.1) s4t-utils (1.0.4) sources (0.0.1) user-choices (1.1.6) watir (1.6.2) win32-api (1.4.0, 1.0.4) win32-clipboard (0.4.3) win32-dir (0.3.2) win32-eventlog (0.4.6) win32-file (0.5.4) win32-file-stat (1.2.7) win32-process (0.6.0, 0.5.3) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.3.0, 0.2.0) windows-pr (1.0.2, 0.7.2) xml-simple (1.0.12) On Mar 18, 6:02 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: I ran your code and it worked for me. What Version of ruby did you load? Type in command prompt ruby -v What gems do you have installed? gem list -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of vladimir...@hotmail.com Sent: Wednesday, March 18, 2009 6:42 PM To: Watir General Subject: [wtr-general] Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... I was trying to run google_search.rb from tutorial: require 'watir' # set a variable test_site = http://www.google.com; # open the IE browser ie = Watir::IE.new ie.goto test_site ie.text_field(:name, q).set pickaxe # q is the name of the search field Always getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObjectException...) Spent already half a day. Nothing works. Please, help. Thank you very much, Vladimir- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- 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: Multiple Attributes and form
May be It is not a form. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 2:35 PM, alexey s. radiact...@gmail.com wrote: next code: p ff.form(:id, /delete_access34074/).exist? html = ff.html p html.scan(/id=\delete_access34074\/) And I execute this: $ ruby test.rb false [id=\delete_access34074\] Why ? --~--~-~--~~~---~--~~ 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: Multiple Attributes and form
for test, in irb: irb(main):018:0 ff.goto(http://google.com;) = #FireWatir::Firefox:0xb77c0094 @window_url=http:// www.google.ru/, @t=#Thread:0xb77bffcc dead, @window_title=Google, @error_checkers=[] irb(main):019:0 ff.show_forms There are 1 forms Form name: f id: method: action: /search index: = 0..0 irb(main):020:0 ff.form(:name = /f/, :action = /search/) Watir::Exception::UnknownObjectException: Unable to locate element, using :name, {:action=/search/, :name=/f/} On Mar 19, 9:40 am, wesley chen cjq@gmail.com wrote: May be It is not a form. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 2:35 PM, alexey s. radiact...@gmail.com wrote: next code: p ff.form(:id, /delete_access34074/).exist? html = ff.html p html.scan(/id=\delete_access34074\/) And I execute this: $ ruby test.rb false [id=\delete_access34074\] Why ? --~--~-~--~~~---~--~~ 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: Multiple Attributes and form
where is the id delete_access34074? It's other page and form: form action=user.pl method=post id=delete_access41599 input type=submit value=Отвязать /form --~--~-~--~~~---~--~~ 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: Multiple Attributes and form
For this form, where is the name f? And the id delete_access41599 is rand? Thanks. Wesley Chen. 2009/3/19 alexey s. radiact...@gmail.com where is the id delete_access34074? It's other page and form: form action=user.pl method=post id=delete_access41599 input type=submit value=Отвязать /form --~--~-~--~~~---~--~~ 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] Need help on this issue
Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? --~--~-~--~~~---~--~~ 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] .so and h files
Hi Friends, Can anybody tell me, what is the so and h files found in the C:\ruby \lib\ruby\1.8\i386-mswin32 folder.Can we create these files. 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: Need help on this issue
This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen cjq@gmail.com wrote: Will you try: ie.select_list(:name,inspectionStatus).clear ie.select_list(:name,inspectionStatus).set(Partial) Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:34 PM, Shweta nagman...@gmail.com wrote: Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? -- 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: Need help on this issue
Sorry, should be clearSelection Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm nagman...@gmail.com wrote: This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen cjq@gmail.com wrote: Will you try: ie.select_list(:name,inspectionStatus).clear ie.select_list(:name,inspectionStatus).set(Partial) Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:34 PM, Shweta nagman...@gmail.com wrote: Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? --~--~-~--~~~---~--~~ 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: Need help on this issue
Ok thank you very much its working fine Can i have your mai id?i am new to watir if i come across any queries i can ask u? On Thu, Mar 19, 2009 at 5:25 PM, wesley chen cjq@gmail.com wrote: Sorry, should be clearSelection Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm nagman...@gmail.com wrote: This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen cjq@gmail.com wrote: Will you try: ie.select_list(:name,inspectionStatus).clear ie.select_list(:name,inspectionStatus).set(Partial) Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:34 PM, Shweta nagman...@gmail.com wrote: Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? -- 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: Need help on this issue
When you have questions, please ask on the group so that everybody can see it. Few months ago, I am the same kind of new guy as you in Watir, :), but I still have to study a lot. I will try my best to help you. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:59 PM, nagmani vm nagman...@gmail.com wrote: Ok thank you very much its working fine Can i have your mai id?i am new to watir if i come across any queries i can ask u? On Thu, Mar 19, 2009 at 5:25 PM, wesley chen cjq@gmail.com wrote: Sorry, should be clearSelection Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm nagman...@gmail.com wrote: This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen cjq@gmail.comwrote: Will you try: ie.select_list(:name,inspectionStatus).clear ie.select_list(:name,inspectionStatus).set(Partial) Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:34 PM, Shweta nagman...@gmail.com wrote: Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? -- 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: How to change a ruby file into an .exe file
I remember that you had to use rubyscript2exe variables instead of File.dirname. Please refer to here to find out which one works for you: http://www.erikveen.dds.nl/rubyscript2exe/#3.3.0 On Mar 18, 2:57 pm, wesley chen cjq@gmail.com wrote: A problem exists: I create two .rb file in the same directory first is test1.rb, with code: require 'watir' $ie=Watir::IE.new second is test2.rb, with code: *require File.join(Dir.pwd, 'test1.rb')* $ie.goto(www.baidu.com) puts OK $ie.text_field(:id,'kw').set(www.baidu.com) $ie.button(:id,'sb').click puts OK $ie.close When I go to the right file directory, run rubyscript2exe test2.rb I get test2.exe, it can be executed as expected. Problem is: When I change the *require File.join(Dir.pwd, 'test1.rb')* to *require File.dirname(__FILE__) +'/test1.rb'* # *require File.dirname(__FILE__) +'\\test1.rb'* I can *rubyscript2exe test2.rb* into *test2.exe* as expected. But when I execute test2.exe, I get error message: *No such file to load --***\app\test1.rb(LoadError) * In my project, I use require File.dirname(__FILE__) + '/../..' anywhere, so how can make it so that, the exe file can be executed? Any suggestion would be quite appreciated. Thanks. Wesley Chen. On Wed, Mar 18, 2009 at 8:22 PM, wesley chen cjq@gmail.com wrote: Two steps to make the .rb file to .exe file. 1. go to your command line, run gem install rubyscript2exe 2. Go to your main.rb file directory, run rubyscript2exe main.rb It will make the main.rb into main.exe Thanks. Wesley Chen. On Sat, Feb 28, 2009 at 12:50 AM, Jarmo Pertman jarm...@gmail.com wrote: Or use rubyscript2exe, which also supports Linux and OSX. You can read more about it from here http://www.erikveen.dds.nl/rubyscript2exe/ On Feb 20, 10:38 am, Wilson Xu xu.xiaodong.wil...@gmail.com wrote: refer tohttp://rubyforge.org/projects/exerb/project. Wilson --~--~-~--~~~---~--~~ 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: Need help on this issue
When you would like to ask a question, please search in the group at first. In fact, there are many existing good though in the group about your question. When you compile the script again and again, meet different kind of problems and then solve them, you may study more. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 8:08 PM, nagmani vm nagman...@gmail.com wrote: Ok fine thanks and i have one more query How to handle window related pop ups like Print window and Choose file dialogs while uploading a file On Thu, Mar 19, 2009 at 5:36 PM, wesley chen cjq@gmail.com wrote: When you have questions, please ask on the group so that everybody can see it. Few months ago, I am the same kind of new guy as you in Watir, :), but I still have to study a lot. I will try my best to help you. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:59 PM, nagmani vm nagman...@gmail.comwrote: Ok thank you very much its working fine Can i have your mai id?i am new to watir if i come across any queries i can ask u? On Thu, Mar 19, 2009 at 5:25 PM, wesley chen cjq@gmail.comwrote: Sorry, should be clearSelection Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm nagman...@gmail.comwrote: This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen cjq@gmail.comwrote: Will you try: ie.select_list(:name,inspectionStatus).clear ie.select_list(:name,inspectionStatus).set(Partial) Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:34 PM, Shweta nagman...@gmail.com wrote: Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? -- Thanks Regards, Nagmani V.M. -- 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] Need help to test the pagination functionality
HI I need to test the pagination functionality in my application i have links like this 1,2,3,..All and these are links How i can test this or regularise this i was using code like this ie.link(:href,http://qa.irma.icat.com/inspwebapp/ displayInspections.do?windowNumber=[0-9])).click BUt its not working I want to use regular expression in my code i have to test the functionality where a click on column head will be sorting ascending and descending vice versa i.e when a click on first time the link property will be like this href: http://qa.irma.icat.com/inspwebapp/displayInspections.do?doSort=truesortAttr=insuredNamesortDirection=ascending and next time will be changing the value as href: http://qa.irma.icat.com/inspwebapp/displayInspections.do?doSort=truesortAttr=insuredNamesortDirection=descending .I was using code as http://qa.irma.icat.com/inspwebapp/displayInspections.do?doSort=truesortAttr=insuredNamesortDirection=ascending|descending .I used | operator even though not executing succeefully can anyone pls let me know the solution for this? --~--~-~--~~~---~--~~ 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: Need help on this issue
I my application i have clear criteris button a click on this button should rset the field values to default its happening with text fields while doing automation but not with selection boxes On Thu, Mar 19, 2009 at 5:22 PM, nagmani vm nagman...@gmail.com wrote: This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen cjq@gmail.com wrote: Will you try: ie.select_list(:name,inspectionStatus).clear ie.select_list(:name,inspectionStatus).set(Partial) Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:34 PM, Shweta nagman...@gmail.com wrote: Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? -- Thanks Regards, Nagmani V.M. -- 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: Need help on this issue
Ok fine thanks and i have one more query How to handle window related pop ups like Print window and Choose file dialogs while uploading a file On Thu, Mar 19, 2009 at 5:36 PM, wesley chen cjq@gmail.com wrote: When you have questions, please ask on the group so that everybody can see it. Few months ago, I am the same kind of new guy as you in Watir, :), but I still have to study a lot. I will try my best to help you. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:59 PM, nagmani vm nagman...@gmail.com wrote: Ok thank you very much its working fine Can i have your mai id?i am new to watir if i come across any queries i can ask u? On Thu, Mar 19, 2009 at 5:25 PM, wesley chen cjq@gmail.com wrote: Sorry, should be clearSelection Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm nagman...@gmail.com wrote: This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen cjq@gmail.comwrote: Will you try: ie.select_list(:name,inspectionStatus).clear ie.select_list(:name,inspectionStatus).set(Partial) Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:34 PM, Shweta nagman...@gmail.com wrote: Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as control i mean its selecting both the default one and selected one i have written code like this: ie.select_list(:name,inspectionStatus).set(Partial) the default one will be All from the list box when i am running this line of code i should be able to get only partial status inspections/records but am getting both types of records.What might be the problem? Can anyone pls let me know? -- Thanks Regards, Nagmani V.M. -- 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: .so and h files
Somebody must have created them ... http://en.wikipedia.org/wiki/Header_file http://en.wikipedia.org/wiki/Shared_library#Shared_libraries HTH. 2009/3/19 Vikas Tulashyam vtulash...@gmail.com: Hi Friends, Can anybody tell me, what is the so and h files found in the C:\ruby \lib\ruby\1.8\i386-mswin32 folder.Can we create these files. 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: Problems locating basic elements in Watir
Just wondering if my guess was correct: does XPath infact not work with frames in Watir? TIA. 2009/3/17 Mark Lehky mark.le...@aclaro.com: Here is a better wiki link http://wiki.openqa.org/display/WTR/XPath Apparently it does not work: In my case, this works fine: level1 = ie.frame(:id, contentFrame) level2 = level1.frame(:id, frameHeader) myselect = level2.select_list(:id, c_ddlCategory) myselect.flash This does NOT work: myselect2 = ie.select_list(:xpath, //sele...@id='c_ddlCategory']) myselect2.flash Unable to locate element, using :xpath This also does NOT work: myselect2 = level2.select_list(:xpath, //sele...@id='c_ddlCategory']) myselect2.flash undefined method `element_by_xpath' :( 2009/3/17 Mark Lehky mark.le...@aclaro.com: With respect to XPath, the best I have been able to Google so far is this document: http://svn.openqa.org/fisheye/browse/~raw,r=897/watir/trunk/watir/doc/Support%20for%20XPATH%20in%20Watir.doc which suggests that XPath in Watir is supported _except_ for FRAMES? Is this still the case? TIA. 2009/3/17 Mark Lehky mark.le...@aclaro.com: For anyone following this thread: Yes, you can traverse the frames as I indicated below, and it works! :D Now, can I do the same using XPath ... 2009/3/17 Mark Lehky mark.le...@aclaro.com: I think the answer is somewhere in your suggestion. The element(s) that I am looking for is quite deep in several nested FRAMESET/FRAME/FRAMESET/FRAME/... Is there a way in Watir/Ruby to say in any frame, no matter how deep? If not, how do I traverse them? Can I do something like: ie = Watir::IE.new frame1 = ie.frame(:id, contentFrame) frame2 = frame1.frame(:id, frameTop) ...etc. Thank You all for the help so far. --~--~-~--~~~---~--~~ 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: Problems locating basic elements in Watir
Hey thanx! These work perfect. M. 2009/3/17 marekj marekj@gmail.com: I see the wild guess worked. Each document in a frame is probably a separate DOM and I presume the framesets were built as a view so each frame could be refreshed independently. Now you may want to build a map of frames but don't do assignment like this frame = ie.frame(how, what) because if the page refreshes inside the frame your frame variable holds reference to a stale object which does not exist to make sure you always have access to the latest DOM in frames I would build some methods: like so: def browser @ie # or any other browser end def content frame(:id, 'contentFrame') end def top frame(:id, 'frameTop') end now you can access your DOM in a frame browser.content.top.element browser.content.element you decide the semantic method names you want to give to frames you make small method wrappers for your watir code. it helps you clarify what frame is what. (I am sorry but Watirloo is still not intuitive enough to recommend it but I am working on it) marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Tue, Mar 17, 2009 at 3:39 PM, Mark Lehky mark.le...@aclaro.com wrote: For anyone following this thread: Yes, you can traverse the frames as I indicated below, and it works! :D Now, can I do the same using XPath ... 2009/3/17 Mark Lehky mark.le...@aclaro.com: I think the answer is somewhere in your suggestion. The element(s) that I am looking for is quite deep in several nested FRAMESET/FRAME/FRAMESET/FRAME/... Is there a way in Watir/Ruby to say in any frame, no matter how deep? If not, how do I traverse them? Can I do something like: ie = Watir::IE.new frame1 = ie.frame(:id, contentFrame) frame2 = frame1.frame(:id, frameTop) ...etc. Thank You all for the help so far. --~--~-~--~~~---~--~~ 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: Multiple Attributes and form
I suspect that forms still don't support multiple attributes in Watir (IEWatir or FireWatir). Feel free to log this problem in Jira. Bret alexey s. wrote: There is problem with Multiple Attributes and form. I use FireWatir on Ubuntu Linux with FireFox. when I run next code: a = ff.form(:action = /.*/, :index = 1) p a gets: /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:967:in `assert_exists': Unable to locate element, using :name, {:action=/.*/, :index=1} (Watir::Exception::UnknownObjectException) from /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:748:in `inspect' from test.rb:84:in `p' But a = ff.link(:text = /.*/, :index = 2) work successfully firewatir - 1.6.2 Mozilla Firefox 3.0.7 ruby 1.8.7 (2008-08-11 patchlevel 72) Ubuntu 8.10 Can you help me ? -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Austin March 25-26, Portland/Beaverton April 16-17 www.watircraft.com/training --~--~-~--~~~---~--~~ 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: Invoking a .bat file
Add a system call in your script. Try system('filepath\filename.bat') Hope this helps. On Mar 18, 7:24 am, venky venkatesh...@gmail.com wrote: Hi How to invoke a .bat file from watir script Thanks, venkat --~--~-~--~~~---~--~~ 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: Invoking a .bat file
You can make a system call in your script. Try this in your watir script: system('filepath\filename.bat') Hope this helps. On Mar 19, 11:11 am, Jim Matthews jim_m...@swbell.net wrote: Zeljko, When I click on the link you provided, I get a page not found from githubpages. Jim On Mar 18, 6:27 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Mar 18, 2009 at 12:24, venky venkatesh...@gmail.com wrote: How to invoke a .bat file from watir script `file.bat` http://atog.be/2007/7/24/ruby-backticks/ Željko- 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: Multiple Attributes and form
I don't get is why are you using :action = /.*/ ? Can you just take it off, so that the execution is much more efficient and work w/o any issue? - Original Message From: alexey s. radiact...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, March 18, 2009 10:16:04 PM Subject: [wtr-general] Multiple Attributes and form There is problem with Multiple Attributes and form. I use FireWatir on Ubuntu Linux with FireFox. when I run next code: a = ff.form(:action = /.*/, :index = 1) p a gets: /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:967:in `assert_exists': Unable to locate element, using :name, {:action=/.*/, :index=1} (Watir::Exception::UnknownObjectException) from /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:748:in `inspect' from test.rb:84:in `p' But a = ff.link(:text = /.*/, :index = 2) work successfully firewatir - 1.6.2 Mozilla Firefox 3.0.7 ruby 1.8.7 (2008-08-11 patchlevel 72) Ubuntu 8.10 Can you help me ? --~--~-~--~~~---~--~~ 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: Need Help on Regular Expression
Hi Nagamani, you could do it simply by having the following code: #...@b - Substitute @b with whatever you used for your browser instance #click on the ascending sort button - ?? assert(@b.url =~ /ascending/) - for ascending sorting #click on the descending sort - button ?? assert(@b.url =~ /descending) - for descending #if you want to use | so that you can validate if the url has asc or desc then use it like this assert(@b.url =~ /(descending|ascending)/ - for descending Regards, Bhaskar On Mar 18, 4:19 am, nagmani vm nagman...@gmail.com wrote: I want to use regular expression in my code i have to test the functionality where a click on column head will be sorting ascending and descending vice versa i.e when a click on first time the link property will be like this href:http://qa.irma.icat.com/inspwebapp/displayInspections.do?doSort=true;... and next time will be changing the value as href:http://qa.irma.icat.com/inspwebapp/displayInspections.do?doSort=true;... was using code ashttp://qa.irma.icat.com/inspwebapp/displayInspections.do?doSort=true...descending.I used | operator even though not executing succeefully can anyone pls let me know the solution for this On Tue, Mar 17, 2009 at 7:01 PM, JArkelen johnvanarke...@gmail.com wrote: Two questions in one post: 1. Is there a way to determine if a flash object has finished loading? I don't want to do anything with the flash itself, I just want to know if the page including the flash object is complety loaded before continuing. 2. I use IEthrottle to simulate a sow browser. When enabled this works fine when I manually open IE and go to a web page. When Watir starts IE, IEthrottle doesn't work anymore, it seems to be bypassed? Cheers, John -- 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] Running example test within Watir ...
I am a first time user for Ruby/Watir and after running the google search script to see it work, I get the following info: ruby test.rb C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/windows/thread.rb: 59: uninitialized constant Windows::API::Error (NameError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/ process.rb:3 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- process.rb:1 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:45 from test.rb:20 Exit code: 1 Any one know why? --~--~-~--~~~---~--~~ 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: Multiple Attributes and form
Good question. Michael Hwee wrote: I don't get is why are you using :action = /.*/ ? Can you just take it off, so that the execution is much more efficient and work w/o any issue? - Original Message From: alexey s. radiact...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, March 18, 2009 10:16:04 PM Subject: [wtr-general] Multiple Attributes and form There is problem with Multiple Attributes and form. I use FireWatir on Ubuntu Linux with FireFox. when I run next code: a = ff.form(:action = /.*/, :index = 1) p a gets: /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:967:in `assert_exists': Unable to locate element, using :name, {:action=/.*/, :index=1} (Watir::Exception::UnknownObjectException) from /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:748:in `inspect' from test.rb:84:in `p' But a = ff.link(:text = /.*/, :index = 2) work successfully firewatir - 1.6.2 Mozilla Firefox 3.0.7 ruby 1.8.7 (2008-08-11 patchlevel 72) Ubuntu 8.10 Can you help me ? -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Austin March 25-26, Portland/Beaverton April 16-17 www.watircraft.com/training --~--~-~--~~~---~--~~ 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: Running example test within Watir ...
What does your code look like? On Mar 19, 9:17 am, slr3975 slr3...@gmail.com wrote: I am a first time user for Ruby/Watir and after running the google search script to see it work, I get the following info: ruby test.rb C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/windows/thread.rb: 59: uninitialized constant Windows::API::Error (NameError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/ process.rb:3 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- process.rb:1 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:45 from test.rb:20 Exit code: 1 Any one know why? --~--~-~--~~~---~--~~ 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: Running example test within Watir ...
Look up the information on msvcrt80 in the recent postings. You need to update your win32 utils gems which right now is a bit tricky. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Mar 19, 2009 at 11:05 AM, George george.sand...@gmail.com wrote: What does your code look like? On Mar 19, 9:17 am, slr3975 slr3...@gmail.com wrote: I am a first time user for Ruby/Watir and after running the google search script to see it work, I get the following info: ruby test.rb C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/windows/thread.rb: 59: uninitialized constant Windows::API::Error (NameError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/ process.rb:3 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- process.rb:1 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:45 from test.rb:20 Exit code: 1 Any one know why? --~--~-~--~~~---~--~~ 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: Running example test within Watir ...
# Please, when you update this file, update also http://wiki.openqa.org/display/WTR/Example+Test+Case #-# # Demo test for the Watir controller. # # Purpose: to demonstrate the following Watir functionality: # * entering text into a text field, # * clicking a button, # * checking to see if a page contains text. # Test will search Google for the pickaxe Ruby book. #-# # the Watir controller require watir # set a variable test_site = http://www.google.com; # open the IE browser ie = Watir::IE.new # print some comments puts Beginning of test: Google search. puts Step 1: go to the test site: + test_site browser.goto test_site puts Step 2: enter 'pickaxe' in the search text field. browser.text_field(:name, q).set pickaxe # q is the name of the search field puts Step 3: click the 'Google Search' button. browser.button(:name, btnG).click # btnG is the name of the Search button puts Expected Result: puts A Google page with results should be shown. 'Programming Ruby' should be high on the list. puts Actual Result: if browser.text.include? Programming Ruby puts Test Passed. Found the test string: 'Programming Ruby'. Actual Results match Expected Results. else puts Test Failed! Could not find: 'Programming Ruby'. end puts End of test: Google search. On Mar 19, 1:05 pm, George george.sand...@gmail.com wrote: What does your code look like? On Mar 19, 9:17 am, slr3975 slr3...@gmail.com wrote: I am a first time user for Ruby/Watir and after running the google search script to see it work, I get the following info: ruby test.rb C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/windows/thread.rb: 59: uninitialized constant Windows::API::Error (NameError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/ process.rb:3 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- process.rb:1 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:45 from test.rb:20 Exit code: 1 Any one know why? --~--~-~--~~~---~--~~ 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: MYSQL error
Hi Vikas, I got the same error. I loaded the libmysql.dll in C:\WINDOWS \system32 and it worked. Watir could now find the dll and was able to run the script successfully. Anu On Mar 5, 7:56 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Friends, I have installed the MYSQL server 5.1. But when I am trying to connect it through watir I am gettin an error - This Application has failed to start becasue LIBMYSQL.dll was not found. Re-installing the application may fix this problem. I tried to register this dll but i got an error -libmysql.dll was loaded, but the dllserver registry entry point was not found. This file cannot be registered. Please help me if anyone has any idea. Thanks in advance. 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] wait_until ...
Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- safariwatir (MissingSourceFile) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in `collect' ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 from Test_Login-Logout_Thrash.rb:22 My Test_Login-Logout_Thrash.rb:22 is: $ie = Watir::IE.start(location) I can fix this by removing the include Watir from the code snippet, but then I get: Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for main:Object (NoMethodError) from Test_Login-Logout_Thrash.rb:24:in `each' from Test_Login-Logout_Thrash.rb:24 Any ideas what other secrets I am missing? --~--~-~--~~~---~--~~ 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: wait_until ...
You would first want to add the below statement in your script: require 'Watir' Also, your error mentions safariwatir - Are you working on IE or Safari... you might want to check that as well. On Thu, Mar 19, 2009 at 2:12 PM, Mark Lehky mark.le...@aclaro.com wrote: Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- safariwatir (MissingSourceFile) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in `collect' ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 from Test_Login-Logout_Thrash.rb:22 My Test_Login-Logout_Thrash.rb:22 is: $ie = Watir::IE.start(location) I can fix this by removing the include Watir from the code snippet, but then I get: Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for main:Object (NoMethodError) from Test_Login-Logout_Thrash.rb:24:in `each' from Test_Login-Logout_Thrash.rb:24 Any ideas what other secrets I am missing? --~--~-~--~~~---~--~~ 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: wait_until ...
You might also want to add something like : Watir::Waiter.wait_until{$browser.div(:class, 'home_top').exists?} Hope this works for you. On Thu, Mar 19, 2009 at 2:19 PM, ANu Gangavaram anuwri...@gmail.com wrote: You would first want to add the below statement in your script: require 'Watir' Also, your error mentions safariwatir - Are you working on IE or Safari... you might want to check that as well. On Thu, Mar 19, 2009 at 2:12 PM, Mark Lehky mark.le...@aclaro.comwrote: Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- safariwatir (MissingSourceFile) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in `collect' ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 from Test_Login-Logout_Thrash.rb:22 My Test_Login-Logout_Thrash.rb:22 is: $ie = Watir::IE.start(location) I can fix this by removing the include Watir from the code snippet, but then I get: Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for main:Object (NoMethodError) from Test_Login-Logout_Thrash.rb:24:in `each' from Test_Login-Logout_Thrash.rb:24 Any ideas what other secrets I am missing? --~--~-~--~~~---~--~~ 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: wait_until ...
However, this does work. Thanx :) Could someone more knowledgeable than I fix the wiki that I mentioned below, so the example actually works? For the benefit of future generations to come. 2009/3/19 ANu Gangavaram anuwri...@gmail.com: You might also want to add something like : Watir::Waiter.wait_until{$browser.div(:class, 'home_top').exists?} Hope this works for you. On Thu, Mar 19, 2009 at 2:19 PM, ANu Gangavaram anuwri...@gmail.com wrote: You would first want to add the below statement in your script: require 'Watir' Also, your error mentions safariwatir - Are you working on IE or Safari... you might want to check that as well. On Thu, Mar 19, 2009 at 2:12 PM, Mark Lehky mark.le...@aclaro.com wrote: Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- safariwatir (MissingSourceFile) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in `collect' ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 from Test_Login-Logout_Thrash.rb:22 My Test_Login-Logout_Thrash.rb:22 is: $ie = Watir::IE.start(location) I can fix this by removing the include Watir from the code snippet, but then I get: Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for main:Object (NoMethodError) from Test_Login-Logout_Thrash.rb:24:in `each' from Test_Login-Logout_Thrash.rb:24 Any ideas what other secrets I am missing? --~--~-~--~~~---~--~~ 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: wait_until ...
No, its not case-sensitive, but try the second suggestion Watir::Waiter.wait_until instead of wait_until: Watir::Waiter.wait_until{$browser.div(:class, 'home_top').exists?} On Thu, Mar 19, 2009 at 2:44 PM, Mark Lehky mark.le...@aclaro.com wrote: I have absolutely no idea how Safari got into all this? I am running this against IE. But even after your suggestion, I get the same error. Just out of curiosity is Ruby case-sensitive in the require statement: require watir require Watir Thanx. 2009/3/19 ANu Gangavaram anuwri...@gmail.com: You would first want to add the below statement in your script: require 'Watir' Also, your error mentions safariwatir - Are you working on IE or Safari... you might want to check that as well. On Thu, Mar 19, 2009 at 2:12 PM, Mark Lehky mark.le...@aclaro.com wrote: Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- safariwatir (MissingSourceFile) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in `collect' ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 from Test_Login-Logout_Thrash.rb:22 My Test_Login-Logout_Thrash.rb:22 is: $ie = Watir::IE.start(location) I can fix this by removing the include Watir from the code snippet, but then I get: Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for main:Object (NoMethodError) from Test_Login-Logout_Thrash.rb:24:in `each' from Test_Login-Logout_Thrash.rb:24 Any ideas what other secrets I am missing? --~--~-~--~~~---~--~~ 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: wait_until ...
Yes this does work! Is it possible that in the example (see wiki link below) include Watir should actually be include Waiter? 2009/3/19 ANu Gangavaram anuwri...@gmail.com: No, its not case-sensitive, but try the second suggestion Watir::Waiter.wait_until instead of wait_until: Watir::Waiter.wait_until{$browser.div(:class, 'home_top').exists?} On Thu, Mar 19, 2009 at 2:44 PM, Mark Lehky mark.le...@aclaro.com wrote: I have absolutely no idea how Safari got into all this? I am running this against IE. But even after your suggestion, I get the same error. Just out of curiosity is Ruby case-sensitive in the require statement: require watir require Watir Thanx. 2009/3/19 ANu Gangavaram anuwri...@gmail.com: You would first want to add the below statement in your script: require 'Watir' Also, your error mentions safariwatir - Are you working on IE or Safari... you might want to check that as well. On Thu, Mar 19, 2009 at 2:12 PM, Mark Lehky mark.le...@aclaro.com wrote: Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- safariwatir (MissingSourceFile) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in `collect' ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 from Test_Login-Logout_Thrash.rb:22 My Test_Login-Logout_Thrash.rb:22 is: $ie = Watir::IE.start(location) I can fix this by removing the include Watir from the code snippet, but then I get: Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for main:Object (NoMethodError) from Test_Login-Logout_Thrash.rb:24:in `each' from Test_Login-Logout_Thrash.rb:24 Any ideas what other secrets I am missing? --~--~-~--~~~---~--~~ 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] Hover image
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] Re: wait_until ...
1. require *is* case-sensitive. if you do require 'Watir' it will *work*, but you will also get warnings (eventually). 2. remove the include statement. that is causing your safariwatir problem. 3. i have updated the wiki page. let me know if still see any problems with it. bret Mark Lehky wrote: Yes this does work! Is it possible that in the example (see wiki link below) include Watir should actually be include Waiter? 2009/3/19 ANu Gangavaram anuwri...@gmail.com: No, its not case-sensitive, but try the second suggestion Watir::Waiter.wait_until instead of wait_until: Watir::Waiter.wait_until{$browser.div(:class, 'home_top').exists?} On Thu, Mar 19, 2009 at 2:44 PM, Mark Lehky mark.le...@aclaro.com wrote: I have absolutely no idea how Safari got into all this? I am running this against IE. But even after your suggestion, I get the same error. Just out of curiosity is Ruby case-sensitive in the require statement: require watir require Watir Thanx. 2009/3/19 ANu Gangavaram anuwri...@gmail.com: You would first want to add the below statement in your script: require 'Watir' Also, your error mentions safariwatir - Are you working on IE or Safari... you might want to check that as well. On Thu, Mar 19, 2009 at 2:12 PM, Mark Lehky mark.le...@aclaro.com wrote: Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- safariwatir (MissingSourceFile) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in `collect' ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 from Test_Login-Logout_Thrash.rb:22 My Test_Login-Logout_Thrash.rb:22 is: $ie = Watir::IE.start(location) I can fix this by removing the include Watir from the code snippet, but then I get: Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for main:Object (NoMethodError) from Test_Login-Logout_Thrash.rb:24:in `each' from Test_Login-Logout_Thrash.rb:24 Any ideas what other secrets I am missing? -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Austin March 25-26, Portland/Beaverton April 16-17 www.watircraft.com/training --~--~-~--~~~---~--~~ 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
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 in 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, --~--~-~--~~~---~--~~ 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] Test Set
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: WatirRecorder++ Playback question
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 in 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] Different Methods
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 -~--~~~~--~~--~--~---