[wtr-general] Re: Difference in behaviour of ".text" method in Watir and FireWatir.

2010-02-11 Thread Betsy
Hi Ethan, Tried to use element.text.match(/^New\s+Delhi\s+to\s+Mumbai$/) but it returned nil and so failed. Where do I look for the reason for the same? Thanks, Betsy Joy. On Feb 10, 8:54 pm, Ethan wrote: > The difference between firefox and IE generally being on whitespace, > you can match te

[wtr-general] Re: Measure download time of a file using watir

2010-02-11 Thread Maumita
Hi, I made the changes as per the suggesstion.Below find my modified script But my script gets ended once the file starts downloading. The script is not handling "ai.WinWait("Download complete", "", 5) ai.ControlClick("Download complete", "", "Close")" Please help on this. I am using watir-1.6.2

Re: [wtr-general] Re: Questiona about Watir in Mac with Firefox 3.6

2010-02-11 Thread Moises Siles
I'm getting the following error when I ran the command sudo gem install selenium-webdriver Building native extensions. This could take a while... ERROR: Error installing selenium-webdriver: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/u

[wtr-general] Re: My blog about Watir and RSpec

2010-02-11 Thread Tiffany Fodor
Great blog, Jarmo! It should definitely be included on the Watir.com list of blogs. Alister (and maybe Zeljko) can add it. I'm looking forward to reading more! -Tiffany On Feb 11, 2:34 pm, Jarmo Pertman wrote: > Hello. > > I've been blogging already some time now about Watir and RSpec and > wi

[wtr-general] Re: How to retrieve other attributes of the object?

2010-02-11 Thread Tiffany Fodor
Hi! There is a way to do this using the attribute_value method: puts $Browser.button(:name => 'bu_0', :value =>'Logon').attribute_value('class') Here's a recent discussion: http://groups.google.com/group/watir-general/browse_thread/thread/76e33d4eaa2319d0 Hope this helps! -Tiffany On Feb 11,

[wtr-general] How to retrieve other attributes of the object?

2010-02-11 Thread Logic Bomb
Hi, Is there a command in Watir that I can use to retrieve other attributes of the object? See my sample code below (this is just an idea and not the correct syntax): puts $Browser.button(:name => 'bu_0', :value => 'Logon').attribute('class') Please do not tell me to use IE Developer Toolbar or

[wtr-general] My blog about Watir and RSpec

2010-02-11 Thread Jarmo Pertman
Hello. I've been blogging already some time now about Watir and RSpec and will continue doing it. I'm not creating new posts often, but I have somekind of to-do list on my PC for future topics. I've been creating some posts which are little bit tied to each other - e.g. i started doing something

[wtr-general] Re: Problem with attribute_value() -- Zeljko?

2010-02-11 Thread AR
I reinstalled watir 1.6.5 and this appears to be working across the board now. Not sure what was wrong with my installation. Thanks for the replies in working this out! On Feb 10, 10:27 pm, AR wrote: > Error is either "Nil", or an error saying element not found depending > on my approach.  Basi

[wtr-general] Re: Questiona about Watir in Mac with Firefox 3.6

2010-02-11 Thread subzero2000
Since jssh is a binary add-on, it is specific to the version of Firefox that it's compiled for. I've had success compiling jssh for Firefox 3.6 for Linux; I haven't even tried it on my Mac. I've found that if you install the wrong version, you run the risk of causing Firefox to segfault. Having sa

[wtr-general] Re: Measure download time of a file using watir

2010-02-11 Thread orde
Is there a Download Complete prompt/popup? If so, you could wrap this section of solution #2, and it will give you an approx. download time. Otherwise, you might be able to use the File class (e.g. see if the downloaded file exists? is the size 220MB?). ### begin_time=Time.now ai.ControlSen

[wtr-general] Re: Firewatir cannot find an element on the page

2010-02-11 Thread QAguy
You need to register as a user and verify your account (its free). Then upload a video and go to the folder that video is in. Once in the folder select the checkbox for that video and click the move option from the menu bar. On Feb 10, 3:03 am, Angrez Singh wrote: > When I went to the website it

[wtr-general] Re: use verify instead of assert

2010-02-11 Thread Matt
I will take a look at that...thanks for your help! On Feb 11, 11:48 am, Tiffany Fodor wrote: > Hi Matt! > > Since you're just starting, you may want to take some time to consider > what type of framework will work best for you.  Most people use a > Test::Unit or an RSpec framework, or a variation

[wtr-general] Re: Another VERIFY question

2010-02-11 Thread Matt
Thanks Tiffany! On Feb 11, 11:28 am, Tiffany Fodor wrote: > Hi Matt! > > You're on the right track, but verifying text is a bit different. > Give this a try: > > verify(($browser.text.include?("Find Offer")), message="Field not > active.") > > Hope this helps! > > -Tiffany > > On Feb 11, 7:46 am,

[wtr-general] Re: use verify instead of assert

2010-02-11 Thread Tiffany Fodor
Hi Matt! Since you're just starting, you may want to take some time to consider what type of framework will work best for you. Most people use a Test::Unit or an RSpec framework, or a variation on one of them. I'm still using Test::Unit because I like it (I like the syntax and if a verification

[wtr-general] Re: Another VERIFY question

2010-02-11 Thread Tiffany Fodor
Hi Matt! You're on the right track, but verifying text is a bit different. Give this a try: verify(($browser.text.include?("Find Offer")), message="Field not active.") Hope this helps! -Tiffany On Feb 11, 7:46 am, Matt wrote: > Hi, > > I have another question about the verify method. Can it b

Re: [wtr-general] error running watir in mac

2010-02-11 Thread Moises Siles
ok, I will try and I'll let you know thanks! On Thu, Feb 11, 2010 at 10:05 AM, Ethan wrote: > try > sudo gem install rb-appscript > > > On Thu, Feb 11, 2010 at 11:02, Moises Siles > wrote: > > so, what should I do to solve this? > > > > Thanks > > > > On Thu, Feb 11, 2010 at 9:59 AM, Ethan wr

Re: [wtr-general] error running watir in mac

2010-02-11 Thread Ethan
try sudo gem install rb-appscript On Thu, Feb 11, 2010 at 11:02, Moises Siles wrote: > so, what should I do to solve this? > > Thanks > > On Thu, Feb 11, 2010 at 9:59 AM, Ethan wrote: >> >> 'require' returning false just means that it has already been >> required; true means it is being require

Re: [wtr-general] error running watir in mac

2010-02-11 Thread Moises Siles
so, what should I do to solve this? Thanks On Thu, Feb 11, 2010 at 9:59 AM, Ethan wrote: > 'require' returning false just means that it has already been > required; true means it is being required for the first time. if > rubygems were not installed, it would raise a LoadError. > > On Thu, Feb

Re: [wtr-general] error running watir in mac

2010-02-11 Thread Ethan
'require' returning false just means that it has already been required; true means it is being required for the first time. if rubygems were not installed, it would raise a LoadError. On Thu, Feb 11, 2010 at 05:04, Yuping Zhong wrote: >>> require "rubygems" > => false > Looks like you don't have

[wtr-general] Another VERIFY question

2010-02-11 Thread Matt
Hi, I have another question about the verify method. Can it be used to verify text on a page? I tried using it like this: verify(($browser.text("Find Offer").exists?), message="Field not active.") Received the following error: ArgumentError: wrong number of arguments (1 for 0) Thanks! Matt -

[wtr-general] Re: use verify instead of assert

2010-02-11 Thread Matt
Thanks! On Feb 10, 5:23 pm, Paul Rogers wrote: > you use @browser.link and not $browser as youve used elsewhere in your > testcase > > Paul > > On Wed, Feb 10, 2010 at 2:08 PM, Matt wrote: > > I am receiving the following error: > > >  1) Error: > > test_a_order_now(TC_S001): > > NoMethodError:

[wtr-general] Watir Podcast #32

2010-02-11 Thread Željko Filipin
Next Saturday I am recording Watir Podcast #32 with Brent Strange and Gregg Yows. We will spend the most of the time talking about Brent's blog post "Testing in 2009, a Year in Review": http://bit.ly/cOUdC8 I would like to add a few minutes of Watir news at the beginning of the show. I have a fe

Re: [wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2010-02-11 Thread Željko Filipin
On Thu, Feb 11, 2010 at 2:39 PM, JArkelen wrote: > Any workaround for this? I would search Watir code for "Web Page Dialog" and replace or monkey patch it with "Dialoogvenster van webpagina". Željko -- You received this message because you are subscribed to the Google Groups "Watir General" g

[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2010-02-11 Thread JArkelen
Any workaround for this? Cheers, John On 11 feb, 13:13, Željko Filipin wrote: > On Thu, Feb 11, 2010 at 1:07 PM, JArkelen wrote: > > Maybe it is because my modal dialog titles are in Dutch: > > "Dialoogvenster van webpagina" instead of "Web Page Dialog"? > > I think that is probably the case. >

[wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-11 Thread Jarmo Pertman
Another cool thing with RSpec is the "has" methods. So, for example: class Person def has_brain? true end end person = Person.new person.should have_brain Neat, eh? That's the beauty of RSpec (and other similar DSL-s) and that's why i have been using RSpec instead of Test::Unit for a lo

Re: [wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2010-02-11 Thread Željko Filipin
On Thu, Feb 11, 2010 at 1:07 PM, JArkelen wrote: > Maybe it is because my modal dialog titles are in Dutch: > "Dialoogvenster van webpagina" instead of "Web Page Dialog"? I think that is probably the case. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir wati

[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2010-02-11 Thread JArkelen
I have the same issue with the same error message and I'm running with IE7. Maybe it is because my modal dialog titles are in Dutch: "Dialoogvenster van webpagina" instead of "Web Page Dialog"? Cheers, John On 18 dec 2009, 06:34, Alister Scott wrote: > I have raised the IE8 issue you speak of in

[wtr-general] Re: Difference in behaviour of ".text" method in Watir and FireWatir.

2010-02-11 Thread Betsy
Thank you so much Ethan.. We would surely try and implement this snippet and get back in case we face any issues. Thanks again, Betsy Joy On Feb 10, 8:54 pm, Ethan wrote: > The difference between firefox and IE generally being on whitespace, > you can match text by matching a regexp which split

[wtr-general] Re: Measure download time of a file using watir

2010-02-11 Thread Maumita
require 'watir' require 'win32ole' $ie = Watir::IE.new $ie.goto("http://localhost/dportal";) $ie.image(:name, 'toplogo_nav_04_off').click $ie.link(:text, 'Hitach product').click $ie.link(:text, 'File size 220 MB').click_no_wait prompt_message = "Do you want to open or save this file?" window_title

Re: [wtr-general] error running watir in mac

2010-02-11 Thread Yuping Zhong
>> require "rubygems" => false Looks like you don't have rubygems. On Thu, Feb 11, 2010 at 5:54 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Thu, Feb 11, 2010 at 6:17 AM, Moises Siles > wrote: > > LoadError: no such file to load -- appscript > > It looks to me that you do not

Re: [wtr-general] Re: Questiona about Watir in Mac with Firefox 3.6

2010-02-11 Thread Željko Filipin
On Thu, Feb 11, 2010 at 7:26 AM, Moises Siles wrote: > thanks man, now I'm able to run my test but when I ran the telnet I got a connection refused message :P I risk sounding like a broken record, but looks like you are in jssh hell. I would suggest that you try watir-webdriver. It can drive Fire

Re: [wtr-general] error running watir in mac

2010-02-11 Thread Željko Filipin
On Thu, Feb 11, 2010 at 6:17 AM, Moises Siles wrote: > LoadError: no such file to load -- appscript It looks to me that you do not have appscript, whatever that is, I am not really familiar with SafariWatir. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir wat