[wtr-general] Re: Connecting Watir to an IE control in a dotnet app?

2009-03-19 Thread Alister Scott
Hi David, Did you ever get this to work? I am trying to do a similar thing with an embedded IE automation object inside a powerbuilder app. Thanks, Alister Scott http://watirmelon.wordpress.com/ On Aug 4 2007, 12:26 am, "David Pollack" wrote: > thanks, we will give this a shot. > > On 8/3/07, Br

[wtr-general] Want to know how to handle windows Print dialog and choose file dialogs

2009-03-19 Thread Shweta
I want to know how to handle windows pop ups in my app and how to handle the choose file dialog while uploading a file.In my application after a click on Print site Info button its opening another window with print dialog in that i need to click on Print button.Will anyone pls let me know how to h

[wtr-general] Different Methods

2009-03-19 Thread Vikas Tulashyam
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 Pres

[wtr-general] Re: Need Help on Regular Expression

2009-03-19 Thread Shweta
You have told me to enable this am new to Watir can you let me know how to enable this 2. I use IEthrottle to simulate a sow browser. When enabled this works On Mar 19, 9:13 pm, Powerglide wrote: > Hi Nagamani, > you could do it simply by having the following code: > > #...@b -> Substitute @b w

[wtr-general] Re: Need Help on Regular Expression

2009-03-19 Thread Shweta
Application is sorting the columns after a click on the column head i dont have separate buttons like ascending or descending to sort Hi am using code like this to regularise ie.link(:href,"http://qa.irma.icat.com/inspwebapp/ displayInspections.do? doSort=true&sortAttr=insuredName&sortDirection=

[wtr-general] Re: WatirRecorder++ Playback question

2009-03-19 Thread nagmani vm
Am New to Ruby Watir can u pls send the Watir Recorder software On Thu, Mar 19, 2009 at 3:32 AM, Boyd Ivey 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

[wtr-general] Re: How to run sample google search script in irb?

2009-03-19 Thread George
I could be wrong, but I believe you need to navigate to the directory that the file is in, then run irb. The script should work at that point. On Mar 19, 10:55 am, AgileTester78 wrote: > Hello I am new to Ruby and I downloaded and installed Ruby as well as > Watir. I downloaded the google_scrip

[wtr-general] Test Set

2009-03-19 Thread vladimir...@hotmail.com
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

[wtr-general] Test Set

2009-03-19 Thread vladimir...@hotmail.com
How can I run multiple Ruby tests in a test set? Do I need to always use Test::Unit even my test cases are not unit tests but functional tests? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. T

[wtr-general] How to run sample google search script in irb?

2009-03-19 Thread AgileTester78
Hello I am new to Ruby and I downloaded and installed Ruby as well as Watir. I downloaded the google_script.rb to my directory. I see the file in my directory. Steps to run the script: 1.open irb 2. Type "ruby google_search.rb get this message: NameError: undefined local variable or method 'goog

[wtr-general] WatirRecorder++ Playback question

2009-03-19 Thread Boyd Ivey
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 u

[wtr-general] Re: wait_until ...

2009-03-19 Thread Bret Pettichord
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

[wtr-general] Hover image

2009-03-19 Thread maximore
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 su

[wtr-general] Hover image

2009-03-19 Thread maximore
Hi I want to click on a file in program . when user bring the mouse over the exiting file , hover over this file , the name appear . When the mouse is removed from the location the name of the file disappear. This is how it works I am looking for a way to automate clicking on file

[wtr-general] Re: wait_until ...

2009-03-19 Thread Mark Lehky
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 : > No, its not case-sensitive, but try the second suggestion > Watir::Waiter.wait_until instead of wait_until: > > Watir::Waiter.wait_until{$

[wtr-general] Re: wait_until ...

2009-03-19 Thread ANu Gangavaram
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 wrote: > > I have absolutely no idea how Safari got into all this? I am runnin

[wtr-general] Re: wait_until ...

2009-03-19 Thread Mark Lehky
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 : > You might also want to add something like : > Watir::Waiter.wait_until{$browser

[wtr-general] Re: wait_until ...

2009-03-19 Thread Mark Lehky
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 : > You would first w

[wtr-general] Re: wait_until ...

2009-03-19 Thread ANu Gangavaram
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 wrote: > You would first want to add the below statement in your script: > > require 'Watir' > Also, your error

[wtr-general] Re: wait_until ...

2009-03-19 Thread ANu Gangavaram
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 wrote: > > Hi all. > > I am still very much at the start of

[wtr-general] wait_until ...

2009-03-19 Thread Mark Lehky
Hi all. I am still very much at the start of using Watir. Just found the wait_until{} here which would be very useful for me. Replicating the supplied code snippet (added the missing dot) it fails! First err

[wtr-general] Re: MYSQL error

2009-03-19 Thread Anu
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 wrote: > Hi Friends, > I have installed the MYSQL server 5.1. But when I am trying

[wtr-general] Re: Running example test within Watir ...

2009-03-19 Thread slr3975
# 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 tex

[wtr-general] Re: Running example test within Watir ...

2009-03-19 Thread Charley Baker
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,

[wtr-general] Re: Running example test within Watir ...

2009-03-19 Thread George
What does your code look like? On Mar 19, 9:17 am, slr3975 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: uni

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread Bret Pettichord
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. > To: Watir General > Sent: Wednesday, March 18,

[wtr-general] Running example test within Watir ...

2009-03-19 Thread slr3975
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

[wtr-general] Re: Need Help on Regular Expression

2009-03-19 Thread Powerglide
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 =~

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread Michael Hwee
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. To: Watir General Sent: Wednesday, March 18, 2009 10:16:04 PM Subject: [wtr-general] Multiple Attr

[wtr-general] Re: Invoking a .bat file

2009-03-19 Thread Anu
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 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, Ž

[wtr-general] Re: Invoking a .bat file

2009-03-19 Thread Anu
Add a system call in your script. Try system('filepath\filename.bat') Hope this helps. On Mar 18, 7:24 am, venky wrote: > Hi > > How to invoke a .bat file from watir script > > Thanks, > venkat --~--~-~--~~~---~--~~ You received this message because you are su

[wtr-general] Re: Invoking a .bat file

2009-03-19 Thread Charley Baker
system('path/to/bat/foo.bat') 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 9:11 AM, Jim Matthews wrote: > > Zeljko, > > When I click on the link you provided, I get a page not found from

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread Bret Pettichord
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 = f

[wtr-general] Re: Invoking a .bat file

2009-03-19 Thread Jim Matthews
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 wrote: > On Wed, Mar 18, 2009 at 12:24, venky wrote: > > How to invoke a .bat file from watir script > > `file.bat` > > http://atog.be/2007/7/24/ruby-backticks/ > > Ž

[wtr-general] Re: Problems locating basic elements in Watir

2009-03-19 Thread Mark Lehky
Hey thanx! These work perfect. M. 2009/3/17 marekj : > 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

[wtr-general] Re: Problems locating basic elements in Watir

2009-03-19 Thread Mark Lehky
Just wondering if my guess was correct: does XPath infact not work with frames in Watir? TIA. 2009/3/17 Mark Lehky : > 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") > l

[wtr-general] Re: .so and h files

2009-03-19 Thread Mark Lehky
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 : > > 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.Ca

[wtr-general] Need help to test the pagination functionality

2009-03-19 Thread Shweta
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

[wtr-general] Re: Need help on this issue

2009-03-19 Thread wesley chen
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

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

2009-03-19 Thread wesley chen
Hi, Pertman, You have not watched my post carefully, my File.dirname(__FILE__) is in my script, it is not a parameter to run rubyscript2exe. But thank you all the same. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 8:06 PM, Jarmo Pertman wrote: > > I remember that you had to use rubyscript2exe

[wtr-general] Re: Need help on this issue

2009-03-19 Thread nagmani vm
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 wrote: > When you have questions, please ask on the group so that everybody can see > it. > Few months ago,

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

2009-03-19 Thread Jarmo Pertman
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 wrote: > A problem exists: > I create two .rb file in the same directory > f

[wtr-general] Re: Need help on this issue

2009-03-19 Thread wesley chen
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 wrote: > Ok thank

[wtr-general] Re: Need help on this issue

2009-03-19 Thread nagmani vm
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 wrote: > Sorry, should be clearSelection > Thanks. > Wesley Chen. > > > > On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm wrote: >

[wtr-general] Re: Need help on this issue

2009-03-19 Thread nagmani vm
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 wrote: > This code is not working am getting error like this

[wtr-general] Re: Need help on this issue

2009-03-19 Thread wesley chen
Sorry, should be clearSelection Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm wrote: > This code is not working am getting error like this: > undefined method `clear' for # > (NoMethodError) > > On Thu, Mar 19, 2009 at 5:16 PM, wesley chen wrote: > >> Will you try: >> ie.se

[wtr-general] Re: Need help on this issue

2009-03-19 Thread nagmani vm
This code is not working am getting error like this: undefined method `clear' for # (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM, wesley chen wrote: > Will you try: > ie.select_list(:name,"inspectionStatus").clear > ie.select_list(:name,"inspectionStatus").set("Partial") > > > Thanks. > Wesl

[wtr-general] Re: Need help on this issue

2009-03-19 Thread wesley chen
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 wrote: > > Hi > > I have a selection box in my application and its having scroll down > option with this by default

[wtr-general] .so and h files

2009-03-19 Thread Vikas Tulashyam
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 Gener

[wtr-general] Need help on this issue

2009-03-19 Thread Shweta
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 contro

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread wesley chen
For this form, where is the name "f"? And the id "delete_access41599" is rand? Thanks. Wesley Chen. 2009/3/19 alexey s. > > where is the id "delete_access34074"? > > It's other page and form: > > > > > > > > --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread alexey s.
where is the id "delete_access34074"? It's other page and 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 Befor