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 moises.si...@gmail.com 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

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 moises.si...@gmail.com 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

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 moises.si...@gmail.com wrote: LoadError: no such file to load -- appscript It looks to me that

[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 =

[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 notet...@gmail.com wrote: The difference between firefox and IE generally being on whitespace, you can match text by matching a

[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 alister.sc...@gmail.com wrote: I have raised the IE8

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 johnvanarke...@gmail.com 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 -

[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

[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 zeljko.fili...@wa-research.ch wrote: On Thu, Feb 11, 2010 at 1:07 PM, JArkelen johnvanarke...@gmail.com wrote: Maybe it is because my modal dialog titles are in Dutch: Dialoogvenster van webpagina instead of Web Page

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 johnvanarke...@gmail.com 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

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

2010-02-11 Thread Matt
Thanks! On Feb 10, 5:23 pm, Paul Rogers paul.rog...@shaw.ca 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 thurman_m...@yahoo.com wrote: I am receiving the following error:  1) Error:

[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 --

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 notet...@gmail.com 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.

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 moises.si...@gmail.com wrote: so, what should I do to solve this? Thanks On Thu, Feb 11, 2010 at 9:59 AM, Ethan notet...@gmail.com wrote: 'require' returning false just means that it has already been required;

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 notet...@gmail.com wrote: try sudo gem install rb-appscript On Thu, Feb 11, 2010 at 11:02, Moises Siles moises.si...@gmail.com wrote: so, what should I do to solve this? Thanks On Thu, Feb 11,

[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 thurman_m...@yahoo.com wrote: Hi, I have another question about the verify

[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 Matt
Thanks Tiffany! On Feb 11, 11:28 am, Tiffany Fodor tcfo...@comcast.net 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 

[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

[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

[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 reed.a...@gmail.com wrote: Error is either Nil, or an error saying element not found depending on my

[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: 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,

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.

[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 notet...@gmail.com wrote: The difference between firefox and IE generally being on whitespace,