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 is inheriting from TestCase but has no tests
defined since test methods called by TestCase need to be defined by using
test at the beginning of the method name.

Here's a quick hack to your example though I may be missing the actual jist
of what you're attempting to do.

require 'watir'
include Watir
require 'test/unit'
require 'test/unit/ui/console/testrunner'
#require 'win32ole'  #already loaded by watir
class MaintestManage  < Test::Unit::TestCase
   def setup
 $ie = IE.start('www.xxx.com)# moving this into the setup
method
   end
   def test_manage   # removed main from the beginning so
it's a test case
  mt = MainTestAPI::MainTest.new
   mt.test1()
   mt.test2() # this test does nothing
   mt.test3()
   end
   def teardown# adding ie.close to the teardown, since
you're calling all your tests in the main test anyhow
  $ie.close
  sleep 1
   end
end
module MaintestAPI   # module names like class names begin with
a capital letter
 class MainTest# classes begin with capital letter,
removed previous class name from your method definitions, not necessary
   def test1()
 $ie.text_field(:id, 'UserID').set('ABCD1234')
 $ie.text_field(:id, PWD).set('123456')
 $ie.button(:id, 'Login').click
   end
   def test2()

   end
   def test3()
 $ie.link(:url, 'Logout.aspx').click
   end
 end
end


Hopefully this help explain some things, or if not maybe explain your
reasoning behind your particular version.

-Charley


On 4/19/07, vamsi <[EMAIL PROTECTED]> wrote:


Hi,

Getting an Calling fuction error  Please find the script and error
message below.

require 'watir'
include Watir
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'win32ole'
class maintestManage  < Test::Unit::TestCase
def maintestManage
maintest.test1()
maintest.test2()
maintest.test3()
end
end
module maintestAPI
   class maintest
def maintest.test1()
$ie = IE.new
$ie.goto('www.xxx.com)
$ie.text_field(:id, 'UserID').set('ABCD1234')
$ie.text_field(:id, PWD).set('123456')
$ie.button(:id, 'Login').click
end
def maintest.test2()

end
def maintest.test3()
$ie.link(:url, 'Logout.aspx').click
$ie.close
end
end
end


Error Message:  1) Failure:
default_test(maintestManage) [maintestmanagesignonAPI.rb:28]:
No tests were specified.


Kindly help me into this
Thansk in Advance.

Regards
Vamsi
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] (no subject)

2007-04-19 Thread Prema Arya

Cool!!
Thanks a lot.



On 4/20/07, Christopher Rasch <[EMAIL PROTECTED]> wrote:


Hi,

I've put a tutorial describing how I got Firewatir (firewatir-1.0.2)
working with Firefox (version 2.0.0.3)  on my Mac OS X Tiger (Intel) box
here:

http://crasch.livejournal.com/550521.html

Suggestions for improvement are welcome.

Chris
--
Christopher Rasch
[EMAIL PROTECTED]

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general





--
Prema Arya
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

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

2007-04-19 Thread vamsi
Hi,

Getting an Calling fuction error  Please find the script and error message 
below.

require 'watir'
include Watir
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'win32ole'
class maintestManage  < Test::Unit::TestCase
def maintestManage
maintest.test1()
maintest.test2()
maintest.test3()
end
end
module maintestAPI
   class maintest
def maintest.test1()
$ie = IE.new
$ie.goto('www.xxx.com)
$ie.text_field(:id, 'UserID').set('ABCD1234')
$ie.text_field(:id, PWD).set('123456')
$ie.button(:id, 'Login').click
end
def maintest.test2()

end
def maintest.test3()
$ie.link(:url, 'Logout.aspx').click
$ie.close
end
end
end


Error Message:  1) Failure:
default_test(maintestManage) [maintestmanagesignonAPI.rb:28]:
No tests were specified.


Kindly help me into this
Thansk in Advance.

Regards
Vamsi
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] How to save file via File download dialog

2007-04-19 Thread jhe
Dear all,

 

I need to download a file, it popup a dialog when click the link,

 



 

 

I use the following code to do it,

---

def test_d

$ie.goto(@@test_site + "/cgi-bin/summary.cgi")

$ie.button(:caption, "Save").click_no_wait

sleep 0.4

assert dialog.exists? 

sleep 0.4

dialog.button('Save').click

end

---

 

But it stops at the line:  assert dialog.exists? 

It output this message:  is not true.

 

 

Can anybody know how to click the button and save the download file?

Thanks in advance.

 

Regards,

Jason

 

<>
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] watir unit tests

2007-04-19 Thread Bernard Kenik
I have installed  Watir gem 1.5.1.1164  (actually 1165)

results of core_tests.rb
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1164\unittests>core_tests.rb
Loaded suite 
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/core_tests
Started



Finished in 151.25 seconds.

202 tests, 1121 assertions, 0 failures, 0 errors


results of non_core_tests.rb

21 tests, 1 assertions, 1 failures, 30 errors
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/../watir.rb:1721:in 
`method_missing': unknown property or method `quit' (WIN32OLERuntimeError)
HRESULT error code:0x800706ba
   The RPC server is unavailable.from 
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/../watir.rb:1721:in 
`close'
from 
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/../unittests/setup.rb:3
from c:/ruby/lib/ruby/1.8/test/unit.rb:278


typical error message:

 31) Error:
test_simple(TC_PopUps):
WIN32OLERuntimeError: unknown property or method `navigate'
HRESULT error code:0x800706ba
  The RPC server is unavailable.

C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/../watir.rb:1687:in 
`method_missing'

C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/../watir.rb:1687:in 
`goto'

C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/../unittests/popups_test.rb:11:in
 
`setup'

Question: Am I missing in my Watir installation?

#
Results of open_close_tests.rb

C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1164\unittests>open_close_tests.rb
Loaded suite 
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/open_close_tes
ts
Started
.
Finished in 64.407 seconds.

1 tests, 20 assertions, 0 failures, 0 errors
#
Results of  xpath_tests.rb

C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1164\unittests>xpath_tests.rb
Loaded suite 
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/unittests/xpath_tests
Started
/*** snip */
Finished in 102.594 seconds.

###
Results of window_tests.rb
Hangs when the "Press a button" dialog shows up.

92 tests, 393 assertions, 0 failures, 0 errors

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] click not clicking?

2007-04-19 Thread Peter Gits \(pgits\)

Paul Rogers thanks for the quick turn-around on this, you were correct.


Cheers,

Peter M. Gits


 


Re: [Wtr-general] click not clicking?


Paul Rogers
Thu, 19 Apr 2007 14:23:41 -0700

looks to me like you are clicking the table cell, but the thing you want
to 
click is the link in that cell.

try this

nested5[3][2].link(:index,1).click

In the irb, 
 
I have successfully traversed down to the table item that I wish to
click on, I can flash it properly, but I can't seem to get the 'click'
method to succeed?  Perhaps I need to restart irb and get back to the
appropriate spot in case something got messed up.
 
Here is the raw html


 



Registration & Records





 

anything special that I am missing?

 

nested5 = ie.table(:index, 6)

=> #, @down_load_time=0.032,
@error_checkers=[#],
@defau
tSleepTime=0.1, @activeObjectHighLightColor="yellow",
@enable_spinner=false, @u
l_list=[""], @pageHasReloaded=false, @logger=#, @dev=#>, @formatter=nil,
@default_formatter=#>,
@typingspeed=0.08, @f
rm=nil>, @originalColor=nil, @o=#>


=> nil
irb(main):127:0> nested5[3][2].click()
=> ""
irb(main):128:0> nested5[3][2].click
=> ""
irb(main):129:0> nested5[3][2].focus
=> nil
irb(main):130:0> nested5[3][2].focus()
=> nil
irb(main):131:0> nested5[3][2].fireEvent("onClick")
=> ""
irb(main):132:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):133:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):134:0> nested5[3][2].fireEvent("onFocus")
=> ""
irb(main):135:0> nested5[3][2].click
=> ""

It flashes, does the fireEvent, but doesn't change the page?

Cheers,

 

Peter


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] (no subject)

2007-04-19 Thread Christopher Rasch
Hi,

I've put a tutorial describing how I got Firewatir (firewatir-1.0.2)
working with Firefox (version 2.0.0.3)  on my Mac OS X Tiger (Intel) box
here:

http://crasch.livejournal.com/550521.html

Suggestions for improvement are welcome.

Chris 
-- 
  Christopher Rasch
  [EMAIL PROTECTED]

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] How to install Firewatir on Mac OS X Tiger (Intel)

2007-04-19 Thread Christopher Rasch
Hi,

I've put a tutorial describing how I got Firewatir (firewatir-1.0.2)
working with Firefox (version 2.0.0.3)  on my Mac OS X Tiger (Intel) box
here:

http://crasch.livejournal.com/550521.html

Suggestions for improvement are welcome.

Chris 
-- 
  Christopher Rasch
  [EMAIL PROTECTED]

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] unknown property or method `readyState'

2007-04-19 Thread Bret Pettichord
Adam Reed wrote:
> You know, I've been user the older dev version of watir and just started
> receiving this error two days ago.  Older scripts that were working
> fine, all of a sudden stall out indefinitely, and give the readyState
> error when I abort them.  I just upgraded to 1165 today, and still have
> the same problem.
>
> The page I am browsing uses no frames (all divs).  I've also found that
> a simple script such as one that goes to 10 different urls, with no
> validations, assertions or other processing crashes after the fourth
> link.  It doesn't seem to matter what this fourth URL is (ie, not a
> problem with the page itself, it can be anything).
>
> WIN32OLERuntimeError: Unknown property or method 'readyState'
>   HRESULT error code:0x800706ba
>The RPC server is unavailable
>   ...watir.rb:1669:in 'method_missing'
>   ...watir.rb:1669:in 'wait'
>   ...watir.rb:1551:in 'goto'
>
> Any answers on this yet?
>
> Adam
>   
My understanding it that this problem was introduced in build 
1.5.1.1158. Previous build 1.5.1.1145 does not show this problem.

Specifically I introduced it when i committed the recursive frames patch 
from bug 107

Here are the comments i made when i made this fix:

Fix by Xavier Noria for http://jira.openqa.org/browse/WTR-107
I made a few additional changes to Xavier's patch: most dramatically
i also removed the
pre-existing rescue block, which did not make sense to me.
I wish we had unit tests for this, but we don't. I decided that it
was worth the risk...

Well, clearly, the risk was more than i realized at the time.

At the same time, if you are getting an RPC server unavailable error, 
then there is nothing i can do to fix it. To me, I have seen happen 
after you close an IE window. Unfortunately IE#close is asynchronous and 
thus unreliable. I don't use it personally, instead preferring to use 
IE#kill which is in contrib and currently untested. Maybe it is time to 
promote it.

Could anyone who is getting these errors, please post the stack traces, 
like Adam. This is a hard problem to fix because it is intermittent and 
we can only really guess as to whether we really understand your problem.

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Accessing an id element with a table

2007-04-19 Thread Paul Rogers
The table CELL has an id.

I think you can click a cell directly

ie.cell(:id , 'idonfo').click


I have finally found my Table cell that I want to click:
 
ie.table(:index,8)[3][5].click
 
However, this TD has an id, and when I try to access it by id like this:
ie.table(:id,'idinfo').click
watir/ruby cannot find the element, can anyone tell me the correct way
to get to this element by id?
 
I tried this too: ie.((table(:index,8)[3][5]))(:id,"idinfo').click
Russ
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] click not clicking?

2007-04-19 Thread Paul Rogers
looks to me like you are clicking the table cell, but the thing you want to 
click is the link in that cell.

try this

nested5[3][2].link(:index,1).click
In the irb, 
 
I have successfully traversed down to the table item that I wish to
click on, I can flash it properly, but I can't seem to get the 'click'
method to succeed?  Perhaps I need to restart irb and get back to the
appropriate spot in case something got messed up.
 
Here is the raw html


 



Registration & Records





 

anything special that I am missing?

 

nested5 = ie.table(:index, 6)

=> #, @down_load_time=0.032,
@error_checkers=[#],
@defau
tSleepTime=0.1, @activeObjectHighLightColor="yellow",
@enable_spinner=false, @u
l_list=[""], @pageHasReloaded=false, @logger=#, @dev=#>, @formatter=nil,
@default_formatter=#>,
@typingspeed=0.08, @f
rm=nil>, @originalColor=nil, @o=#>


=> nil
irb(main):127:0> nested5[3][2].click()
=> ""
irb(main):128:0> nested5[3][2].click
=> ""
irb(main):129:0> nested5[3][2].focus
=> nil
irb(main):130:0> nested5[3][2].focus()
=> nil
irb(main):131:0> nested5[3][2].fireEvent("onClick")
=> ""
irb(main):132:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):133:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):134:0> nested5[3][2].fireEvent("onFocus")
=> ""
irb(main):135:0> nested5[3][2].click
=> ""

It flashes, does the fireEvent, but doesn't change the page?

Cheers,

 

Peter

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] click not clicking?

2007-04-19 Thread Peter Gits \(pgits\)
In the irb, 
 
I have successfully traversed down to the table item that I wish to
click on, I can flash it properly, but I can't seem to get the 'click'
method to succeed?  Perhaps I need to restart irb and get back to the
appropriate spot in case something got messed up.
 
Here is the raw html


 



Registration & Records





 

anything special that I am missing?

 

nested5 = ie.table(:index, 6)

=> #, @down_load_time=0.032,
@error_checkers=[#],
@defau
tSleepTime=0.1, @activeObjectHighLightColor="yellow",
@enable_spinner=false, @u
l_list=[""], @pageHasReloaded=false, @logger=#, @dev=#>, @formatter=nil,
@default_formatter=#>,
@typingspeed=0.08, @f
rm=nil>, @originalColor=nil, @o=#>


=> nil
irb(main):127:0> nested5[3][2].click()
=> ""
irb(main):128:0> nested5[3][2].click
=> ""
irb(main):129:0> nested5[3][2].focus
=> nil
irb(main):130:0> nested5[3][2].focus()
=> nil
irb(main):131:0> nested5[3][2].fireEvent("onClick")
=> ""
irb(main):132:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):133:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):134:0> nested5[3][2].fireEvent("onFocus")
=> ""
irb(main):135:0> nested5[3][2].click
=> ""

It flashes, does the fireEvent, but doesn't change the page?

Cheers,

 

Peter

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Accessing an id element with a table

2007-04-19 Thread Željko Filipin

Hi Russ,

Try

ie.cell(:id,'idinfo').click

Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Accessing an id element with a table

2007-04-19 Thread Russ DeWolfe
I have finally found my Table cell that I want to click:
 
ie.table(:index,8)[3][5].click
 
However, this TD has an id, and when I try to access it by id like this:
ie.table(:id,'idinfo').click
watir/ruby cannot find the element, can anyone tell me the correct way
to get to this element by id?
 
I tried this too: ie.((table(:index,8)[3][5]))(:id,"idinfo').click
Russ
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] unknown property or method `readyState'

2007-04-19 Thread Adam Reed
You know, I've been user the older dev version of watir and just started
receiving this error two days ago.  Older scripts that were working
fine, all of a sudden stall out indefinitely, and give the readyState
error when I abort them.  I just upgraded to 1165 today, and still have
the same problem.

The page I am browsing uses no frames (all divs).  I've also found that
a simple script such as one that goes to 10 different urls, with no
validations, assertions or other processing crashes after the fourth
link.  It doesn't seem to matter what this fourth URL is (ie, not a
problem with the page itself, it can be anything).

WIN32OLERuntimeError: Unknown property or method 'readyState'
  HRESULT error code:0x800706ba
   The RPC server is unavailable
  ...watir.rb:1669:in 'method_missing'
  ...watir.rb:1669:in 'wait'
  ...watir.rb:1551:in 'goto'

Any answers on this yet?

Adam

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bach Le
Sent: Wednesday, April 18, 2007 7:44 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] unknown property or method `readyState'

Hi Charley, 

I just installed 1165 today and I have noticed the same error that was
mentioned in this thread. The error revolves around the following piece
of code:


  documents_to_wait_for = [EMAIL PROTECTED]
  while doc = documents_to_wait_for.shift
  until doc.readyState == "complete" 
sleep 0.2; s.spin
  end

and specific the line that says doc.readyState. The page I am testing
has lots of frames and this is possibly what is causing this error. It
usually says 'method_missing' when it executes this line and crashes the
entire script. 

I've also only noticed it when the page I am testing is running a bit
slow


-Bach
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir and smartclient

2007-04-19 Thread Sergio Pinon
I was looking for that. I didn't see that message in my list. I must
have accidentally deleted it. Thanks Adam.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Reed
Sent: Thursday, April 19, 2007 8:16 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir and smartclient

Sadeesh sent this to the list yesterday:

Hi,

Can we use Watir for testing applications developed using smartclient.
(Smartclient will use javascript elements instead of HTML elements.)

Thanks,
Sadeesh Vinoth T
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sergio Pinon
Sent: Thursday, April 19, 2007 9:33 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir and smartclient

What is that you are looking for help with?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sadeesh Vinoth
Sent: Thursday, April 19, 2007 7:28 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir and smartclient

Can anyone help me.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir and smartclient

2007-04-19 Thread Adam Reed
Sadeesh sent this to the list yesterday:

Hi,

Can we use Watir for testing applications developed using smartclient.
(Smartclient will use javascript elements instead of HTML elements.)

Thanks,
Sadeesh Vinoth T
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sergio Pinon
Sent: Thursday, April 19, 2007 9:33 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir and smartclient

What is that you are looking for help with?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sadeesh Vinoth
Sent: Thursday, April 19, 2007 7:28 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir and smartclient

Can anyone help me.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir and smartclient

2007-04-19 Thread Sergio Pinon
What is that you are looking for help with?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sadeesh Vinoth
Sent: Thursday, April 19, 2007 7:28 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir and smartclient

Can anyone help me.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir and smartclient

2007-04-19 Thread Angrez Singh

Hi Sadeesh,

Is it possible for you to post the sample output as in how it looks?
Certainly looking at the output one could be able to help in telling whether
you can use Watir for testing or not.

Regards,
Angrez

On 4/19/07, Sadeesh Vinoth <[EMAIL PROTECTED]> wrote:


Can anyone help me.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir and smartclient

2007-04-19 Thread Sadeesh Vinoth
Can anyone help me.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] problem in attaching to browser using FireWatir

2007-04-19 Thread Angrez Singh

Hi Vikash,

As of now you can't do that in Firewatir. You can only attach to windows
using an instance of Firefox. This is by design as we have to maintain all
the browser instances that are currently opened and close them accordingly.
Will try to come up with a solution which works like Watir but as of now you
can't do that.

Regards,
Angrez

On 4/19/07, VIKASH KUMAR <[EMAIL PROTECTED]> wrote:


 Hi Angrez,

My requirement is to just attach the script to some already open browser
as we can attach to some already open page in watir viz.  ie = Watir::
IE.attach(:title,"Google"), I have open that browser manually.
Thanks & Regards,
Vikash


>Hi Vikash,
>Can you please clarify what you want to do? What I think is, there is a
>browser and you want to attach to it? Correct?
>But how you open that browser is my question?
>Regards,
>Angrez
>> I am trying to attach to a browser using title, If I am using watir, I
can
>> just attach to a browser using:
>> require 'watir'
>> ie = Watir::IE.attach(:title,"Google")
>> But, In case of firewatir, I am facing problem, i.e. when I use :
>> require 'firewatir'
>> ff = FireWatir::Firefox.attach(:title,"Google")
>> I am getting the below error message:
>> NoMethodError: undefined method `attach' for FireWatir::Firefox:Class
>> But, with some changes with the code I can attach to some another
browser:
>> require 'firewatir'
>> ff = FireWatir::Firefox.start("www.yahoo.com";)
>> ff_new = ff.attach(:title,"Google")
>> But, I don't want to open a browser, my requirement is to just attach
to
>> the existing browser, is there is some way of doing this, as we can do
with
>> "watir".
>> Please, help me out.
>> Thanks in advance
>> Vikash

--
Check out what you're missing if you're not on Yahoo! 
Messenger

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to verify the values in the tages

2007-04-19 Thread Michael Bolton
I wonder about that--Test::Unit doesn't spell the word "acutal", does it?
Also, if what Vamsi has rendered below has been transcribed accurately, the
comma before "data" in the assert_match line would screw things up.

Vamsi--is that message copied and pasted from the screen by using the
Windows clipboard, or are you reading it and typing it into your message?
On the other hand, the purpose of using Watir is to find problems.  When we
can't "make something work" under Watir, it's worth considering the idea
that we might have found a bug in the application under test--right?

---Michael B.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon
Sent: April 17, 2007 11:56 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] How to verify the values in the tages

>def test_crlf

>data = "first line

>second line"

>assert_match(,data, /first line\s+second line/) end end

>error: "first line\r\n\r\nsecond line" expected but acutal was "/fist
line\s+secondling/"

Your application has badly misspelled the message to the user.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general