[wtr-general] How to enter values in text field present in forms

2008-12-02 Thread Divya

Hi,
How to enter values in text field present in forms?

I tried
ie.form(:name, 'phone').set(record['mobilenumber'])

please let me know
thanks
divya

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to enter values in text field present in forms

2008-12-02 Thread Tony

Hi Divya,

Use the text_field to identify the object directly.
ie.text_field(:name, phone).set(record['mobilenumber'])

-Tony
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105

Hi Friends,

I got the solution, when i run the code it returns the TableCell only
not the string. Then i modified the code as below
and works well.

real = ie.frame(:id,wfFrame).table
(:id,lkpTradingPartnerType_LkpTblRows) [2] [1]
list  = ie.frame(:id,wfFrame).table
(:id,lkpTradingPartnerType_LkpTblRows) [3] [1]

if real.to_s == AO  list.to_s == HQ
  puts real
  puts list
  puts Pass
  else
putsFail
puts real
puts list
  end

Thanks,
Prince3105


On Dec 2, 2:01 pm, Prince3105 [EMAIL PROTECTED] wrote:
 Thanks for your reply, When i use first method it returns,

 'AO'
 'HQ'

 When i use length method it returns one error

 ADM0005.rb:20: undefined method `length' for #Watir::TableCell:
 0x41bc250 (NoMethodError)

 But i insert one code below like

 a = abcd
 puts a.length

 it returns the correct answer 4. Totally i confused.. Please post a
 positive way..

 Thanks,
 Prince3105

 On Dec 2, 1:09 pm, LFIdnl [EMAIL PROTECTED] wrote:

  Or you can execute puts real.length; puts list.length . That shows you
  what the length of stings

  On 2 дек, 11:07, LFIdnl [EMAIL PROTECTED] wrote:

   May be your variable 'real' and 'list' have another not visible
   character like as whitespace. Try exucuite puts '#{real}'; puts '#
   {list}' . Result should be in apostrophies.

   On 2 дек, 10:12, Prince3105 [EMAIL PROTECTED] wrote:

Hi Experts,

I am totally new to Ruby and Watir. Before i was using QTP with
VBscript. Today i have encountered a various problem. I have used
below code to retrieve cell value from a table then i have to check
these values with the actual value.

version
Ruby  - 1.8.6-26 Final Release
Watir  - Watir 1.6.0

real = ie.frame(:id,wfFrame).table
(:id,lkpTradingPartnerType_LkpTblRows) [2] [1]
list  = ie.frame(:id,wfFrame).table
(:id,lkpTradingPartnerType_LkpTblRows) [3] [1]

puts real
puts list

if real == AO  list == HQ
   puts real
   puts list
   puts Pass
else
    putsFail
    puts real
    puts list
end

Test gets fail and i wondering about below result.

ruby ADM0005.rb

AO
HQ
Fail
AO
HQ

Exit code: 0

If any error on my code please let me know, if any other easy and
effective way available please reply.

Thanks,

Prince3105
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



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

2008-12-02 Thread Darin Duphorn

I've tried both copying it from and entering manually and I'm always getting 'à'

I've also tried this in the ruby code and it didn't work .gsub('à'.'...')

Thanks though.

I've asked the developers to remove the ... from the word.  






-Original Message-
From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Alex Collins
Sent: Tuesday, December 02, 2008 1:40 AM
To: watir-general@googlegroups.com
Cc: watir-general@googlegroups.com
Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. 
Value is retrieved from excel cell


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 into Excel from a plain text editor - notepad  
for example.

On 1 Dec 2008, at 22:29, Darin Duphorn [EMAIL PROTECTED]  
wrote:


 The value in the listbox is displayed as Filter by Coach...

 selected=selected
 Filter by Coach.../option

 The problem seems to be when I read the value from a excel cell it  
 contains á.



 -Original Message-
 From: watir-general@googlegroups.com [mailto:watir-general@googlegroups.com 
 ] On Behalf Of Chuck vdL
 Sent: Monday, December 01, 2008 4:27 PM
 To: Watir General
 Subject: [wtr-general] Re: Unable to find the value blah... within  
 a listbox. Value is retrieved from excel cell


 Can you show us the HTML that defines the listbox and its items?

 On Dec 1, 2:24 pm, Darin Duphorn [EMAIL PROTECTED]
 wrote:
 The actuall value is Filter by Coach...

 The ... That follow the work coach are displaying as á.

 I believe in excel that ... Means á

 Not sure though.



 -Original Message-
 From: watir-general@googlegroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Chuck vdL
 Sent: Monday, December 01, 2008 4:18 PM
 To: Watir General
 Subject: [wtr-general] Re: Unable to find the value blah...  
 within a
 listbox. Value is retrieved from excel cell

 Is 'Blah the actual value defined in the HTML for that listbox  
 item, or is perhaps the browser UI visually truncating something  
 longer down to what will fit in available space  for the way the  
 listbox is defined?

 On Dec 1, 1:11 pm, Moochie [EMAIL PROTECTED] wrote:
 For some reason when I attempt to find a value in a listbox that
 contains three dots it doesn't find the value.

 Has anyone else seen this?

 Thanks,

 Darin- Hide quoted text -

 - Show quoted text -



 




--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Security Information pop-up turns up two times, how to deal with the input between the two pop-up turning up?

2008-12-02 Thread wesley chen
I tried both your suggestion, but it doesn't work.

Thanks.
Wesley Chen.

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Not able to use text from the web pages

2008-12-02 Thread Darin Duphorn


Will this work?

ie.text_field(:name, autoGenId) = tempValue

Is the code within the same .rb file?  Are you passing tempValue
correctly?


-Original Message-
From: watir-general@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jaggi
Sent: Tuesday, December 02, 2008 8:05 AM
To: Watir General
Subject: [wtr-general] Not able to use text from the web pages


Hi,

I am having problem while using the values from one page to next page

Here are the commands I am using to get the values from the table and
putting it to a variable
puts ie.frame(rightFrame).table(:id,TableView)[1][2]
tempValue = ie.frame(rightFrame).table(:id,TableView)[1][2]
puts tempValue

here I am able to see the values with the help of puts...

50001
50001

After this I am navigating the next page where I have to fill the
value from tempValue but when I am trying to use the tempValues on the
next page then Watir is not able to recognize the variable...

The way I am trying to use the values shown below-
ie.text_field(:name, autoGenId).value = tempValue # autoGenId is
the auto generated id for the user

And below I got to know from the earlier threads...
ie.text_field(:name, autoGenId).set(*tempValue .to_s*) #
tempValue is the auto generated id for the user

Both are not working for me. :-(

Please help here.

Thanks,
Jaggi




--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] FireWatir: Link click error

2008-12-02 Thread Girish Jindal
Hello,

I am facing an issue using  FireWatir. FireWatir is not able to click the
link: *ff.link(:text, Sign Out).click*. I am using Watir 1.6.1

It is throwing exception
  1) Error:
test_AccountOverview(Accounts):
FireWatir::Exception::UnknownObjectException: Unable to locate object, using
url and http://aaa3/client/AcctOverview.aspx

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:866:in
`assert_exists'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:1019:in
`click'
C:/WS/OLB/test-Multi/Accounts.rb:25:in `test_AccountOverview'


Does anyone know why I am getting this error? How can I fixed?

Thank you very much!
Regards
Girish

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Not able to identify object

2008-12-02 Thread Tony

Hi Divya,

ie.textField(:name, 'phone').set(9123456789) ... looks wrong
Should be ie.text_field(:name, 'phone').set(9123456789) or
ie.text_field(:name, 'phone').value = 9123456789

You could also use value.. not sure on the others.

-Tony
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Not able to identify object

2008-12-02 Thread Divya

Hi
Iam divya from bangalore

My watir code is like this:
ie = IE.new
ie.focus
ie.goto(record['url'])
ie.maximize
ie.wait()
ie.textField(:name, 'phone').set(9123456789)


And view source is like this:
Mobile Number:
br/
input type=text name=phone maxlength=11 
size=11 value=
AUTOCOMPLETE=OFF style=-wap-input-format:'*N' /
br/
PIN:
br/
!-- Either 4 or 6 digits --
input type=password name=pin maxlength=6 
size=6 style=-
wap-input-format:'*N' /
br/

I was not able to identify the object based on name phone and pin in
my script.
Message displayed as Unable to lovate element using name

Please help me in this regard



--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: operator not working

2008-12-02 Thread LFIdnl

Or you can execute puts real.length; puts list.length . That shows you
what the length of stings

On 2 дек, 11:07, LFIdnl [EMAIL PROTECTED] wrote:
 May be your variable 'real' and 'list' have another not visible
 character like as whitespace. Try exucuite puts '#{real}'; puts '#
 {list}' . Result should be in apostrophies.

 On 2 дек, 10:12, Prince3105 [EMAIL PROTECTED] wrote:

  Hi Experts,

  I am totally new to Ruby and Watir. Before i was using QTP with
  VBscript. Today i have encountered a various problem. I have used
  below code to retrieve cell value from a table then i have to check
  these values with the actual value.

  version
  Ruby  - 1.8.6-26 Final Release
  Watir  - Watir 1.6.0

  real = ie.frame(:id,wfFrame).table
  (:id,lkpTradingPartnerType_LkpTblRows) [2] [1]
  list  = ie.frame(:id,wfFrame).table
  (:id,lkpTradingPartnerType_LkpTblRows) [3] [1]

  puts real
  puts list

  if real == AO  list == HQ
     puts real
     puts list
     puts Pass
  else
      putsFail
      puts real
      puts list
  end

  Test gets fail and i wondering about below result.

  ruby ADM0005.rb

  AO
  HQ
  Fail
  AO
  HQ

  Exit code: 0

  If any error on my code please let me know, if any other easy and
  effective way available please reply.

  Thanks,

  Prince3105
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



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

2008-12-02 Thread Darin Duphorn

I've figured it out.

There is a setting within excel that converts ... to ellipses. 

To remove this setting goto Tool- AutoCorrect Options... and removed the ... 
to ... conversion.

Darin



-Original Message-
From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Darin Duphorn
Sent: Tuesday, December 02, 2008 8:28 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. 
Value is retrieved from excel cell


I've tried both copying it from and entering manually and I'm always getting 'à'

I've also tried this in the ruby code and it didn't work .gsub('à'.'...')

Thanks though.

I've asked the developers to remove the ... from the word.  






-Original Message-
From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Alex Collins
Sent: Tuesday, December 02, 2008 1:40 AM
To: watir-general@googlegroups.com
Cc: watir-general@googlegroups.com
Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. 
Value is retrieved from excel cell


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 into Excel from a plain text editor - notepad  
for example.

On 1 Dec 2008, at 22:29, Darin Duphorn [EMAIL PROTECTED]  
wrote:


 The value in the listbox is displayed as Filter by Coach...

 selected=selected
 Filter by Coach.../option

 The problem seems to be when I read the value from a excel cell it  
 contains á.



 -Original Message-
 From: watir-general@googlegroups.com [mailto:watir-general@googlegroups.com 
 ] On Behalf Of Chuck vdL
 Sent: Monday, December 01, 2008 4:27 PM
 To: Watir General
 Subject: [wtr-general] Re: Unable to find the value blah... within  
 a listbox. Value is retrieved from excel cell


 Can you show us the HTML that defines the listbox and its items?

 On Dec 1, 2:24 pm, Darin Duphorn [EMAIL PROTECTED]
 wrote:
 The actuall value is Filter by Coach...

 The ... That follow the work coach are displaying as á.

 I believe in excel that ... Means á

 Not sure though.



 -Original Message-
 From: watir-general@googlegroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Chuck vdL
 Sent: Monday, December 01, 2008 4:18 PM
 To: Watir General
 Subject: [wtr-general] Re: Unable to find the value blah...  
 within a
 listbox. Value is retrieved from excel cell

 Is 'Blah the actual value defined in the HTML for that listbox  
 item, or is perhaps the browser UI visually truncating something  
 longer down to what will fit in available space  for the way the  
 listbox is defined?

 On Dec 1, 1:11 pm, Moochie [EMAIL PROTECTED] wrote:
 For some reason when I attempt to find a value in a listbox that
 contains three dots it doesn't find the value.

 Has anyone else seen this?

 Thanks,

 Darin- Hide quoted text -

 - Show quoted text -



 







--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105

Thanks Tony for your solution, it works...


Thanks,
Prince3105

On Dec 2, 2:34 pm, Prince3105 [EMAIL PROTECTED] wrote:
 Hi Friends,

 I got the solution, when i run the code it returns the TableCell only
 not the string. Then i modified the code as below
 and works well.

 real = ie.frame(:id,wfFrame).table
 (:id,lkpTradingPartnerType_LkpTblRows) [2] [1]
 list  = ie.frame(:id,wfFrame).table
 (:id,lkpTradingPartnerType_LkpTblRows) [3] [1]

 if real.to_s == AO  list.to_s == HQ
   puts real
   puts list
   puts Pass
   else
     putsFail
     puts real
     puts list
   end

 Thanks,
 Prince3105

 On Dec 2, 2:01 pm, Prince3105 [EMAIL PROTECTED] wrote:

  Thanks for your reply, When i use first method it returns,

  'AO'
  'HQ'

  When i use length method it returns one error

  ADM0005.rb:20: undefined method `length' for #Watir::TableCell:
  0x41bc250 (NoMethodError)

  But i insert one code below like

  a = abcd
  puts a.length

  it returns the correct answer 4. Totally i confused.. Please post a
  positive way..

  Thanks,
  Prince3105

  On Dec 2, 1:09 pm, LFIdnl [EMAIL PROTECTED] wrote:

   Or you can execute puts real.length; puts list.length . That shows you
   what the length of stings

   On 2 дек, 11:07, LFIdnl [EMAIL PROTECTED] wrote:

May be your variable 'real' and 'list' have another not visible
character like as whitespace. Try exucuite puts '#{real}'; puts '#
{list}' . Result should be in apostrophies.

On 2 дек, 10:12, Prince3105 [EMAIL PROTECTED] wrote:

 Hi Experts,

 I am totally new to Ruby and Watir. Before i was using QTP with
 VBscript. Today i have encountered a various problem. I have used
 below code to retrieve cell value from a table then i have to check
 these values with the actual value.

 version
 Ruby  - 1.8.6-26 Final Release
 Watir  - Watir 1.6.0

 real = ie.frame(:id,wfFrame).table
 (:id,lkpTradingPartnerType_LkpTblRows) [2] [1]
 list  = ie.frame(:id,wfFrame).table
 (:id,lkpTradingPartnerType_LkpTblRows) [3] [1]

 puts real
 puts list

 if real == AO  list == HQ
    puts real
    puts list
    puts Pass
 else
     putsFail
     puts real
     puts list
 end

 Test gets fail and i wondering about below result.

 ruby ADM0005.rb

 AO
 HQ
 Fail
 AO
 HQ

 Exit code: 0

 If any error on my code please let me know, if any other easy and
 effective way available please reply.

 Thanks,

 Prince3105
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105

Thanks for your reply, When i use first method it returns,

'AO'
'HQ'

When i use length method it returns one error

ADM0005.rb:20: undefined method `length' for #Watir::TableCell:
0x41bc250 (NoMethodError)


But i insert one code below like

a = abcd
puts a.length

it returns the correct answer 4. Totally i confused.. Please post a
positive way..


Thanks,
Prince3105



On Dec 2, 1:09 pm, LFIdnl [EMAIL PROTECTED] wrote:
 Or you can execute puts real.length; puts list.length . That shows you
 what the length of stings

 On 2 дек, 11:07, LFIdnl [EMAIL PROTECTED] wrote:

  May be your variable 'real' and 'list' have another not visible
  character like as whitespace. Try exucuite puts '#{real}'; puts '#
  {list}' . Result should be in apostrophies.

  On 2 дек, 10:12, Prince3105 [EMAIL PROTECTED] wrote:

   Hi Experts,

   I am totally new to Ruby and Watir. Before i was using QTP with
   VBscript. Today i have encountered a various problem. I have used
   below code to retrieve cell value from a table then i have to check
   these values with the actual value.

   version
   Ruby  - 1.8.6-26 Final Release
   Watir  - Watir 1.6.0

   real = ie.frame(:id,wfFrame).table
   (:id,lkpTradingPartnerType_LkpTblRows) [2] [1]
   list  = ie.frame(:id,wfFrame).table
   (:id,lkpTradingPartnerType_LkpTblRows) [3] [1]

   puts real
   puts list

   if real == AO  list == HQ
      puts real
      puts list
      puts Pass
   else
       putsFail
       puts real
       puts list
   end

   Test gets fail and i wondering about below result.

   ruby ADM0005.rb

   AO
   HQ
   Fail
   AO
   HQ

   Exit code: 0

   If any error on my code please let me know, if any other easy and
   effective way available please reply.

   Thanks,

   Prince3105
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-02 Thread patrick

thanx for the response Bret. i will try and downgrade to ie6 and try
the same

patrick.

On Dec 2, 12:23 am, Bret Pettichord [EMAIL PROTECTED] wrote:
 This works for me, although I am using ie 6.0. I'm wondering if this is
 broken with ie 7. Can any one else try this out?

 Bret



 patrickwrote:
  hi,

  i am using the foll versions:

  win xp sp2
  ruby - 1.8.6
  watir - 1.6.2
  ie - 7.0

  my code is as follows:

  irb
  require watir
  browser = Watir::IE.start('http://www.google.com')
  browser.text_field(:name, 'q').set('Watir')
  browser.button(:name, 'btnG').click_no_wait

  however, the Google Search button is only highlighted. the button is
  not clicked and the subsequent page is not loaded. I know i can use
  click in this case, however the Click_no_wait is not working in any
  code on my pc. pls help.

 patrick.- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: operator not working

2008-12-02 Thread Tony

Hi,

Got the error -
real = ie.frame(:id,wfFrame).table
(:id,lkpTradingPartnerType_LkpTblRows) [2] [1]
The above statement returns an object of Watir::TableCell and the
length for this will not be the string length.
Maybe the == also is not working due to this.

Do the below
real = ie.frame(:id,wfFrame).table
(:id,lkpTradingPartnerType_LkpTblRows) [2] [1].to_s
list  = ie.frame(:id,wfFrame).table
(:id,lkpTradingPartnerType_LkpTblRows) [3] [1].to_s

to_s will convert to a string and this should compare properly.

-Tony

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] firefox on mac not quitting

2008-12-02 Thread Matthias Marschall

Hi,

I'm using firewatir 1.6.2 on Mac OS 10.5.5 with firefox 3.0.4.

browser = Watir::Browser.new

opens firefox as expected.

browser.close

closes the window opened before, but does not quit firefox.

Is there any way to make firewatir quit firefox? Currently, my watir
scripts never return as they seem to be waiting on firefox to exit.
Manually quitting firefox works but is a bad workaround.

Any ideas?

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to click the ► on the page?

2008-12-02 Thread al3kc

I guess you can click it as a simple cell using class atribute.

$browser.cell(:xpath, //[EMAIL PROTECTED] = 'className' ]).click

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: FireWatir: Link click error

2008-12-02 Thread Bret Pettichord

1. Your stack trace indicates that you are using FireWatir 1.2.0, not 1.6.1
2. Your stack trace error is inconsistent with the code you provide. 
Please double check the actual code on line 25 of Accounts.rb

Bret

Girish Jindal wrote:
 Hello,

 I am facing an issue using  FireWatir. FireWatir is not able to click 
 the link: *ff.link(:text, Sign Out).click*. I am using Watir 1.6.1

 It is throwing exception
   1) Error:
 test_AccountOverview(Accounts):
 FireWatir::Exception::UnknownObjectException: Unable to locate object, 
 using url and http://aaa3/client/AcctOverview.aspx
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:866:in 
 `assert_exists'
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:1019:in
  
 `click'
 C:/WS/OLB/test-Multi/Accounts.rb:25:in `test_AccountOverview'


 Does anyone know why I am getting this error? How can I fixed?

 Thank you very much!
 Regards
 Girish

 


--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firefox on mac not quitting

2008-12-02 Thread Bret Pettichord

Short answer: no.

Dave Hoover says this is browser.quit in SafariWatir. Similar is 
IE.close_all. We need to figure out what to do to be consistent.

Regardless, this problem should not be causing your scripts not to 
return. Can you provide more information? Something else may be happening.

Bret


Matthias Marschall wrote:
 Hi,

 I'm using firewatir 1.6.2 on Mac OS 10.5.5 with firefox 3.0.4.

 browser = Watir::Browser.new

 opens firefox as expected.

 browser.close

 closes the window opened before, but does not quit firefox.

 Is there any way to make firewatir quit firefox? Currently, my watir
 scripts never return as they seem to be waiting on firefox to exit.
 Manually quitting firefox works but is a bad workaround.

 Any ideas?

 
   


--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] tip of the day: puts does an implicit to_s

2008-12-02 Thread Bret Pettichord

In three separate threads recently, people have been confused because 
what they see with puts doesn't match with what they are testing in an 
if statement

e.g.

puts foo
hello

but

if foo == hello
  this_is_never_called
end


The problem stems from the fact that puts is actually

print(foo.to_s + \n)


Now you know.

Bret

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Clicking a javascript image

2008-12-02 Thread Jim

I am having problems clicking a javascript button.  Below is the code
used for the button:

a href=Javascript:doPost(document.pageForm, 'Update.m');
title=View Hotelsimg src=images/Arizona/button_viewhotels.gif
width=190 height=83 alt=View Hotels class=arrow //a

If I attempt to click the button using the title or alt, it returns an
error saying it cannot be found.

Any help with clicking this button (link) will be greatly appreciated.

thx

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Clicking a javascript image

2008-12-02 Thread Jim

Hmmm...I didn't think about using link and that did work.

Thanks for your help

On Dec 2, 10:37 am, Darin Duphorn [EMAIL PROTECTED]
wrote:
 Looks like it's a link.

 Are you using link or image?



 -Original Message-
 From: watir-general@googlegroups.com

 [mailto:[EMAIL PROTECTED] On Behalf Of Jim
 Sent: Tuesday, December 02, 2008 11:35 AM
 To: Watir General
 Subject: [wtr-general] Clicking a javascript image

 I am having problems clicking a javascript button.  Below is the code
 used for the button:

 a href=Javascript:doPost(document.pageForm, 'Update.m');
 title=View Hotelsimg src=images/Arizona/button_viewhotels.gif
 width=190 height=83 alt=View Hotels class=arrow //a

 If I attempt to click the button using the title or alt, it returns an
 error saying it cannot be found.

 Any help with clicking this button (link) will be greatly appreciated.

 thx- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to click the ► on the page?

2008-12-02 Thread Chuck vdL

There was another thread here in the last week on just this same sort
of thing.  try reading this thread, which I think had sample code and
all  http://groups.google.com/group/watir-general/browse_thread/
thread/fc0e667e13574a61?hl=en#

You'll need to fire the onclick event for that object, you can see in
the HTML section you hilighted in your screenshot that's what's
causing things to happen when the object is clicked

On Dec 2, 7:43 am, wesley chen [EMAIL PROTECTED] wrote:
 Please see the picture enclosed.
 There is an text arrow on the page, when click the icon, another table will
 turn up, but how to click such a text arrow?

 Any suggestion would be appreciated.

 Thanks.
 Wesley Chen.

  arrow2.jpg
 260KViewDownload
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firefox on mac not quitting

2008-12-02 Thread Richard Lawrence

I use appscript to quit Firefox like this:

in browserfactory.rb
---
require 'firewatir'
require 'appscript'

class BrowserFactory
  def get_new_browser
# close Firefox if it's running
if Appscript.app('System Events').processes['Firefox'].exists()
  Appscript.app('Firefox').quit
end

FireWatir::Firefox.new(:profile = 'firewatir')
  end

  def quit_browser
Appscript.app('Firefox').quit
  end
end


in some_cucumber_steps.rb, which requires browserfactory (implicitly,
thanks to cucumber)
---
Before do
  @browser_factory = BrowserFactory.new
  @b = @browser_factory.get_new_browser
end

After do
  @browser_factory.quit_browser
end

...


It would be nice if the APIs matched for the different flavors of
Watir, but for my current app, I'm only testing with FF on Mac, so
this works for me.

Richard

--
Richard Lawrence
Certified Scrum Coach
Founder and Principal Consultant, Humanizing Work, LLC
303-895-7688
[EMAIL PROTECTED]
www.humanizingwork.com
www.richardlawrence.info

On Tue, Dec 2, 2008 at 8:20 AM, Matthias Marschall
[EMAIL PROTECTED] wrote:

 Hi,

 I'm using firewatir 1.6.2 on Mac OS 10.5.5 with firefox 3.0.4.

 browser = Watir::Browser.new

 opens firefox as expected.

 browser.close

 closes the window opened before, but does not quit firefox.

 Is there any way to make firewatir quit firefox? Currently, my watir
 scripts never return as they seem to be waiting on firefox to exit.
 Manually quitting firefox works but is a bad workaround.

 Any ideas?

 


--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Updating RubyForge info for Watir?

2008-12-02 Thread Chuck vdL

Is this on the todo list?

I was just there and noticed that  the info still indicates it's
windows only, ie only, there's no release notice for 1.6.2 under
'latest news,  and is the development status still actually considered
to be 'beta' ?
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to click dijit button char

2008-12-02 Thread maven999

Chuck,

I agree with your comments. My intention was to figure out why dev
wrote the code that they did. However, I do see that coding
conventions are not always used consistently (for example, using a
drop-down list in some places and a dijit combo box elsewhere when
both are doing the same job). As you said, the purpose is to get dev
to explain his way of doing things so I can do my job better.

Thanks for your thoughts, I appreciate it! :)

On Dec 1, 1:30 pm, Chuck vdL [EMAIL PROTECTED] wrote:
 re having words with the developer..

 The dev probably has what they feel is a good reason for using the
 mouseup to select the item from the list..

 Except for instances were it affects testability, or performance, I
 generally try to stay away from telling the devs how to do their job
 (lest they tell me how to do mine) grin.

 OTOH if the purpose of the talk is to better understand how the dev
 thinks, so you can have an easier time coding your automation, well in
 that case have fun picking his brain and getting him to explain the
 conventions he's using for making the controls work etc.   just make
 sure s/he understands you are questioning to understand, not
 questioning their coding skills or methods..

 On Dec 1, 10:10 am, maven999 [EMAIL PROTECTED] wrote:

  Chuck, your guess was correct.

  The following code worked in that I was able to click the down button
  and cause the dropdown list to appear:

  $ie.div(:class, 'dijitDownArrowButtonInner').fire_event('onmousedown')

  But when I then try to select an item in the dropdown list,
  'onmousedown' does not work. But 'onmouseup' DOES work. I think its
  time to have a few words with the developer :-)

  Thanks to Chuck and Wesley for their help!

  On Nov 25, 4:37 pm, Chuck vdL [EMAIL PROTECTED] wrote:

   OK so we can't see what the functions called by them do, but it does
   look like there are 4 events getting defined..  have you tried using
   code to fire one of the events (onmousedown seems the most obvious
   candidate) to see if that makes the list appear?

   odds are after the mousedown, you're going to then have to fire some
   kind of mouseover event for a list item perhaps followed by another
   mousedown, or mouseup ..

   but without interacting with the site it's hard to tell (is it
   designed to click on the list, then click on the item, or as a click-
   drag-release?)

   just as a guess I'd expect the meat of the work to be done by
   mousedown events, while mouseover and others that seem to be calling
   '_onmouse' are probably just causing it to change colors for the
   illusion of focus being on the thing under the mouse.

   So if that's not enough to get you going in the right direction,
   please post a larger section of the page code (or point us at a
   similar page that is publically available) as Wesley requested.

   On Nov 24, 10:35 am, maven999 [EMAIL PROTECTED] wrote:

Hi Chuck,

Here is the preceding html which I should have included in my original
question:

tr class=dijitReset
td class=dijitReset dijitRight dijitButtonNode dijitDownArrowButton
dijitArrowButtonActive width=0%
dojoattachevent=onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseen--ter:_onMouse,onmouseleave:_onMouse
dojoattachpoint=downArrowNode
div class=dijitDownArrowButtonInner wairole=presentation
role=presentation
div class=dijitDownArrowButtonChar▼/div
/div
/td
/tr

Thanks!

On Nov 24, 12:44 pm, Chuck vdL [EMAIL PROTECTED] wrote:

 is there anything in the html that is defining something like an
 'onclick' for that thing?  all I see in the code above is basically
 just text..and normal text isn't clickable as far as I know.
 maybe there's some other object that's actually overlapping that
 button

 On Nov 21, 11:30 am, maven999 [EMAIL PROTECTED] wrote:

  Hi all,

  I have a drop down menu that can only be accessed by clicking on a
  down arrow character (▼) on the combo box. The html for the click
  location is pasted below:

  div class=dijitDownArrowButtonInner wairole=presentation
  role=presentation
  div class=dijitDownArrowButtonChar▼/div
  /div

  Flashing the button works:

  $ie.div(:class, 'dijitDownArrowButtonInner').flash

  But clicking it does not work:

  $ie.div(:class, 'dijitDownArrowButtonInner').click

  Any ideas? Also, since it is not a traditional select_list, how do I
  select an item when I do get the drop-down list to appear?

  Thanks!- Hide quoted text -

- Show quoted text -- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this 

[wtr-general] Re: Updating RubyForge info for Watir?

2008-12-02 Thread Bret Pettichord

Info has been updated to say Watir supports IE and Firefox.

News for 1.6.2 were accidently called 1.6.1 and as far as i know this 
can't be edited.

Beta? I dunno. What do you suggest we call it?

Bret

Chuck vdL wrote:
 Is this on the todo list?

 I was just there and noticed that  the info still indicates it's
 windows only, ie only, there's no release notice for 1.6.2 under
 'latest news,  and is the development status still actually considered
 to be 'beta' ?
 
   


--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-12-02 Thread Bret Pettichord

The reason that enabled popup is in contrib is to indicate that it is 
unsupported code.

I've never used Watir's modal dialog support for production testing 
(except for showModalDialogs, which i've used and which IMHO has 
excellent support). The support for the other modal dialogs needs work 
simply for IE much less working on how to make this work cross-platform. 
Some of this code is not in contrib, although it probably should be.

I've always found it easier to avoid dealing with modal dialogs, so I've 
never had personal motivation to work on this code.

I've considered removing the nascent support for modal dialogs from 
Watir entirely (perhaps bundling as a separate gem), to help telegraph 
that this code is not being maintained or supported. Perhaps this would 
help this code find a new owner.

Bret

Lisa Crispin wrote:
 Hi Bret,
 Just to clarify - So for now we have to use require 'watir\ie' in 
 order to require 'watir\contrib\enabled_popup', but in the next 
 version, we won't have to use require 'watir\ie', correct?

 My next question may be ignorant - if we want to be able to run our 
 scripts in firewatir as well as watir, does that mean we can't use 
 this enabled_popup thing to deal with modal dialogs? In that case, how 
 DO we deal with modal dialogs?
 thanks,
 Lisa

 On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:


 i've added the require statement to the enabled popup script
 itself, so
 this workaround will not be required with the next version of watir

 jpweston wrote:
  Thanks for this and your explanation in the Uninitialzied Constant
  post.
 
  j.
 
  On Nov 12, 9:17 pm, Bret Pettichord [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  the solution is to add require 'watir/ie' to your script
 
  jpweston wrote:
 
  After installing WATIR 1.6.2, scripts that have the following
 line:
  require 'watir/contrib/enabled_popup' are causing the
 following error:
 
  c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
  enabled_popup.rb:5: uninitialized constant
 Watir::PageContainer::Win32
  (NameError)
 from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
  `gem_original_require'
 from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
  `require'
 
  Here is what I have at the top of my scripts:
 
  require 'test/unit'
  require 'ci/reporter/rake/test_unit_loader.rb'
  require 'watir'
  require 'watir/testcase'
  require 'watir/contrib/enabled_popup'
 
  class TC_sales_tests  Watir::TestCase
 
include Watir
 
  code
 
  end
 
  Can someone point me toward what I am doing wrong here?  These
 scripts
  worked with the version of 1.5 that I had installed.
 
  Thanks.
 
  Johnathan
 
  
 








 


--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to click the ► on the page?

2008-12-02 Thread wesley chen
Thanks to all of you.
In fact, the issue is not so hard.
I can't cope with the problem just because, I didn't tell from the 'cell'
and 'table', I misunderstood that, the 'cell' can be replaced by 'table' all
the time.

Both the two method below can work:
ie.cell(:id,/td0/).click
ie.element_by_xpath(//td[contains(@onclick,'workoutNum')]/).click

Thanks.
Wesley Chen.

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to handle Security Alert or Certificate Exception popup

2008-12-02 Thread winstan

Hi Tony,

Being new to the wonderful world of watir i have infact come across
the security alert pop up and have tried a few of the examples on
other threads with how to control the pop-up so one can proceed,
however so for to no prevail. I would liek to give your process a
whirl how ever how would i go about including your work within my
script.

Many thanks,

Lucas

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: FireWatir: Link click error

2008-12-02 Thread Girish Jindal

Thanks for the reply,

Do I need to install FireWatir separately. I am using Watir 1.6.1 and
my understanding is that Watir 1.6.1 works for both IE and Firefox.
And I do not need to install it separately.

Yes it was incorrect code the correct one is :

FireWatir::Exception::UnknownObjectException: Unable to locate object,
using url and http://pibqa1/client/AcctOverview.aspx

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:866:in
`assert_exists'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:1019:in
`click'
C:/WS/OLB/test-Multi/Accounts.rb:25:in `test_AccountOverview'

Regards,
Girish

On Tue, Dec 2, 2008 at 10:25 PM, Michael Hwee [EMAIL PROTECTED] wrote:

 I don't think you are looking at the right code.
 The error is from defining object using 'url', not from 'text'.

 Michael

 
 From: Girish Jindal [EMAIL PROTECTED]
 To: watir-general@googlegroups.com
 Sent: Tuesday, December 2, 2008 12:21:08 AM
 Subject: [wtr-general] FireWatir: Link click error

 Hello,

 I am facing an issue using  FireWatir. FireWatir is not able to click the 
 link: ff.link(:text, Sign Out).click. I am using Watir 1.6.1

 It is throwing exception
   1) Error:
 test_AccountOverview(Accounts):
 FireWatir::Exception::UnknownObjectException: Unable to locate object, using 
 url and http://aaa3/client/AcctOverview.aspx
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:866:in 
 `assert_exists'
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:1019:in
  `click'
 C:/WS/OLB/test-Multi/Accounts.rb:25:in `test_AccountOverview'


 Does anyone know why I am getting this error? How can I fixed?

 Thank you very much!
 Regards
 Girish



 

--~--~-~--~~~---~--~~
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---