[wtr-general] Re: How to change a ruby file into an .exe file

2009-04-01 Thread Jarmo Pertman
Yes, I've noticed, but I had in mind that you have to use other technique when using Rubyscript2exe. Instead of writing "require 'File.dirname(__FILE__) + '/something'" use: require 'rubyscript2exe' require RUBYSCRIPT2EXE.exedir + '/something' OR this should also work: require 'rubyscript2exe' r

[wtr-general] Re: IE instance problem

2009-04-01 Thread Anna Gabutero
P.S. Starting your variable names with $ turns them into global variables. Avoid doing so unless you really need it. - Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this gr

[wtr-general] Re:

2009-04-01 Thread JArkelen
Use Rake for this. (and use a subject for your posts please). On Apr 1, 8:29 am, prasoona alluri wrote: > Hi , > > I am executed a set of testcases. But i don't want to execute the remaining > testcases when any of the testcase fail.How to handle this senario using > ruby/watir. > > Thanks in ad

[wtr-general] Re: IE instance problem

2009-04-01 Thread Anna Gabutero
On Tue, Mar 31, 2009 at 11:33:42PM -0700, Vikas Tulashyam wrote: > > Hi Anna, > Is there any method by which I can convert the String values to Hash. > > Thanks > Vikas Well, the fastest (but also dirtiest) way is instance_eval: irb(main):001:0> s = "{:name=>'q'}" => "{:name=>'q'}" irb(main):0

[wtr-general] Re: IE instance problem

2009-04-01 Thread Vikas Tulashyam
Hi, Thanks for the time. It returns hash values but I want to use this value into methods for objects identification like- a= get_object_locator("Text1") ie.text_field(a).set("test") Here, it's not working as it is.So how I can use this. I am very new to Watir and don't have too much idea. Sorr

[wtr-general] Re: IE instance problem

2009-04-01 Thread Vikas Tulashyam
Hi Anna, Thanks. I solved this prob.. Thnak you very much Thanks Vikas On Apr 1, 1:18 pm, Vikas Tulashyam wrote: > Hi, > Thanks for the time. It returns hash values but I want to use this > value into methods for objects identification like- > > a= get_object_locator("Text1") > > ie.text_field(

[wtr-general] undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
Hi Am trying to parameterizing my test cases am getting some error,am not understanding where am wrong i have gone thru the posts regarding this i dint get any idea,Can anyone pls let me know whats wrong here My code: require 'watir' require 'watir/testcase' require 'watir/assertions' require '

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
Hi Am getting error in the line where i put the comment has #error occured here require 'win32ole' require 'watir' require 'Xls' xlFile = XLS.new('C:\irma1.xls') #grab the data file in the same dirrectory myData = xlFile.getRowRecords('Inspection Search Data','Search') #pull data records from

[wtr-general] Frames and Tables

2009-04-01 Thread Isabel
Hi All, I have a frame with a table in it. The only information I have as input is the table, the row id, the column id and an index. Now I have to access the specific cell and then fetch elements within the cell which might be >1 (for eg a link and a button or a link and a text_field etc). Af

[wtr-general] Re: Introducing Watif: Web Application Testing in FORTRAN

2009-04-01 Thread Željko Filipin
On Wed, Apr 1, 2009 at 02:39, Alister Scott wrote: > http://tinyurl.com/watif Now on podcast too! :) http://watirpodcast.com/alister-scott-on-watif/ Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir Ge

[wtr-general] Re: -b flag not working w/ firefox3

2009-04-01 Thread Bret Pettichord
beth wrote: > executing a script w/ "ruby createUser.rb -b" from terminal on mac osx > using firefox browser, browser is not hidden. is there a way to hide > ff? > This option is not available for Firefox. Bret -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Jim Matthews
Shweta, $ie.text_field(:name, "PolicyNumber").set($record ['PolicyNumber']) #error occured here If you are trying to put a value in a text_field, you need to use value, so your line would look something like this: $ie.text_field(:name, "PolicyNumber").value = ($record ['PolicyNu

[wtr-general] Podcast with Bret on WatirCraft

2009-04-01 Thread Željko Filipin
Bret has released new version of WatirCraft framework, and we will record a podcast about it. We will record at about 9pm utc+2 (in about hour and half). If you have any questions about WatirCraft framework, post them here and I will ask Bret. My apologies for the short notice, but I could not do

[wtr-general] Watin (WatiX for .Net) 2.0.10 just released

2009-04-01 Thread Al Snow
FYI: Watin (WatiX for .Net) 2.0.10 just released http://watin.sourceforge.net/releasenotes-2-0-10-x.html Thanks, Al Snow _ Rediscover Hotmail®: Get e-mail storage that grows with you. http://windowslive.com/RediscoverHotmail?o

[wtr-general] WatirCraft Framework

2009-04-01 Thread Bret Pettichord
Lately I've been spending most of my time on two things. I've been developing a new framework for Watir, called WatirCraft. And I've been developing and delivering training on Watir, Ruby and this new framework. I would say that these days only about half of the questions on this list are really W

[wtr-general] Dynamic Objects

2009-04-01 Thread jam
Hi, I have a web application where the object property changes from time to time. Has anybody encountered this situation and Index should not be used. Please throw some light on this. Thanks, Jam --~--~-~--~~~---~--~~ You received this message because you are subs

[wtr-general] Re: Dynamic Objects

2009-04-01 Thread Charley Baker
Re-read your post. Do you find it useful? A hint of your html would be good and your ruby code. Why it changes from time to time would be helpful as well. I would assume you're a tester. Is this how you submit bug reports? I'm sorry to pick on you specifically, certainly not meant just for this pos

[wtr-general] Re: Podcast with Bret on WatirCraft

2009-04-01 Thread Alister Scott
Hi Z* It's probably already recorded by now, but I am curious about what Bret thinks about including a data driver in WatirCraft, such as Roo. Cheers, Alister Scott Brisbane, Australia http://watirmelon.wordpress.com/ On Apr 2, 3:38 am, Željko Filipin wrote: > Bret has released new version o

[wtr-general] Re: Introducing Watif: Web Application Testing in FORTRAN

2009-04-01 Thread mkernaghan
Good. I have been looking for a way to test numerical algorythms and multidimensional arrays in a GUI. On Mar 31, 5:39 pm, Alister Scott wrote: > Hi, > > After months of dedicated hard work, I am pleased to announce the > immediate release of Watif: Web Application Testing in FORTRAN. > Check it

[wtr-general] Re: How to change a ruby file into an .exe file

2009-04-01 Thread Wesley Chen
Hi, Jarmo, Thank you very much, it is really useful. Thanks. Wesley Chen. On Wed, Apr 1, 2009 at 3:34 PM, Jarmo Pertman wrote: > require 'rubyscript2exe' > require RUBYSCRIPT2EXE.exedir + '/something' > --~--~-~--~~~---~--~~ You received this message because yo

[wtr-general] Re: Podcast with Bret on WatirCraft

2009-04-01 Thread Bret Pettichord
Alister Scott wrote: > Hi Z* > > It's probably already recorded by now, but I am curious about what > Bret thinks about including a data driver in WatirCraft, such as Roo. > > Cheers, > > Alister Scott > Brisbane, Australia > http://watirmelon.wordpress.com/ > > We actually discussed this in th

[wtr-general] Need to check and uncheck multiple options in a multi select checkbox

2009-04-01 Thread aditi
Hi, I want to check and uncheck multiple options in a multi select checkbox.Can anyone tell me how can I do it in Watir? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, s

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
Hi Jim Still am getting the same error at this line $ie.text_field(:name, "PolicyNumber").value = ($record ['PolicyNumber']) error: ./SearchInspection.rb:39:in `searchinspections': undefined method `[]' for nil:NilClass (NoMethodError) On Apr 1, 8:21 pm, Jim Matthews wrote: > Shweta, > >    

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Tiffany Fodor
Hi! Have you done any troubleshooting on what you have stored in $record? You might start by adding the following before the line that's causing the problem to make sure the value you're trying to set isn't nil. puts $record['PolicyNumber'] Hope this helps! -Tiffany On Apr 1, 10:08 pm, Shweta

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Tiffany Fodor
I just took another look at your code in your second post - you're using a global variable '$record' where you should be using 'record'. These are entirely different variables and the fact that they both have the text 'record' does not connect them in any way. The error in your first post of this

[wtr-general] Load Error while running feature in cucumber (watir/cucumber)

2009-04-01 Thread pallavi shashidhar
Hi, I have ruby 1.8.6 and watir 1.6.2 installed in my system . I have installed cucumber 0.2 and have watir scripts in feature/steps when i try to run the feature, i constantly get the following error c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
HI Tiffany Thanks for your reply Still am getting error saying error: /nnn.rb:36: warning: parenthesize argument(s) for future version ./nnn.rb:26: undefined local variable or method `dirrectory' for main:Object (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.r