[wtr-general] Error when clicking on Submit button in pupup window.

2009-04-29 Thread alex
ing was ok. Is there something I am doing wrong, or Firewatir does not support clicking on "auto-closing" buttons? Thanks, Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group.

[wtr-general] Re: setting browser through rake

2009-04-27 Thread Alex Dean
try running 'rake ie --trace' and 'rake ff --trace' to see what order the tasks are executed in? On Apr 27, 2009, at 6:23 AM, aidy lewis wrote: > > Hi, > > Has anyone managed to set the browser through Rake? > > > > require 'cucumber/rake/task' > require 'watir' > > > Cucumber::Rake::Task.new(

[wtr-general] Re: Rescue

2009-04-26 Thread Alex Collins
7; line closes the begin block. To stop the program / script running, call the 'exit' method. Alternatively, if you want to build in behaviour around the lack of a browser, you could always use an if-block: if browser # do stuff when you have a browser else # do stuff when you h

[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-23 Thread Alex Collins
could you post the output of 'uname -a', please? Thank you, Alex On 23 Apr 2009, at 03:17, emz452 wrote: > > Hi there, > > I have recently started working from home and have just finished > setting up my rails development environment. I'm running into a > prob

[wtr-general] Re: Test Results Report Methods

2009-04-19 Thread Alex Collins
manually specify UTF-8 encoding, the output is wrongly displayed. Try manually specifying the encoding. Alex On 19 Apr 2009, at 04:03, Wesley Chen wrote: > It doesn't work. > I get the result as: > row of CSV data > 浣犲ソ鍚? 鎴戝緢濂? > > When I put the info out from th

[wtr-general] Re: Test Results Report Methods

2009-04-18 Thread Alex Collins
", "of", "CSV", "data"] csv << ["你好吗?", "我很好"] end Best wishes, Alex On 18 Apr 2009, at 04:07, Wesley Chen wrote: > Do you know how to make it support the chinese character? > When I have installed fastercsv and run the co

[wtr-general] Re: FireWatir bug/anomaly

2009-04-13 Thread Alex Collins
ting this into element.rb's method_missing call. > 2. SelectList#set needs to be defined as an alias for > SelectList#select > (as it is in IE-Watir). I checked this morning - this is already fixed in the firewatir on GitHub in Br

[wtr-general] Re: the ie.goto() problem

2009-04-12 Thread Alex Collins
therefore need to amend your script so that you call: ie.goto(thisLocation.to_s) However, if you are looking to join file names to directory paths, I suggest you look at Ruby's File and Dir classes. They have many useful helpers, for example, File.join does exactly what we are doing above

[wtr-general] Re: FireWatir bug/anomaly

2009-04-12 Thread Alex Collins
ime being: @browser.select_list(:id,"cAbb").select("software jobs") However, if you wish to use the set method, add the following code to your firewatir/htmlelements.rb file in the SelectList class beneath the select method's definition: alias :set :select Best wishes,

[wtr-general] Re: Package creation

2009-03-13 Thread Alex Collins
Vikas, Ruby probably isn't what you're looking for in that case. Although I have previously seen some options for creating executables from Ruby code. I don't have any links or information on them. Alex On 13 Mar 2009, at 04:05, Vikas Tulashyam wrote: > > Hi Tiffan

[wtr-general] Re: Drop down Contents

2009-02-12 Thread Alex Collins
Interesting. I found the options() method from the rdoc. However, I do not get the behaviour I expect. Use getAllContents() instead; this does return an array, as expected. Alex On 12 Feb 2009, at 19:15, Jason Shelton wrote: > I tried the following code, and I am getting the undefi

[wtr-general] Re: Drop down Contents

2009-02-12 Thread Alex Collins
compare the two. Alex On 12 Feb 2009, at 17:29, Jason Shelton wrote: > All, > > I am writing to ask if anyone has a quick way of verifying the > contents of a drop down. I have a list of names, and I want to > verify that each name is being displayed in the drop down. Thanks &

[wtr-general] Re: using data from a csv file

2009-02-12 Thread Alex Collins
Sorry - too early in the morning at the time. CSV::Reader is what I meant. If you google for CSV::Reader and Ruby you get what you are after. Sorry about that. Alex On 12 Feb 2009, at 17:56, jtk wrote: > > Hi Alex, > > Thanks for replying. I Googled CSV::Loader and it came ba

[wtr-general] Re: "On Error Resume Next" - Equal statement in Ruby

2009-02-12 Thread Alex Collins
else ... ensure ... end Alex On 12 Feb 2009, at 07:11, Prince3105 wrote: > > Hi This is Prince3105, > > Fairly newbie to watir, and i am using QTP for a long time, since a > Vbscripter, i couldn't get all features of Ruby. > In Vbscript we are using one statement "O

[wtr-general] Re: using data from a csv file

2009-02-11 Thread Alex Collins
Do a quick search on Google for CSV::Loader - this will allow you to load a csv easily. You can then substitute values into your query as desired. On 12 Feb 2009, at 00:53, jtk wrote: > > Hello, > > Can anyone help me pull data out of a csv file and insert it into a > SQL query? > > I am tr

[wtr-general] Re: Advice on finding/clicking an image element

2009-02-10 Thread Alex Collins
Several options, the simplest of which is to use the image method. web_browser.image( :src, /plus.gif/ ).click You may need to use xpath or multiple attributes to get the second or third image. Hope this helps. Alex On 10 Feb 2009, at 23:44, rollo wrote: > > Hello, Watir Folks.

[wtr-general] Re: count the number of elements (without divs.find_all)

2009-02-10 Thread Alex Collins
Michael, The scan method is part of the String class. If you look at the rdoc for the classes you can find some very useful methods. The pickaxe book and other ruby tutorials are also helpful. Alex On 10 Feb 2009, at 16:14, Michael Hwee wrote: > > > Very cool, Jarmo. > If yo

[wtr-general] Re: How to create a Hash Table using CSV or FaterCSV

2009-01-13 Thread Alex Collins
e, you are accessing a String object (an instance of a Ruby class). That it is a string is indicated by the double quotes. You may be interested in looking at YAML. It is a markup form available in Ruby which is typically used for what you are doing. Hope this helps, Alex On 14 Jan 2009, at 01:

[wtr-general] Re: How to create a Hash Table using CSV or FaterCSV

2009-01-13 Thread Alex Collins
Margam, This is all to do with the basics of Ruby. It would be well worth working through some of the ruby tutorials. In this case; hash[] On 14 Jan 2009, at 01:19, Margam wrote: > > Follow Up > Hello All, > After googling for some time, I found an easy way to get the data into > an Hash.

[wtr-general] Re: Please help - getting error 'Unable to locate element'

2009-01-12 Thread Alex Collins
lieve. If the webmetrics recorder has not been updated to Watir 1.6 then the line might read: $ie = Watir::IE.new If this is the case you will either need to downgrade Watir or modify the script. If you are still having difficulties, it would be helpful to see your script code. Alex On 1

[wtr-general] Re: Does Watir support

2009-01-05 Thread Alex Collins
n the script, such that you can consistently record the actions and means that you can watch the browser doing the same thing, as John mentioned in his reply. Alex 5 Jan 2009, at 07:12, Chuck vdL wrote: > > That's a great tip Alex, and yeah that will work for really simple > stuf

[wtr-general] Screencast: an introduction to WATIR

2009-01-04 Thread Alex Collins
e Google search example? Best wishes, Alex --~--~-~--~~~---~--~~ 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, p

[wtr-general] Re: Does Watir support

2009-01-04 Thread Alex Collins
et the same analysis tools as you might with the commercial products, but the tools are free. Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this grou

[wtr-general] Re: Pulling hair out on screen scraping

2009-01-03 Thread Alex Collins
s. - The // symbols are less easy to find, but they are a regular expression or RegExp. Common across many languages and also available in Java. - The .text method returns the text contained within the span Hope this helps, Alex On 3 Jan 2009, at 18:31, Bissquitt wrote: > > Regarding doc

[wtr-general] Re: Problem installing safariwatir on OS X version 10.5.5

2008-12-19 Thread Alex Collins
Have you installed the developer tools? These are available on the OS X install CD or you can download them from ADC. Alex On 19 Dec 2008, at 19:38, Margam wrote: > > Hello all, > I am trying to install safarwatir on a Mac machine with OS X ver > 10.5.5. But have been unsucces

[wtr-general] Re: Know how to make a screencast?

2008-12-08 Thread Alex Collins
es in later screencasts. Alex On 8 Dec 2008, at 22:37, Pete Dignan <[EMAIL PROTECTED]> wrote:writes > > If you subscribe to this list, you probably know how to use Watir. > The more people and companies that know and use Watir, the more > valuable your Watir skills become. I h

[wtr-general] Re: Capturing data within an xml

2008-12-04 Thread Alex Collins
A useful general principle if you are wondering if something will work is to try it. In Ruby, start IRB (type irb at the command line) then type your ruby code. Irb will show you the results after each line. You do not need $ signs (ruby global variable) but you must certainly quote your s

[wtr-general] Re: Unable to find the value "blah..." within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Alex Collins
This is because in Excel you likely have the ellipsis character (...) as a single character not three separate period chracters (.). Ruby (and therefor Watir) doesn't support character sets / unicode as one might expect. Therefore you receive the á character instead. Try pasting the value in

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Alex Collins
Try putting bracket around the *args. You could read the *args as being "any number of arguments to the method". On 1 Dec 2008, at 19:09, Chuck vdL <[EMAIL PROTECTED]> wrote: > > OK so I went and looked.. it's not javascript > > -=-=- snip-=-= > class Radio < RadioCheckCommon > def initiali

[wtr-general] Re: Need help on installing Rails

2008-11-11 Thread Alex Collins
the correct ruby installs when installing gems etc. Eg Set PATH=c:\old-ruby\bin;%PATH% Hope this helps. Alex On 11 Nov 2008, at 05:26, "pramod D" <[EMAIL PROTECTED]> wrote: > > > Hi All, > My application runs only on IE and uses lots of modal window for > th

[wtr-general] Re: Trouble getting at Unordered lists (Rad Control)

2008-11-03 Thread Alex Collins
ce page of watir recognition methods is also very useful in understanding how you can recognize the page controls you wish to interact with. In this case, you can recognize the link using the HTML id. Hope this helps, Alex On 3 Nov 2008, at 23:12, "[EMAIL PROTECTED]" <[

[wtr-general] Re: How to check an image source and then click a link when looping though all cells of a table

2008-10-22 Thread Alex Collins
As a cell is a container, you can use: cell.image(:index, 1) To access the first image within the cell. You should be able to use any of the other recognition methods, as usual. Hope this helps, Alex On 22 Oct 2008, at 22:33, niartseoj <[EMAIL PROTECTED]> wrote: > > Hello, &g

<    1   2