[wtr-general] Re: problem on Firewatir
2009/3/18 jujoob sir...@gmail.com I 'm looking for automate test tool on FLEX and firewatir and FunFx seem to fit. You should go to FunFX site for support: http://funfx.rubyforge.org/ Ž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: Watir in JRuby?
On Wed, Mar 18, 2009 at 00:17, Jim Knowlton jknowlton...@gmail.com wrote: Does anyone know the status of porting Watir to JRuby? Sai has a link on his blog (http://developer-in-test.blogspot.com/) to Firewatir on JRuby, but it just points to Watir wiki ( http://wiki.openqa.org/display/WTR/). Maybe Sai could give you more information about the status of the project. Ž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] create a ruby code generator, ex: want to read Controls in a webpage, identify the id and list them in a ruby file.
Hi, I want to create code generator which will create ruby scripts automatically. for example when I open a web page, a ruby or watir script whcih should recognise all a controls in that webpage identify the ids and put them in .rb file . I will add code next to each id. @@ie.button(:id, '+ Control ID taken from web site +').click sleep 10 Any solutions Thanks Bharadwaj. --~--~-~--~~~---~--~~ 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: Watir in JRuby?
You could run your tests through Celerity which wraps HtmlUnit in a Watir API through JRuby Aidy On 17/03/2009, Jim Knowlton jknowlton...@gmail.com wrote: Does anyone know the status of porting Watir to JRuby? I saw some posts last year that indicated it was on the wish list, but that a stumbling block was the Win32OLE module...just thought I'd drop a note out here and see if anyone has knowledge of anything in the works. I love Ruby and Watir, but work on an enterprise Java app, and having the Java side of JRuby would be cool. Thanks, Jim --~--~-~--~~~---~--~~ 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: Flash and IEthrottle
I think there is a method on Flash to do it. I think you can try to use PercentLoaded on the flash object to know if it has loaded. Please refer flashwatir for more info on this. The question about IEThrottle, I have no idea :) Regards, Sai On Mar 17, 6:31 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 --~--~-~--~~~---~--~~ 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 Regular Expression
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 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] Re: Watir in JRuby?
Sorry didn't write about it :). It is there in the mailing list.http:// bit.ly/z0MOL. It is a patch on firewatir. As you said Watir needs Win32OLE and that is not available in JRuby till now. Please let me know if you need more info. Regards, Sai On Mar 18, 1:34 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Mar 18, 2009 at 00:17, Jim Knowlton jknowlton...@gmail.com wrote: Does anyone know the status of porting Watir to JRuby? Sai has a link on his blog (http://developer-in-test.blogspot.com/) to Firewatir on JRuby, but it just points to Watir wiki (http://wiki.openqa.org/display/WTR/). Maybe Sai could give you more information about the status of the project. Ž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: How to change a ruby file into an .exe file
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: Flash and IEthrottle
I didn't know there was something like flashwatir. i will have a look, thanks. On Mar 18, 11:29 am, sai saidesertrose2...@gmail.com wrote: I think there is a method on Flash to do it. I think you can try to use PercentLoaded on the flash object to know if it has loaded. Please refer flashwatir for more info on this. The question about IEThrottle, I have no idea :) Regards, Sai On Mar 17, 6:31 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 --~--~-~--~~~---~--~~ 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
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 -~--~~~~--~~--~--~---
Re: [OT] Re: [wtr-general] Re: Watir in JRuby?
My guess is that DRb would work, as long as you restricted yourself to objects that were pure Ruby and not wrappers for Java or Win32OLE objects. Bret Manish Sapariya wrote: Hi List, This is little off topic, but very much inline with the content of this thread. I also have run into situation where some of my tests run only on jRuby, some java tests, but my rest of the framework is in C-Ruby. I am looking for integration of jRuby and C-Ruby tests. One approach I was thinking was to have XML-RPC service on jRuby tests and invoking them using C-Ruby framework. I was wondering however, would DRb of any help, e.g. passing reference of jRuby created objects to C-Ruby and simply invoking methods on those objects, while the objects run in JVM in which jRuby is running. My framework already uses DRb to distribute the tests on different machines and hence I am curious about DRb. Any comments? Regards, Manish aidy lewis wrote: You could run your tests through Celerity which wraps HtmlUnit in a Watir API through JRuby Aidy On 17/03/2009, Jim Knowlton jknowlton...@gmail.com wrote: Does anyone know the status of porting Watir to JRuby? I saw some posts last year that indicated it was on the wish list, but that a stumbling block was the Win32OLE module...just thought I'd drop a note out here and see if anyone has knowledge of anything in the works. I love Ruby and Watir, but work on an enterprise Java app, and having the Java side of JRuby would be cool. Thanks, Jim -- 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: How to change a ruby file into an .exe file
I have tried to use rubyscript2exe but it seems cannot run in my computer. Maybe it is a version problem. On Wed, Mar 18, 2009 at 8:57 AM, 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.comwrote: 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] Watir on a 64b Windows
Hello all. We are currently evaluating Watir as a solution for us. One thing that has come up today in meeting: are there any known issues with running Watir on a 64b Windows, any of them? TIA. --~--~-~--~~~---~--~~ 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: Watir on a 64b Windows
Vista will fight you at first, so you need to set the permissions correctly. It is written up in the Watir FAQs. Thanks, Al Snow Agile Software Developer Linkedin: http://www.linkedin.com/in/alsnow Google Talk: jasnow1 Twitter: jasnow Date: Wed, 18 Mar 2009 09:59:49 -0600 Subject: [wtr-general] Watir on a 64b Windows From: mark.le...@aclaro.com To: watir-general@googlegroups.com Hello all. We are currently evaluating Watir as a solution for us. One thing that has come up today in meeting: are there any known issues with running Watir on a 64b Windows, any of them? TIA. _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme --~--~-~--~~~---~--~~ 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
Just downloaded the gem and it seemed to work for me On Mar 18, 8:56 am, Rick Carter windchillfigh...@gmail.com wrote: I have tried to use rubyscript2exe but it seems cannot run in my computer. Maybe it is a version problem. On Wed, Mar 18, 2009 at 8:57 AM, 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.comwrote: 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] HOw do I repeat a prtion of a script until I get a value
I am trying to create some type of loop to reload a web page until the value I am looking for is present. The value is a numeric string that repesents an order id. When I print the value using puts and the value is not present it prints 'n' I have tried using nil and n both in an if statement but I cant seem to get it to work. The oid variable in my script is what I am trying to get the value of and I need to repeat the gathering of it after using a Refresh button on the page to not have to repeat all the navigation over again. what I would like to do is create some kind of loop that performs the refresh and then gets the value repeating if it is nul after a 30 second sleep but continuing my script if a value is present, Here is the bit of code I am using: # goto url for portal home page as we can't click home page link because there are 2 on the page ie.goto https://portal.test.wildblue.net/portal/dt? JSPTabContainer.setSelected=HomePageChannellast=false #enter first name in search ie.text_field(:id, '_id12:firstName').set #{$name}#{$i} #enter Last name in search ie.text_field(:id, '_id12:lastName').set Test #click the search button ie.button(:value, 'Search').click #click on the svt tab ie.link(:text, SVT).click #Get the data in the provisionin Status table as an array provisioning_status = ie.table(:class, 'cgui-group').row_values(1) [2].to_a #set acct_oid variable to the value in the array for the account Oid acct_oid = (provisioning_status[8]) #convert the acct_oid variable to a string and set it to $acct_oid $acct_oid = acct_oid.to_s #get the value of the $acct_oid starting at the 11th character to strip it down to just the number #and set it to the vsariable oid oid = ($acct_oid.from(11)) #write the oid to the screen as a validation puts(oid) Any assistance would be greatly appreciated --~--~-~--~~~---~--~~ 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] Re: Running example script (google search) giving me following output errors
I used to have this kind of gem compatibility problems until I discovered PRoR, it is a packaged Ruby distribution for Watir testing. http://www.itest2.com/articles/2009/02/27/easy-setup-watir-with-pror-on-windows/ Eileen --~--~-~--~~~---~--~~ 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 do I repeat a prtion of a script until I get a value
If you are using rWebUnit repeat_try { label(:id, :status).text = OK } repeat_try (30, 2) { label(:id, :status).text = OK } # try 30 times every 2 seconds interval until satisfy You can look up rWebUnit source (http://github.com/zhimin/rwebunit/ tree/master) for reference if you don't want to change to use it. rWebUnit is packaged in PRoR (http://www.itest2.com/downloads#pror) Eileen - ISTQB Certified Tester Develop Watir tests in iTest2 IDE --~--~-~--~~~---~--~~ 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] 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 --~--~-~--~~~---~--~~ 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...
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 --~--~-~--~~~---~--~~ 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, 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 - --~--~-~--~~~---~--~~ 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...
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 - --~--~-~--~~~---~--~~ 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] Watir on JRuby
Yesterday there was some post looking for making Watir work with JRuby. So here is something for those JRuby guys. Here is something crazy I did. I was thinking of doing some thing on JNI interface stuff to make win32ole work am lazy as of now :) (May be work on this later). So why not use something which already works? I did something I always do well. Wrote a wrapper for webdriver IE driver to make it into a Watir API and to run on JRuby. Am calling it jwatir as of now. It is really small. Only for demonstration and has no tests in it.More or less a hack Am attaching the code here ( http://bit.ly/27HiWy) as well writing about it in my blog about how to use it (Need to wait a little as it is 6 AM in the morning here and I haven't still got any sleep). Let me know your views on this. Regards, Sai http://code.google.com/p/chrome-watir --~--~-~--~~~---~--~~ 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...
In addition to what Darin has recommended, you might want to see what happens when you run the below commands through irb. (Like Darin, I was able to complete the below.) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn Sent: Wednesday, March 18, 2009 8:37 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... 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 - --~--~-~--~~~---~--~~ 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...
I works for me. Thanks, Al Snow Agile Software Developer Linkedin: http://www.linkedin.com/in/alsnow Google Talk: jasnow1 Twitter: jasnow Date: Wed, 18 Mar 2009 20:56:25 -0700 Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... From: vladimir...@hotmail.com To: watir-general@googlegroups.com 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 - _ Windows Live™: Life without walls. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009 --~--~-~--~~~---~--~~ 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: Watir on JRuby
Sai, Thanks for doing this. I've been meaning to take a look at this for some time, but just haven't had a chance to install JRuby. Anyway, I was wondering whether it would be possible for you -- or some one else, for that matter -- to apply your changes to a fork of Watir. One of the great things about github is that anyone can for the code and work with it. Bret sai wrote: Yesterday there was some post looking for making Watir work with JRuby. So here is something for those JRuby guys. Here is something crazy I did. I was thinking of doing some thing on JNI interface stuff to make win32ole work am lazy as of now :) (May be work on this later). So why not use something which already works? I did something I always do well. Wrote a wrapper for webdriver IE driver to make it into a Watir API and to run on JRuby. Am calling it jwatir as of now. It is really small. Only for demonstration and has no tests in it.More or less a hack Am attaching the code here ( http://bit.ly/27HiWy) as well writing about it in my blog about how to use it (Need to wait a little as it is 6 AM in the morning here and I haven't still got any sleep). Let me know your views on this. Regards, Sai http://code.google.com/p/chrome-watir -- 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: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject...
Hi, Jason: irb failed at the same step with the following error message: irb(main):005:0 ie.text_field(:name, q).set pickaxe WIN32OLERuntimeError: unknown property or method `document' HRESULT error code:0x800706ba The RPC server is unavailable. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- class.rb:44 7:in `method_missing' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- class.rb:44 7:in `document' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ container.rb:7 38:in `locate_input_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ input_elements .rb:5:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:49: in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284 :in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56: in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ input_elements .rb:323:in `set' I'm running this test at home on Windows Vista (64-bit) but the original bug was found also on Windows XP at work. On Mar 18, 7:36 pm, Jason Trebilcock jason.trebilc...@gmail.com wrote: In addition to what Darin has recommended, you might want to see what happens when you run the below commands through irb. (Like Darin, I was able to complete the below.) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn Sent: Wednesday, March 18, 2009 8:37 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... 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 - --~--~-~--~~~---~--~~ 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...
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 - --~--~-~--~~~---~--~~ 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: Watir on JRuby
Will do Bret. Need to sit sometime with this. The code is more of a hack now. No tests covering it. So need to clean up a few things and I will fork watir to apply my changes. Over the weekend would be possible :) Regards, Sai http://code.google.com/p/chrome-watir On Mar 19, 9:21 am, Bret Pettichord b...@pettichord.com wrote: Sai, Thanks for doing this. I've been meaning to take a look at this for some time, but just haven't had a chance to install JRuby. Anyway, I was wondering whether it would be possible for you -- or some one else, for that matter -- to apply your changes to a fork of Watir. One of the great things about github is that anyone can for the code and work with it. Bret sai wrote: Yesterday there was some post looking for making Watir work with JRuby. So here is something for those JRuby guys. Here is something crazy I did. I was thinking of doing some thing on JNI interface stuff to make win32ole work am lazy as of now :) (May be work on this later). So why not use something which already works? I did something I always do well. Wrote a wrapper for webdriver IE driver to make it into a Watir API and to run on JRuby. Am calling it jwatir as of now. It is really small. Only for demonstration and has no tests in it.More or less a hack Am attaching the code here (http://bit.ly/27HiWy) as well writing about it in my blog about how to use it (Need to wait a little as it is 6 AM in the morning here and I haven't still got any sleep). Let me know your views on this. Regards, Sai http://code.google.com/p/chrome-watir -- 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-17www.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] 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 -~--~~~~--~~--~--~---