Re: [Wtr-general] Query in windows-pr,win32-process and Rspec

2007-07-12 Thread Charley Baker
windows-pr - win32 constants used by win32-process. win32-process - watir is now using Process.create in this library, see the following JIRA ticket for more details: http://jira.openqa.org/browse/WTR-150 Rspec - Behavior driven development framework, a quick google search on BDD and Dave Astels

Re: [Wtr-general] `+': can't convert nil into String (TypeError)- how to solve this error

2007-07-12 Thread Charley Baker
Hi, In your login method in commonipe.rb on line 5, you're doing some sort of concatenation of a nil to a string, likely something like this: puts "my value is: " + foo foo is nil while you're running your test for whatever reason. You need to figure out why you're getting nil if you're not exp

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-11 Thread Charley Baker
A quick check will tell you if it's a modal dialog. Open ie to the page that launches the dialog. Open irb in a command window. In irb type: require 'watir' ie = Watir::IE.attach(:title, /some part of the ie title/) Launch the dialog. Back in irb type: puts ie.modal_dialog.title If you get a tit

Re: [Wtr-general] need help on Data Driven

2007-07-10 Thread Charley Baker
The error pretty much tells you the story. You're taking an array: category= worksheet.Range('a2:a4') ['Value'] and pushing it into a method that accepts a string. If you want the whole array to be a string then convert it to a string: category=worksheet.Range('a2:a4') ['Value'] category.to_s I

Re: [Wtr-general] $ie.button replacing with $ie.b?

2007-07-07 Thread Charley Baker
I'm not quite sure why you'd want to do that, maybe you could explain it. Here are a couple of random possibilities: 1. use the string and eval it, makes the code less readable but there are some good uses for this: b = "button" eval("puts $ie.#{b}(:index, 1)") 2.wrap the code in a method, clean

Re: [Wtr-general] Having problems figuring out what to click

2007-07-07 Thread Charley Baker
Hi Matt, You need to access the cell, the onclick event is attached to the cell, not the row. This should work: $ie.table(:id,'table1')[1][1].fire_event('onClick') table with id of table1, first row, first cell. -Charley On 7/6/07, Matt Berney <[EMAIL PROTECTED]> wrote: I have been using R

Re: [Wtr-general] Reporting suggestions?

2007-07-06 Thread Charley Baker
I'd suggest using ci-reporter - http://rubyforge.org/projects/caldersphere/- for your main test reporting, though honestly I've got little experience with it and am still using it's predecessor test-unit report. For your puts statements why not use ruby's logger or log4r instead? Dump your puts st

Re: [Wtr-general] Modal Dialog/Vista -- undefined method `hwnd'

2007-07-06 Thread Charley Baker
Modal dialogs aren't part of a frame, they're generated and owned by ie, so this line: ie2.frame("ContentFrame").modal_dialog.text_field(:id, 'FileUploader').set('C:\Users\Public\Pictures\Sample Pictures\Dock.jpg') should read: ie2.modal_dialog.text_field(:id, 'FileUploader').set('C:\Users\P

Re: [Wtr-general] Embedded Browser and/or SmartCleint

2007-07-05 Thread Charley Baker
My guess is that you could attach to the embedded browser if you can get a handle to the ie instance and then attach to the handle using ie.attach(:hwnd, handle). You may be able to get a handle by navigating through windows, simalarly to the way it's set up in Watir by using Shell.Application, it

Re: [Wtr-general] How to detect installed version of Watir

2007-07-05 Thread Charley Baker
Open a command prompt, type: ruby -e "require 'watir'; puts Watir::IE::VERSION;" -Charley On 7/5/07, Nadine Whitfield <[EMAIL PROTECTED]> wrote: Hi- there may already be a thread about this, but I could not find it. I recently used the Windows .exe (rather than Gem) to install Watir on my com

Re: [Wtr-general] ruby2exe and autoit

2007-07-05 Thread Charley Baker
You need to register AutoIt. In a command window, navigate to the directory where you've put AutoIt and type: regsvr32 AutoItX3.dll -Charley On 7/5/07, mihai <[EMAIL PROTECTED]> wrote: i have a script in wich im using an autoit control: $autoit= WIN32OLE.new("AutoItX3.Control") i want to test

Re: [Wtr-general] Receiving extensive warning messages while trying to run Watir Ruby scripts

2007-07-05 Thread Charley Baker
It's likely that you have multiple Watir requires with different casing somewhere in your files: require 'watir' and require 'Watir' That'd be my first guess. Check your scripts for requires. -Charley On 7/4/07, Lavanya Lakshman <[EMAIL PROTECTED]> wrote: I have installed 1.8.5 version of ru

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-07-02 Thread Charley Baker
Well, you learn something new every day. I haven't worked with labels, :for is a supported how for labels. Teach me to answer a question without trying it out. :) The :after? tag doesn't appear to apply to input elements, buttons, text_fields, frames. Add a JIRA ticket if you'd like to see it fi

Re: [Wtr-general] Possible to run scripts when not "logged in"?

2007-06-29 Thread Charley Baker
CruiseControl is a good way to go if you're interested in setting up a continuous integration server this is a good way to go. This is the ruby version: http://rubyforge.org/projects/cruisecontrolrb/ -Charley On 6/29/07, Justin <[EMAIL PROTECTED]> wrote: I am considering using Watir to create

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-06-28 Thread Charley Baker
What's :for? It's not part of Watir. Have you tried by :name and/or :id? On 6/28/07, Jason <[EMAIL PROTECTED]> wrote: > ie.link(:after?, ie.image(:id, 'foo')).click Does / can this apply to anything other than 'links' or 'images'? i.e. I attempted this: ie.text_field(:after?, ie.label(:fo

Re: [Wtr-general] ci_reporter usage of xml files

2007-06-27 Thread Charley Baker
I haven't had a chance to work with ci_reporter though I hope to if I ever get some free time. My assumption is that they're junit style reports which can be consumed by a dashboard. We're using CruiseControl now for continuous builds and reporting results, there's a recent ruby port on rubyforge:

Re: [Wtr-general] return table element content type & value

2007-06-27 Thread Charley Baker
There is no type for an html element. They are all strings. You can certainly add your own validations on the strings you get back, regexes may help: http://www.rubycentral.com/book/tut_stdtypes.html -Charley On 6/27/07, Max Russell <[EMAIL PROTECTED]> wrote: Is there a way to return the con

Re: [Wtr-general] iterate thru forum

2007-06-20 Thread Charley Baker
Hard to tell without seeing an html snippet of what you're trying to test. Now that you have the table, I assume you want to iterate through rows. table.rows.each do |row| do something with the row end -Charley On 6/18/07, B Smith <[EMAIL PROTECTED]> wrote: I got this far on my own tabl

Re: [Wtr-general] get all rows from table in webpage

2007-06-19 Thread Charley Baker
Try this: t = ie.table(:index, 5) t.each { |row| row.to_s } Take a look at the user guide and unit tests for how to use Watir. -c On 6/19/07, B Smith <[EMAIL PROTECTED]> wrote: this doesn't work v_1 = Array.new ie.table(:index,5).rows.each_with_index do |row, i| end v_1.

Re: [Wtr-general] Watir no longer always waits for all frames to load

2007-06-19 Thread Charley Baker
wait_until is a cleaner method to invoke. sleeps are too error prone, wait_until a specific control exists. I removed the http error checks around that time and there have been some changes in the frames handling. -c On 6/19/07, Brown, David <[EMAIL PROTECTED]> wrote: Gems prior to 1.5.1.1166

Re: [Wtr-general] Load Error

2007-06-19 Thread Charley Baker
require_gem 'watir' or gem 'watir' Try the same in irb. It may be due to the ruby update. I haven't tried it due to my dependency on modal dialog support. -c On 6/19/07, Max Russell <[EMAIL PROTECTED]> wrote: My original question was: On 6/15/07, Max Russell <[EMAIL PROTECTED]> wrote: >

Re: [Wtr-general] frames and url()

2007-06-19 Thread Charley Baker
I just added url to frame, you might want to download the latest code. Check the wiki faq for installing building the latest gem from source. -c On 6/19/07, Chong Jiang <[EMAIL PROTECTED]> wrote: Hello all, Sorry, I do not know how to append this message to my previous one in threaded form. T

Re: [Wtr-general] Our contribution to Watir

2007-06-16 Thread Charley Baker
It's great to have user contributions, I haven't had a chance to look at it yet, but will soon. Instead of adding it to a jira ticket, you should add it to the user contribution area of the wiki on openqa. http://wiki.openqa.org/display/WTR/Contributions -Charley On 6/17/07, Jeff Fry <[EMAIL PR

Re: [Wtr-general] OT: ruby/eclipse question

2007-06-13 Thread Charley Baker
Hey Jeff, You can create a .project file at the root of your project directory and put this in it - replace project_name with your project name. project_name org.rubypeople.rdt.core.rubybuilder org.rubypeople.

Re: [Wtr-general] sintax error

2007-06-09 Thread Charley Baker
Change equal? to eql? or == and it 'll work. equal? compares object ids, eql? and == compare values. -Charley On 6/9/07, mihai <[EMAIL PROTECTED]> wrote: i search with a script all buttons on a page; if the name of a button is btnG then it must puts OK else NO the code is: $ie.buttons.each do

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-08 Thread Charley Baker
modal_dialog only works for 1.8.2 currently since that's the version of Ruby that the win32ole.so library was compiled against. Bret added an error if you try to use this feature in newer versions of Ruby. If you need modal_dialog, you're limited to 1.8.2. -c On 6/8/07, Jeff Fry <[EMAIL PROTECTE

[Wtr-general] test

2007-06-08 Thread charley . baker
test ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] NoMethodError :Undefined method "Process_id" for 1808:Fixnum

2007-06-08 Thread Charley Baker
You might try updating the win32-process gem. Latest version is 0.5.2. There was a similar posting on the win32-process list on rubyforge. That may or may not resolve the issue. -Charley On 6/8/07, Simba <[EMAIL PROTECTED]> wrote: When i Run Below is code in IRB ,its throwinf error require 'wa

Re: [Wtr-general] Trouble selecting list box item - Any suggestions

2007-06-08 Thread Charley Baker
Sure it's pretty easy. The sizes all show up in divs with size swatch id tags, you can see them all with the IE dev toolbar. Sold out sizes will have a div class of soldOut, so look out for those. Watir 1.5 is coming out soon, until then, you can install a prebuilt development gem : http://wiki.op

Re: [Wtr-general] Scheduler

2007-06-08 Thread Charley Baker
You might want to ask this on the Selenium forum. On 6/8/07, Jet Liu <[EMAIL PROTECTED]> wrote: Hi, When I set up my schedule using something like "C:\Program Files\Mozilla Firefox\firefox.exe" -chrome "chrome://selenium-ide/content/selenium/TestRunner.html?baseURL= http://www.xyz.com&test=fil

Re: [Wtr-general] Trouble selecting list box item - Any suggestions

2007-06-07 Thread Charley Baker
Norris, This will work with Watir 1.5: ie.select_list(:id, 'qtyDropDown').option(:value, '5').select Send me an email, I'm curious to hear what you guys are doing and glad to see you coming out to mailing lists. -Charley On 6/7/07, Chris McMahon <[EMAIL PROTECTED]> wrote: On 6/7/07, Norri

Re: [Wtr-general] Script failing today, but worked yesterday?

2007-05-31 Thread Charley Baker
No idea what's happening without the code, or some reference point. Please post some snippet of code at least, only thing I can tell from this is that there's some problem when you're calling ie.goto. If you haven't changed anything then perhaps the network is wonky or the developers changed somet

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-30 Thread Charley Baker
Hi Aidy, You can mix in the assertions if that's all you're looking for: On 5/30/07, aidy lewis <[EMAIL PROTECTED]> wrote: #Hi #Is it possible to instantiate a class that inherits from Test::Unit require 'test\unit\assertions' class Login #< Test::Unit::TestCase include Test::Unit:

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-25 Thread Charley Baker
I updated the :action and :method info. I'll take a look at the chart which is rather interesting, useful and may point out some discrepancies. -c On 5/25/07, Bret Pettichord <[EMAIL PROTECTED]> wrote: Jeff Fry wrote: > Hey y'all, I'm resending these in the hopes of getting info from folks > w

Re: [Wtr-general] Basic accessibility testing with Watir and RAAKT...

2007-05-25 Thread Charley Baker
It does look really cool. Unfortunately hpricot (a required dependency) dumps out with a Segmentation fault with Ruby 1.8.2. Looks like it only works with Ruby 1.8.5 and above. Bummer. On 5/25/07, Chris McMahon <[EMAIL PROTECTED]> wrote: > The tool is called Raakt (Ruby Accessibility Analysis K

Re: [Wtr-general] want to enter URL manualy

2007-05-24 Thread Charley Baker
Hi Shalini, There shouldn't be a need to use $ie.wait $ie = IE.new # creates a new browser window Now you can enter your url manually if you want. How is this not working? -Charley On 5/24/07, SHALINI GUPTA <[EMAIL PROTECTED]> wrote: Hi all, I want to enter URL in address bar of my proj

Re: [Wtr-general] Unable to a get a handle of secondary popup window

2007-05-23 Thread Charley Baker
There have been a lot of posts in the past day on the File Download dialog using AutoIt, take a look at the archives: http://www.mail-archive.com/wtr-general%40rubyforge.org/ As far as step 4, I'd suggest turning it off in IE. Internet Options > Advanced > Notify when downloads complete. I haven'

Re: [Wtr-general] The test case should be failed, but it is not

2007-05-17 Thread Charley Baker
WinExists returns either a 1 or a 0, both are true in ruby. You can use assert_equal instead: assert_equal(1, autoit.WinExists("test.txt - Notepad")) -Charley On 5/15/07, Kui Zhang <[EMAIL PROTECTED]> wrote: Hello, I have a question for the test case below. When the Notepad window is not op

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
I often feel like I spend more time on the simple problems than the larger ones. My only guess is that you're not running the right files since your print statements aren't showing up. Get a second pair of eyes to look at it if you can, otherwise if anyone else on the list has suggestions? It's no

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
Are you running through command line? Somewhere there's a disjoint, hard to figure out where. Open up irb and try puts $: and check your scripts for how they're dealing with the path or modifying it. -c On 5/15/07, Ken <[EMAIL PROTECTED]> wrote: It didnt even display the load path in x or in

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
Make sure your load path is referring to the right place. You might want to print out your load path in x or y. puts $: and check that you're not working with duplicate common files. -c On 5/15/07, Ken <[EMAIL PROTECTED]> wrote: Yea, I did the maintenance in the file system. I didnt make an

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
Hard to say, if you did a copy in the filesystem then everything should be ok. The first is a warning from ruby, if you're not getting that in your run with x.rb, then likely the file contents have changed - you've got a space before a method call. Have the contents of the file changed? Is it in t

Re: [Wtr-general] Where is reporter.rb

2007-05-15 Thread Charley Baker
test-reporter has been deleted from rubyforge, it's successor being ci_reporter by Nick Sieger. Follow this thread for more information: http://www.mail-archive.com/wtr-general@rubyforge.org/msg07217.html -Charley On 5/15/07, Russ DeWolfe <[EMAIL PROTECTED]> wrote: Where can I get reporter.rb

Re: [Wtr-general] reading cell data into an array

2007-05-14 Thread Charley Baker
its, (pin number) I need to place the digits into an array to be used later in the script during pin number validation e.g 'what is the second and third digit of your five digit pin number' On 5/14/07, Charley Baker < [EMAIL PROTECTED]> wrote: > > Can you give us an e

Re: [Wtr-general] Solution for FAQ "Using key/value pairs" not working

2007-05-14 Thread Charley Baker
ley On 5/14/07, aidy lewis <[EMAIL PROTECTED]> wrote: On 14/05/07, Charley Baker <[EMAIL PROTECTED]> wrote: > class LoginInput > @@user_name = "Vipul.Goyal" > > def LoginInput.user_name > @@user_name > end > end > > puts LoginInput.u

Re: [Wtr-general] reading cell data into an array

2007-05-14 Thread Charley Baker
Can you give us an example of some of the data in the cell you're trying to collect into an array? You should be able to do something like splitting it into different strings possibly, depends on what you're getting from your cell. -Charley On 5/12/07, Tunde Jinadu <[EMAIL PROTECTED]> wrote: H

Re: [Wtr-general] length not recognized for array within a class

2007-05-14 Thread Charley Baker
Hi there, In this case you've created @aObjects as a class instance variable, which means it's not visible to instance methods. Add a constructor to set it up instead: class CLWindow def initialize @aObjects = Array.new end def add_object puts @aObjects.length end end cl = CLWindo

Re: [Wtr-general] Solution for FAQ "Using key/value pairs" not working

2007-05-14 Thread Charley Baker
Ah, you're using a class variable and you have no accessor methods so it's only available to . You'll need to add a class accessor or an instance method if you're creating object of type LoginInput to get at the value: class LoginInput @@user_name = "Vipul.Goyal" def LoginInput.user_name @

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-05-11 Thread Charley Baker
Where are you running the last command from and where is your watir gem? open up irb at the command line and type the following: irb>require 'watir' irb>puts Watir::IE::VERSION My guess is it's still 1.4 something. Exit irb and type this: gem list --local watir or check your path, at the comma

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-05-11 Thread Charley Baker
looks like you didn't uninstall watir 1.4.1, the error is coming from site_ruby where that's installed. Uninstall Watir 1.4.1 and try it again. -c On 5/11/07, Kui Zhang <[EMAIL PROTECTED]> wrote: Hello, After I installed watir-1.5.1.1164.gem, I still see this error message:c:/ruby/lib/ruby/si

Re: [Wtr-general] Running test script once for each datarow in excel

2007-05-11 Thread Charley Baker
David Brown posted an interface to Excel on the Watir user contributions area with an example usage case that steps through rows: http://wiki.openqa.org/display/WTR/Excel+interface+class -Charley On 5/11/07, Vipul <[EMAIL PROTECTED]> wrote: i am testing a site which has login page. i want to

Re: [Wtr-general] Solution for FAQ "Using key/value pairs" not working

2007-05-11 Thread Charley Baker
Looks like user_Name is not defined for your LoginInput class. Check your casing and make sure it exists there. Might be something like user_name, not user_Name. Otherwise we'd have to have more information on your LoginInput class. -Charley On 5/11/07, Vipul <[EMAIL PROTECTED]> wrote: now i a

Re: [Wtr-general] Watir Data types exported from excel

2007-05-09 Thread Charley Baker
You're converting it to an integer with to_i. Pull the string and do what you want with it, integers don't have a leading 0, strings do. Unless anyone has a better idea, you'd be better off working with the basic string yourself and converting it. -c On 5/9/07, Tunde Jinadu <[EMAIL PROTECTED]> w

Re: [Wtr-general] Community involvement with Watir

2007-05-09 Thread Charley Baker
I'm all for a Why style guide. His surreal style sucks more people in than if it was a plain old manual. Maybe a donut eating platypus instead of foxes. :) -c On 5/9/07, Bret Pettichord <[EMAIL PROTECTED]> wrote: Ċ½eljko Filipin wrote: > > Watir user guide can have "enterprise look", but I woul

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-09 Thread Charley Baker
w = WinClicker.new text = w.get_static_text('Microsoft Internet Explorer') # returns an array for each static control text.each {|t| puts t} -Charley On 5/9/07, gary <[EMAIL PROTECTED]> wrote: Hi everyone, I'm having difficulty in capturing the text from a java alert, and would appreciate a

Re: [Wtr-general] Wtr-general Digest, Vol 42, Issue 14

2007-05-08 Thread Charley Baker
Not to be too blunt, butinstall facets >= 1.8.54. gem install facets -c On 5/8/07, Russ DeWolfe <[EMAIL PROTECTED]> wrote: Here is the message I get when I attempt to install this gem: ERROR: While executing gem ... (RuntimeError) Error instaling unroller: unroller requires f

Re: [Wtr-general] Remote Watir

2007-05-08 Thread Charley Baker
Bill Agee uploaded a rails app to run tests remotely, it's in the user contributions area on the wiki: http://wiki.openqa.org/display/WTR/Rails+test+runner+example+app -Charley On 5/7/07, Paul Rogers <[EMAIL PROTECTED]> wrote: drb might be what you want. Also search the list here - someone po

[Wtr-general] Community involvement with Watir

2007-05-04 Thread Charley Baker
Hi all, I'd like to send out another annoucement asking for people to contribute to the Watir user guide and volunteer. I've started poking around at the user guide today and made a few changes, notably to update view source with the ie developer toolbar. I'll make further changes if as I get tim

Re: [Wtr-general] FireWatir not finding buttons by id

2007-05-04 Thread Charley Baker
It's a curious bug, just saw the same thing. A bug/feature, works more than it should. :) Chris is right we should definitely spend more time with Angrez, Prema and the Firewatir community. I'm getting slammed by requests for multiple browser tests and starting to abstract layers so that it's easi

Re: [Wtr-general] Setting focus in a frame in IE7

2007-05-04 Thread Charley Baker
I just ran the same code with IE7 and it appeared to work fine. Just out of curiosity why use send_keys instead of setting the text field? ie.text_field(:index, 1).set('foo') -Charley On 5/4/07, Paul Rogers <[EMAIL PROTECTED]> wrote: Assuming your html uses regular type html and you only wa

Re: [Wtr-general] Watir + Autoit + Save As

2007-05-04 Thread Charley Baker
It looks fine, you might however have to use ControlFocus to make sure the control has focus before attempting to click on it. autoit.ControlFocus("Enregistrer sous", "", "&Enregistrer") autoit.ControlClick("Enregistrer sous", "Enregistrer &dans :", "&Enregistrer") -Charley On 5/4/07, Maisonnet

Re: [Wtr-general] can you help why ODBC connection failure worked one time and not working no

2007-05-04 Thread Charley Baker
What's the warning message? On 5/4/07, Venkata <[EMAIL PROTECTED]> wrote: Thanks chareley, i keep getting warning message in the log end of te script execution. Thanks. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/ma

Re: [Wtr-general] can you help why ODBC connection failure worked one time and not working no

2007-05-03 Thread Charley Baker
i'm not sure why you'd worry about garbage collection. if you want to, there's a ruby gc library where you can explicity clean it up. -c On 5/3/07, Venkata <[EMAIL PROTECTED]> wrote: Thanks and it worked. i did not notice that i put caps. thansk for answering all these issues. How to clean th

Re: [Wtr-general] can you help why ODBC connection failure worked one time and not working no

2007-05-03 Thread Charley Baker
I'm not familiar with any ODBC library. You should use DBI if you want to go this route which in turn has an ODBC driver. http://www.kitebird.com/articles/ruby-dbi.html -Charley On 5/3/07, Venkata <[EMAIL PROTECTED]> wrote: helo all, I am trying to connect to SQL server through ODBC. Ste

Re: [Wtr-general] Finding the name of objects

2007-05-03 Thread Charley Baker
I'm starting to sound like a broken record and was just thinking about updating the user guide for this. Use the ie developer toolbar to find controls and identify them, while being familiar with the html source and some basic knowledge around the dom is important, this will also help: http://www

Re: [Wtr-general] How do I connect to MS SQL 2005 using Ruby?

2007-05-03 Thread Charley Baker
This is straight ruby and dbi, take a look at this link: http://www.kitebird.com/articles/ruby-dbi.html -c On 5/3/07, Venkata <[EMAIL PROTECTED]> wrote: Charley, Do you have an example Test script executing SQL from water - ruby. please can you attach that. I need as soon as possible. Th

Re: [Wtr-general] 'Unable to locate object' problem

2007-05-03 Thread Charley Baker
Hi, Please edit responses to refer to the original header and not the digest header. I missed the fact that the src attribute is pointing to textarea, it's not a text control. Try using IE developer toolbar to find the control and some sort of identifiable attribute - name, id, index. Then use t

Re: [Wtr-general] 'Unable to locate object' problem

2007-05-02 Thread Charley Baker
You're trying to write to what appears to be a frame not the textarea. ie.text_field(:name, 'SN_NOTESSText').set('this should work') -Charley On 5/2/07, Imran Hussain <[EMAIL PROTECTED]> wrote: Hi, 'Unable to locate object' problem When running the following show_all_objects command, I g

Re: [Wtr-general] Error when loading iframe

2007-05-02 Thread Charley Baker
Try running the latest code from svn, there've been some changes around dealing with frame access errors. Follow this link for the instructions: http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem -Charley On 5/2/07, John <[EMAIL PROTECTED]> wrote: Hi, When you click on a link in my website an

Re: [Wtr-general] Can Watir be paused & resumed manually when running test cases?

2007-05-01 Thread Charley Baker
I'd highly second that. It's small simple and breaks you out where you want to be to inspect your current state through irb. It's been dropped and ruby-debugger is the newer project, but since I haven't had a need for much else, I haven't looked at ruby-debugger yet. The ruby eclipse plugin also

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Charley Baker
Yep, we still include autoit. -c On 4/30/07, Kui Zhang <[EMAIL PROTECTED]> wrote: Hi Charley, Follow your instruction, installed the latest Watir gem. It works now! One question, if I installed the Watir gem, does this include autoit which I need to use in the testing? Or how to check if t

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Charley Baker
Install the latest gem for Watir 1.5.1 and try it again if you can . Here's a link for how to do just that: http://wiki.openqa.org/display/WTR/Development+Builds Follow the instructions on the right pane To Install. -Charley On 4/30/07, Kui Zhang <[EMAIL PROTECTED]> wrote: Thanks Charley for

Re: [Wtr-general] How to unzip the zip file using watir/ruby script

2007-04-30 Thread Charley Baker
There's rubyzip library on sourceforge.net which you might look into: http://sourceforge.net/projects/rubyzip -Charley On 4/28/07, jhe <[EMAIL PROTECTED]> wrote: Dear all, I want to extract the content from the winzip file by water/ruby script, which of the following command could achieve

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Charley Baker
smokeid means nothing in standard dom. You can use :text to identify the control. Watir works off of standard html attributes and the DOM, this is some sort of custom attribute. This should work. ie.button(:text, 'Login').click -Charley On 4/30/07, Kui Zhang <[EMAIL PROTECTED]> wrote: Hello,

Re: [Wtr-general] Watir - Scrpting issues with Dynamic HTML

2007-04-30 Thread Charley Baker
This is the id I got off of that control in your menus using ie developer toolbar: http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en Watir works off of how and what. How would you like to access a dom element? What can you use to identif

Re: [Wtr-general] Watir - Scrpting issues with Dynamic HTML

2007-04-30 Thread Charley Baker
The main dhtml menu is pretty straighforward using Watir 1.5.1: require 'watir' include Watir ie = IE.start('http://www.ceridian.com/') ie.table(:id, 'STM0_0__5___').fire_event('onmouseover') ie.cell(:id, 'STM0_5__1___MTD').click -Charley On 4/30/07, Paul Rogers <[EMAIL PROTECTED]> wrote: no

Re: [Wtr-general] Cannot run example test case

2007-04-30 Thread Charley Baker
Are you getting anything if you run through irb? Open a command prompt type irb in irb type require 'watir' include Watir ie = IE.new Anything happen? -Charley On 4/27/07, Kui Zhang <[EMAIL PROTECTED]> wrote: Hello, I just installed ruby 186-35 and Watir 1.4.1 on windows Xp. Following

Re: [Wtr-general] HELP----Re: how to click on a image with this HTML code

2007-04-30 Thread Charley Baker
Try clicking on the div instead which is where the onclick event lives: ie.div(:id, 'Research').fire_event('onclick') -Charley On 4/29/07, SHALINI GUPTA <[EMAIL PROTECTED]> wrote: HELLO TO ALL, PLEASE HELP ITS VERY URGENT.. REGARDS SHALINI GUPTA On 4/30/07, SHALINI GUPTA < [EMAIL PROTECTED

Re: [Wtr-general] Does watir support file download?

2007-04-26 Thread Charley Baker
You might check into the image download in Watir 1.5.1: Image::save and Image::fill_save_image_dialog I've not had to do this but it shouldn't be too challenging through either AutoIt or winclicker. -c On 4/25/07, jhe <[EMAIL PROTECTED]> wrote: Dear all, Is there a way to download file an

Re: [Wtr-general] Can Watir do - verify the file opened in PDF or Excelfrom?

2007-04-26 Thread Charley Baker
Since you're already familiar with Java and using that for your Selenium RC tests, I'd recommend you stick to that route. There are some java libraries for reading pdfs as well as likely excel and word files, search on google, I'd recommend the same for interacting with the Windows dialog which m

Re: [Wtr-general] Fwd: + Hackety Hack +

2007-04-25 Thread Charley Baker
Why's Poignant Guide is excellent. It takes learning to program to a new and otherwise other worldly angle. I've been recommending it, you'll either love it or hate it. It'd be nice to work on his basic conceptual view and present a basic programming using Ruby class, wearing bunny suits of course

Re: [Wtr-general] canoo2watir

2007-04-25 Thread Charley Baker
s a recorder for canoo, that records from a proxy, but I seem to be mistaken. I'll get the code a bit better then do a proper announcement Paul - Original Message - *From:* Charley Baker <[EMAIL PROTECTED]> *To:* wtr-general@rubyforge.org *Sent:* Wednesday, April 25, 2007

Re: [Wtr-general] canoo2watir

2007-04-25 Thread Charley Baker
Could be interesting, I'd looked at webtest when evaluating tools a while back. And as Elizabeth Hendrickson often says...'Show me the code'. It's always helpful and demonstrates the point pretty well and if people want to learn or add on then it gives them a good base. Perhaps it's one other tool

Re: [Wtr-general] How to move the mouse to point to an object?

2007-04-25 Thread Charley Baker
Hmm, good question, I don't seem to be able to access it either. Thanks for the public example, I'll look at it some more and see if I can't trigger it. -c On 4/25/07, joe fu <[EMAIL PROTECTED]> wrote: i've tried to do ie.div(:id, "calendarStripDateLabelDock").fire_event("onmouseover")bu

Re: [Wtr-general] Get a class value

2007-04-25 Thread Charley Baker
With Watir 1.5 ie.cell(:id, 'tab.policies.WINDOWS').attribute_value('classname') -Charley On 4/25/07, Russ DeWolfe <[EMAIL PROTECTED]> wrote: I want to get the value in the class parameter of a TD tag or better yet build an array with a bunch of them in it, but just getting this one will be

Re: [Wtr-general] Cannot get Autoit to create a simple control instance

2007-04-24 Thread Charley Baker
Try running the command regsvr32 AutoItX3.dll at the command line where the autoit dll lives. Also make sure you have administrator rights on your machine, otherwise it won't work correctly. -Charley On 4/24/07, Russ DeWolfe <[EMAIL PROTECTED]> wrote: I have installed AutoIT, including the dl

[Wtr-general] OT: New version of RDT plugin for Eclipse

2007-04-24 Thread Charley Baker
For all of you who are working with Eclipse and the rdt plugin, there's a new version finally. They haven't updated their main site, but have a news announcement on their base sourceforge project page: Most notably are the inclusion of refactorings, mark occurrences support, improved code completi

Re: [Wtr-general] Watir and smartclient

2007-04-24 Thread Charley Baker
This is the source code, what you really want to look at is the rendered DOM. Take a look at the controls with Microsoft Internet Explorer Developer toolbar: http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038 This will show you the controls and any assoc

Re: [Wtr-general] NoMethodError: undefined method `assert_equal'

2007-04-24 Thread Charley Baker
You can get the text of the window using AutoIt, in javascript popups the text is usually in the first or second static text control: oPopup = Watir::autoit # Change into the WinTitleMatchMode that supports classnames and handles oPopup.AutoItSetOption("WinTit

Re: [Wtr-general] Watir T-shirt

2007-04-23 Thread Charley Baker
Good idea, I'd buy one and agreed the code should actually work. :) It's only dev code that doesn't work. :P -c On 4/23/07, Paul Rogers <[EMAIL PROTECTED]> wrote: I hope you try the code before making the t-shirts ;-) - Original Message - From: Jason <[EMAIL PROTECTED]> Date: Monday,

Re: [Wtr-general] command to get a future date

2007-04-23 Thread Charley Baker
Use ruby's date class. d = Date.today d = d + 7 puts d.day() -Charley On 4/23/07, Maloy kanti debnath <[EMAIL PROTECTED]> wrote: hi people, In my application i have a calander and i need to select a that is 7 days from today (ie 30th April) . Now the question is . Is there a

Re: [Wtr-general] I am having doubts in Selenium and ajax.

2007-04-22 Thread Charley Baker
If you're using Watir 1.5.1, you can call wait_until for a control to exist. Take a look at this, your needs might be different but it may give you some direction: http://wiki.openqa.org/display/WTR/Simple+Ajax+examples I'll add more examples at some point but the basic concept holds. -Charley

Re: [Wtr-general] Calling Function Error - like No test were specified

2007-04-19 Thread Charley Baker
Hmmm, there's quite a lot going on here. Where to begin. Classnames must be capitalized: class MainTestManage not class mainTestManage I'm not sure why you've defined a module nor why you're explicitly naming your class names in your module with the as class methods. You maintestManage class

Re: [Wtr-general] Verifying Values of Cookies

2007-04-18 Thread Charley Baker
Hi Gary, This will grab the cookies and put them into an array: require 'watir' include Watir ie = IE.start('http://www.yahoo.com') arr = ie.document.cookie.split(';') # multiple cookies are separated by ;s arr.each {|a| puts a.to_s} -Charley On 4/17/07, Gary <[EMAIL PROTECTED] > wrote:

Re: [Wtr-general] OLE error code:80070005 in Access is denied.

2007-04-17 Thread Charley Baker
Or you can use the latest version of Watir and it will also go away and give you more functionality: http://wiki.openqa.org/display/WTR/2007/04/12/Watir+Development+Gem+1.5.1.1165+Released The workaround isn't ideal, but should solve this issue for the majority of users. -Charley On 4/17/07, jim

Re: [Wtr-general] Will WATIR support MS SQL 2005, if so what are the connections to include.

2007-04-17 Thread Charley Baker
As John's link points out, this is not a watir related question but one covered by other libraries in Ruby, notably either dbi which is mentioned in this posting and likely ActiveRecord. It's important to make the distinction and understand the difference between Ruby as a programming languages

Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Charley Baker
ks it works. :-) However I noted that even the site says ver 1.5.1.1165, the actual gem file is 1164. Neverthless, it works as expected. Thanks, Manish Charley Baker wrote: > Hi Manish, > > Try using the latest gem on the watir site, 1165. There's a bit of a > work around for this

Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Charley Baker
Hi Manish, Try using the latest gem on the watir site, 1165. There's a bit of a work around for this issue in place until we get around to a longer term fix. It's the same cross site scripting frame issue which has been discussed on this list previously. -Charley On 4/13/07, Manish Sapariya <[

Re: [Wtr-general] Looping with excel worksheets

2007-04-13 Thread Charley Baker
Hi Nicola, Put it in a method and call the method from within a loop: require 'watir' include Watir url = "http://www.zoomerang.com/recipient/survey.zgi?p=WEB225WDYJNVDT"; search_string = "questionnaire" $ie = IE.new $ie.goto(url) $ie.bring_to_front #ie.show_all_objects require 'win32ole' d

Re: [Wtr-general] OT: run Firefox inside Firefox

2007-04-12 Thread Charley Baker
That's oddly disturbing. :) -c On 4/12/07, Chris McMahon <[EMAIL PROTECTED]> wrote: This makes my head hurt: http://seejay.wordpress.com/2007/04/11/firefox-inside-firefox/ ___ Wtr-general mailing list [EMAIL PROTECTED] http://rubyforge.org/mailman/li

  1   2   3   4   >