[wtr-general] Re: IE7 Popup handling

2009-03-02 Thread kiran yajamanyam
Hi Abhishek,

Please try this below piece of code. Need to install Autoit software.

def check_for_popups
autoit = WIN32OLE.new('AutoItX3.Control')
autoit.Opt(WinTitleMatchMode, 3)

puts Launched the global pop-up handler
loop do

# Look for window with given title. Give up after 1 second.
ret = autoit.WinWait('Choose Digital Certificate', '', 1)

# If window found, send appropriate keystroke (e.g. {enter}, {Y}, {N}).
if ret==1
   then
   autoit.WinActivate('Choose Digital Certificate')
   sleep(1)
   autoit.Send('{enter}')
end

Regards,
Kiran Y
On Mon, Mar 2, 2009 at 3:33 PM, Abhishek kulkarni.abhishe...@gmail.comwrote:


 Is there any simple way to handle IE7 popup Choose Digital
 Certificate ?

 I need a generic popup handling library which can handle all kind of
 Javascript popups in IE7.

 Thanks in advanced

 - Abhishek

 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread kiran yajamanyam
Send a screen shot of the attributes. That will help I think

Regards,
Krian Y

On Tue, Mar 10, 2009 at 5:05 PM, nagmani vm nagman...@gmail.com wrote:

 id also not defined what other option is there to identify??


 On 3/10/09, Joaquin Rivera Padron joahk...@gmail.com wrote:

 ie.button(:id, BUTTON_ID).click or other HTML selector

 hth
 joaquin





 --
 Thanks  Regards,
   Nagmani V.M.
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Error in handling popup

2009-04-08 Thread kiran yajamanyam
hi,

handle the popup window using autoit.
install autoit software. and use the followinf code

autoit = WIN32OLE.new('AutoItX3.Control')
Opt(WinTitleMatchMode, 3)
autoit.WinWait('Windows Internet Explorer', '', 2)

autoit.WinActivate('Windows Internet Explorer')
autoit.Send('{enter}')

This will work fine with out any issue

Regards,
Kiran Y

On Wed, Apr 8, 2009 at 5:56 PM, spike vinaykumarl...@gmail.com wrote:


 Hi

 I'm woking on windows platform and IE7 using WATIR I've used the
 following code for handling JavaScript popup

 require 'win32ole'
 wsh WIN32OLE.new('Wscript.Shell')
  wsh.AppActivate('Windows Internet Explorer')
  wsh.Sendkeys('{ENTER}')

 but its not working i'm getting the following error.
  1) Error:
 test_manage_resources(Manageresources):
 NoMethodError: undefined method `wsh' for #Manageresources:0x2b8c4bc
manageresource.rb:24:in `test_manage_resources'

 Please Please please... give a solution to my problem i'm stuck with
 handling popup from past 2 days..

 thankingyou

 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Error in handling popup

2009-04-08 Thread kiran yajamanyam
missed this piece of code

require 'win32ole'

still if it wont work just comment out  Opt(WinTitleMatchMode, 3) code and
try.

If still it wont work please send me the scenario u are testing i will try
and give u the code.

Regards,
Kiran Y


On Thu, Apr 9, 2009 at 9:26 AM, spike vinaykumarl...@gmail.com wrote:


 I used this code but i'm getting the following error

 1) Error:
 test_manage_resources(Manageresources):
 NoMethodError: undefined method `Opt' for #Manageresources:0x2b697c8
manageresource.rb:25:in `test_manage_resources'

 so please suggest some solution...

 On Apr 9, 8:40 am, kiran yajamanyam kiranyajaman...@gmail.com wrote:
  hi,
 
  handle the popup window using autoit.
  install autoit software. and use the followinf code
 
  autoit = WIN32OLE.new('AutoItX3.Control')
  Opt(WinTitleMatchMode, 3)
  autoit.WinWait('Windows Internet Explorer', '', 2)
 
  autoit.WinActivate('Windows Internet Explorer')
  autoit.Send('{enter}')
 
  This will work fine with out any issue
 
  Regards,
  Kiran Y
 
 
 
  On Wed, Apr 8, 2009 at 5:56 PM, spike vinaykumarl...@gmail.com wrote:
 
   Hi
 
   I'm woking on windows platform and IE7 using WATIR I've used the
   following code for handling JavaScript popup
 
   require 'win32ole'
   wsh WIN32OLE.new('Wscript.Shell')
wsh.AppActivate('Windows Internet Explorer')
wsh.Sendkeys('{ENTER}')
 
   but its not working i'm getting the following error.
1) Error:
   test_manage_resources(Manageresources):
   NoMethodError: undefined method `wsh' for #Manageresources:0x2b8c4bc
  manageresource.rb:24:in `test_manage_resources'
 
   Please Please please... give a solution to my problem i'm stuck with
   handling popup from past 2 days..
 
   thankingyou- 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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Error in handling popup

2009-04-08 Thread kiran yajamanyam
You have to give the exact caption of the window which is appearing as
popup. In your case that caption of the pop up is FILE
UPLOADED SUCCESSFULLY try this code:

autoit = WIN32OLE.new('AutoItX3.Control')
Opt(WinTitleMatchMode, 3)
autoit.WinWait('FILE UPLOADED SUCCESSFULLY', '', 2)

autoit.WinActivate('FILE UPLOADED SUCCESSFULLY')
autoit.Send('{enter}')

if you are online in g-talk you can ping me.

Regards,
Kiran Y
kiranyajaman...@gmail.com

On Thu, Apr 9, 2009 at 11:02 AM, spike vinaykumarl...@gmail.com wrote:


 Ya it still didnt work for me

 Test Scenario

 I'm running on windows platform with IE7
 I've to upload a file to the application i'm testing. to do that i'm
 login to the application and navigating to the respective page where
 i've to upload the file. I'm able to upload the file, upon
 successfully uploading the fiel a POPUP appears with the msg FILE
 UPLOADED SUCCESSFULLY and it has a button OK which has to clicked
 for the popup to disappear. i'm stuck here. the code is not clicking
 the OK button. following is the script i'm running.

 require 'Watir'
 require 'test/unit'


 class Manageresources  Test::Unit::TestCase

 def test_manage_resources
 ie = Watir::IE.start http://192.168.25.10:215/;
 ie.maximize()
 ie.text_field(:name, Login1$UserName).set(vinay)
 ie.text_field(:name, Login1$Password).set(welcome)
 ie.checkbox(:name, Login1$RememberMe).click
 ie.button(:value, Log In).click
 ie.link(:href, http://192.168.25.10:215/administrator/
 Default.aspx).click
 ie.link(:href, javascript:__doPostBack
 ('ctl00$Menu1','Resources')).click
 ie.link(:href, http://192.168.25.10:215/admin/
 ManageResources.aspx).click
 ie.link(:id, ctl00_ContentPlaceHolder1_lnkAdd).click
 ie.radio(:id, ctl00_ContentPlaceHolder1_rdCourses_1).click
 ie.button(:id, ctl00_ContentPlaceHolder1_btnNext).click
 ie.file_field(:id, ctl00_ContentPlaceHolder1_Uploadfile).set(D:\
 \BCSBI.zip)
 ie.file_field(:id, ctl00_ContentPlaceHolder1_btnUpload).click
 # For handling popups
  require 'win32ole'
   autoit = WIN32OLE.new('AutoItX3.Control')
  #  Opt(WinTitleMatchMode, 3)
 autoit.WinWait('Windows Internet Explorer', '', 2)


 autoit.WinActivate('Windows Internet Explorer')
 autoit.Send('{~}')




  if ie.radio(:id,
 ctl00_ContentPlaceHolder1_RdlistisFeedback_1).isSet?
puts IS FEEDBACK option Yes is selected
else
  ie.radio(:id,
 ctl00_ContentPlaceHolder1_RdlistisFeedback_1).click
end
ie.select_list(:id, ctl00_ContentPlaceHolder1_DdlAccesstype).set
 (Public)
ie.select_list(:id,
 ctl00_ContentPlaceHolder1_DdlApprovaltype).set(Admin)

 end
 end

 Please suggest me a solution


 thankingyou

 On Apr 9, 9:24 am, kiran yajamanyam kiranyajaman...@gmail.com wrote:
  missed this piece of code
 
  require 'win32ole'
 
  still if it wont work just comment out  Opt(WinTitleMatchMode, 3) code
 and
  try.
 
  If still it wont work please send me the scenario u are testing i will
 try
  and give u the code.
 
  Regards,
  Kiran Y
 
 
 
  On Thu, Apr 9, 2009 at 9:26 AM, spike vinaykumarl...@gmail.com wrote:
 
   I used this code but i'm getting the following error
 
   1) Error:
   test_manage_resources(Manageresources):
   NoMethodError: undefined method `Opt' for #Manageresources:0x2b697c8
  manageresource.rb:25:in `test_manage_resources'
 
   so please suggest some solution...
 
   On Apr 9, 8:40 am, kiran yajamanyam kiranyajaman...@gmail.com wrote:
hi,
 
handle the popup window using autoit.
install autoit software. and use the followinf code
 
autoit = WIN32OLE.new('AutoItX3.Control')
Opt(WinTitleMatchMode, 3)
autoit.WinWait('Windows Internet Explorer', '', 2)
 
autoit.WinActivate('Windows Internet Explorer')
autoit.Send('{enter}')
 
This will work fine with out any issue
 
Regards,
Kiran Y
 
On Wed, Apr 8, 2009 at 5:56 PM, spike vinaykumarl...@gmail.com
 wrote:
 
 Hi
 
 I'm woking on windows platform and IE7 using WATIR I've used the
 following code for handling JavaScript popup
 
 require 'win32ole'
 wsh WIN32OLE.new('Wscript.Shell')
  wsh.AppActivate('Windows Internet Explorer')
  wsh.Sendkeys('{ENTER}')
 
 but its not working i'm getting the following error.
  1) Error:
 test_manage_resources(Manageresources):
 NoMethodError: undefined method `wsh' for
 #Manageresources:0x2b8c4bc
manageresource.rb:24:in `test_manage_resources'
 
 Please Please please... give a solution to my problem i'm stuck
 with
 handling popup from past 2 days..
 
 thankingyou- 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 group

[wtr-general] Re: Error in handling popup

2009-04-08 Thread kiran yajamanyam
make sure that ur caption is same (Including caps) and if
autoit.Send({'enter'}) is not working try with autoit.Send({'space'})


On Thu, Apr 9, 2009 at 11:10 AM, spike vinaykumarl...@gmail.com wrote:


 if i'm clicking the OK button manually its going further to do rest
 of the operations or els its hung with the popup

 On Apr 9, 10:38 am, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  You have to give the exact caption of the window which is appearing as
  popup. In your case that caption of the pop up is FILE
  UPLOADED SUCCESSFULLY try this code:
 
  autoit = WIN32OLE.new('AutoItX3.Control')
  Opt(WinTitleMatchMode, 3)
  autoit.WinWait('FILE UPLOADED SUCCESSFULLY', '', 2)
 
  autoit.WinActivate('FILE UPLOADED SUCCESSFULLY')
  autoit.Send('{enter}')
 
  if you are online in g-talk you can ping me.
 
  Regards,
  Kiran Y
  kiranyajaman...@gmail.com
 
 
 
  On Thu, Apr 9, 2009 at 11:02 AM, spike vinaykumarl...@gmail.com wrote:
 
   Ya it still didnt work for me
 
   Test Scenario
 
   I'm running on windows platform with IE7
   I've to upload a file to the application i'm testing. to do that i'm
   login to the application and navigating to the respective page where
   i've to upload the file. I'm able to upload the file, upon
   successfully uploading the fiel a POPUP appears with the msg FILE
   UPLOADED SUCCESSFULLY and it has a button OK which has to clicked
   for the popup to disappear. i'm stuck here. the code is not clicking
   the OK button. following is the script i'm running.
 
   require 'Watir'
   require 'test/unit'
 
   class Manageresources  Test::Unit::TestCase
 
   def test_manage_resources
   ie = Watir::IE.start http://192.168.25.10:215/;
   ie.maximize()
   ie.text_field(:name, Login1$UserName).set(vinay)
   ie.text_field(:name, Login1$Password).set(welcome)
   ie.checkbox(:name, Login1$RememberMe).click
   ie.button(:value, Log In).click
   ie.link(:href, http://192.168.25.10:215/administrator/
   Default.aspx).click
   ie.link(:href, javascript:__doPostBack
   ('ctl00$Menu1','Resources')).click
   ie.link(:href, http://192.168.25.10:215/admin/
   ManageResources.aspx).click
   ie.link(:id, ctl00_ContentPlaceHolder1_lnkAdd).click
   ie.radio(:id, ctl00_ContentPlaceHolder1_rdCourses_1).click
   ie.button(:id, ctl00_ContentPlaceHolder1_btnNext).click
   ie.file_field(:id, ctl00_ContentPlaceHolder1_Uploadfile).set(D:\
   \BCSBI.zip)
   ie.file_field(:id, ctl00_ContentPlaceHolder1_btnUpload).click
   # For handling popups
require 'win32ole'
 autoit = WIN32OLE.new('AutoItX3.Control')
#  Opt(WinTitleMatchMode, 3)
   autoit.WinWait('Windows Internet Explorer', '', 2)
 
   autoit.WinActivate('Windows Internet Explorer')
   autoit.Send('{~}')
 
if ie.radio(:id,
   ctl00_ContentPlaceHolder1_RdlistisFeedback_1).isSet?
  puts IS FEEDBACK option Yes is selected
  else
ie.radio(:id,
   ctl00_ContentPlaceHolder1_RdlistisFeedback_1).click
  end
  ie.select_list(:id, ctl00_ContentPlaceHolder1_DdlAccesstype).set
   (Public)
  ie.select_list(:id,
   ctl00_ContentPlaceHolder1_DdlApprovaltype).set(Admin)
 
   end
   end
 
   Please suggest me a solution
 
   thankingyou
 
   On Apr 9, 9:24 am, kiran yajamanyam kiranyajaman...@gmail.com wrote:
missed this piece of code
 
require 'win32ole'
 
still if it wont work just comment out  Opt(WinTitleMatchMode, 3)
 code
   and
try.
 
If still it wont work please send me the scenario u are testing i
 will
   try
and give u the code.
 
Regards,
Kiran Y
 
On Thu, Apr 9, 2009 at 9:26 AM, spike vinaykumarl...@gmail.com
 wrote:
 
 I used this code but i'm getting the following error
 
 1) Error:
 test_manage_resources(Manageresources):
 NoMethodError: undefined method `Opt' for
 #Manageresources:0x2b697c8
manageresource.rb:25:in `test_manage_resources'
 
 so please suggest some solution...
 
 On Apr 9, 8:40 am, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  hi,
 
  handle the popup window using autoit.
  install autoit software. and use the followinf code
 
  autoit = WIN32OLE.new('AutoItX3.Control')
  Opt(WinTitleMatchMode, 3)
  autoit.WinWait('Windows Internet Explorer', '', 2)
 
  autoit.WinActivate('Windows Internet Explorer')
  autoit.Send('{enter}')
 
  This will work fine with out any issue
 
  Regards,
  Kiran Y
 
  On Wed, Apr 8, 2009 at 5:56 PM, spike vinaykumarl...@gmail.com
   wrote:
 
   Hi
 
   I'm woking on windows platform and IE7 using WATIR I've used
 the
   following code for handling JavaScript popup
 
   require 'win32ole'
   wsh WIN32OLE.new('Wscript.Shell')
wsh.AppActivate('Windows Internet Explorer')
wsh.Sendkeys('{ENTER}')
 
   but its not working i'm getting the following error.
1) Error:
   test_manage_resources(Manageresources):
   NoMethodError: undefined method `wsh' for
   #Manageresources:0x2b8c4bc

[wtr-general] Re: Error in handling popup

2009-04-08 Thread kiran yajamanyam
You should use the caption only. Means Windows Internet Explorer only. Use
space than enter

On Thu, Apr 9, 2009 at 11:16 AM, spike vinaykumarl...@gmail.com wrote:


 i didnt get u
 the popup window title is Windows Internet Explorer and the msg
 displayed in it is File Uploaded Successfully
 which one should i use inthe code..

 On Apr 9, 10:38 am, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  You have to give the exact caption of the window which is appearing as
  popup. In your case that caption of the pop up is FILE
  UPLOADED SUCCESSFULLY try this code:
 
  autoit = WIN32OLE.new('AutoItX3.Control')
  Opt(WinTitleMatchMode, 3)
  autoit.WinWait('FILE UPLOADED SUCCESSFULLY', '', 2)
 
  autoit.WinActivate('FILE UPLOADED SUCCESSFULLY')
  autoit.Send('{enter}')
 
  if you are online in g-talk you can ping me.
 
  Regards,
  Kiran Y
  kiranyajaman...@gmail.com
 
 
 
  On Thu, Apr 9, 2009 at 11:02 AM, spike vinaykumarl...@gmail.com wrote:
 
   Ya it still didnt work for me
 
   Test Scenario
 
   I'm running on windows platform with IE7
   I've to upload a file to the application i'm testing. to do that i'm
   login to the application and navigating to the respective page where
   i've to upload the file. I'm able to upload the file, upon
   successfully uploading the fiel a POPUP appears with the msg FILE
   UPLOADED SUCCESSFULLY and it has a button OK which has to clicked
   for the popup to disappear. i'm stuck here. the code is not clicking
   the OK button. following is the script i'm running.
 
   require 'Watir'
   require 'test/unit'
 
   class Manageresources  Test::Unit::TestCase
 
   def test_manage_resources
   ie = Watir::IE.start http://192.168.25.10:215/;
   ie.maximize()
   ie.text_field(:name, Login1$UserName).set(vinay)
   ie.text_field(:name, Login1$Password).set(welcome)
   ie.checkbox(:name, Login1$RememberMe).click
   ie.button(:value, Log In).click
   ie.link(:href, http://192.168.25.10:215/administrator/
   Default.aspx).click
   ie.link(:href, javascript:__doPostBack
   ('ctl00$Menu1','Resources')).click
   ie.link(:href, http://192.168.25.10:215/admin/
   ManageResources.aspx).click
   ie.link(:id, ctl00_ContentPlaceHolder1_lnkAdd).click
   ie.radio(:id, ctl00_ContentPlaceHolder1_rdCourses_1).click
   ie.button(:id, ctl00_ContentPlaceHolder1_btnNext).click
   ie.file_field(:id, ctl00_ContentPlaceHolder1_Uploadfile).set(D:\
   \BCSBI.zip)
   ie.file_field(:id, ctl00_ContentPlaceHolder1_btnUpload).click
   # For handling popups
require 'win32ole'
 autoit = WIN32OLE.new('AutoItX3.Control')
#  Opt(WinTitleMatchMode, 3)
   autoit.WinWait('Windows Internet Explorer', '', 2)
 
   autoit.WinActivate('Windows Internet Explorer')
   autoit.Send('{~}')
 
if ie.radio(:id,
   ctl00_ContentPlaceHolder1_RdlistisFeedback_1).isSet?
  puts IS FEEDBACK option Yes is selected
  else
ie.radio(:id,
   ctl00_ContentPlaceHolder1_RdlistisFeedback_1).click
  end
  ie.select_list(:id, ctl00_ContentPlaceHolder1_DdlAccesstype).set
   (Public)
  ie.select_list(:id,
   ctl00_ContentPlaceHolder1_DdlApprovaltype).set(Admin)
 
   end
   end
 
   Please suggest me a solution
 
   thankingyou
 
   On Apr 9, 9:24 am, kiran yajamanyam kiranyajaman...@gmail.com wrote:
missed this piece of code
 
require 'win32ole'
 
still if it wont work just comment out  Opt(WinTitleMatchMode, 3)
 code
   and
try.
 
If still it wont work please send me the scenario u are testing i
 will
   try
and give u the code.
 
Regards,
Kiran Y
 
On Thu, Apr 9, 2009 at 9:26 AM, spike vinaykumarl...@gmail.com
 wrote:
 
 I used this code but i'm getting the following error
 
 1) Error:
 test_manage_resources(Manageresources):
 NoMethodError: undefined method `Opt' for
 #Manageresources:0x2b697c8
manageresource.rb:25:in `test_manage_resources'
 
 so please suggest some solution...
 
 On Apr 9, 8:40 am, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  hi,
 
  handle the popup window using autoit.
  install autoit software. and use the followinf code
 
  autoit = WIN32OLE.new('AutoItX3.Control')
  Opt(WinTitleMatchMode, 3)
  autoit.WinWait('Windows Internet Explorer', '', 2)
 
  autoit.WinActivate('Windows Internet Explorer')
  autoit.Send('{enter}')
 
  This will work fine with out any issue
 
  Regards,
  Kiran Y
 
  On Wed, Apr 8, 2009 at 5:56 PM, spike vinaykumarl...@gmail.com
   wrote:
 
   Hi
 
   I'm woking on windows platform and IE7 using WATIR I've used
 the
   following code for handling JavaScript popup
 
   require 'win32ole'
   wsh WIN32OLE.new('Wscript.Shell')
wsh.AppActivate('Windows Internet Explorer')
wsh.Sendkeys('{ENTER}')
 
   but its not working i'm getting the following error.
1) Error:
   test_manage_resources(Manageresources):
   NoMethodError: undefined method `wsh' for
   #Manageresources

[wtr-general] Re: Error in handling popup

2009-04-09 Thread kiran yajamanyam
Now I got the problem you are facing. I think in your code u would have used
click() method just before the code to handle popup. If this is the case ,
script would not be coming out of click() method and go to next step. This
happens in a case when when used click method and if a popup appears after
click.

please let me know if you have this issue. I have a work arround where in u
need to extend your element class.

You can ping me at kiranyajaman...@gmail.com if you have any issues with
this. Try the following code once:

Copy paste this code and use it. Check if its due to timing issue.

require 'win32ole'

autoit = WIN32OLE.new('AutoItX3.Control')

autoit.WinWait('Windows Internet Explorer', '', 2)

autoit.WinActivate('Windows Internet Explorer')
autoit.Send('{space}')

Regards,
Kiran Y

On Thu, Apr 9, 2009 at 11:29 AM, spike vinaykumarl...@gmail.com wrote:


 Sorry sir even it is not working i've to click it manually to go
 further in my test. wat about this autoit i've installed autoit-v3 how
 is it related to watir..?


 On Apr 9, 10:43 am, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  make sure that ur caption is same (Including caps) and if
  autoit.Send({'enter'}) is not working try with autoit.Send({'space'})
 
 
 
  On Thu, Apr 9, 2009 at 11:10 AM, spike vinaykumarl...@gmail.com wrote:
 
   if i'm clicking the OK button manually its going further to do rest
   of the operations or els its hung with the popup
 
   On Apr 9, 10:38 am, kiran yajamanyam kiranyajaman...@gmail.com
   wrote:
You have to give the exact caption of the window which is appearing
 as
popup. In your case that caption of the pop up is FILE
UPLOADED SUCCESSFULLY try this code:
 
autoit = WIN32OLE.new('AutoItX3.Control')
Opt(WinTitleMatchMode, 3)
autoit.WinWait('FILE UPLOADED SUCCESSFULLY', '', 2)
 
autoit.WinActivate('FILE UPLOADED SUCCESSFULLY')
autoit.Send('{enter}')
 
if you are online in g-talk you can ping me.
 
Regards,
Kiran Y
kiranyajaman...@gmail.com
 
On Thu, Apr 9, 2009 at 11:02 AM, spike vinaykumarl...@gmail.com
 wrote:
 
 Ya it still didnt work for me
 
 Test Scenario
 
 I'm running on windows platform with IE7
 I've to upload a file to the application i'm testing. to do that
 i'm
 login to the application and navigating to the respective page
 where
 i've to upload the file. I'm able to upload the file, upon
 successfully uploading the fiel a POPUP appears with the msg FILE
 UPLOADED SUCCESSFULLY and it has a button OK which has to
 clicked
 for the popup to disappear. i'm stuck here. the code is not
 clicking
 the OK button. following is the script i'm running.
 
 require 'Watir'
 require 'test/unit'
 
 class Manageresources  Test::Unit::TestCase
 
 def test_manage_resources
 ie = Watir::IE.start http://192.168.25.10:215/;
 ie.maximize()
 ie.text_field(:name, Login1$UserName).set(vinay)
 ie.text_field(:name, Login1$Password).set(welcome)
 ie.checkbox(:name, Login1$RememberMe).click
 ie.button(:value, Log In).click
 ie.link(:href, http://192.168.25.10:215/administrator/
 Default.aspx).click
 ie.link(:href, javascript:__doPostBack
 ('ctl00$Menu1','Resources')).click
 ie.link(:href, http://192.168.25.10:215/admin/
 ManageResources.aspx).click
 ie.link(:id, ctl00_ContentPlaceHolder1_lnkAdd).click
 ie.radio(:id, ctl00_ContentPlaceHolder1_rdCourses_1).click
 ie.button(:id, ctl00_ContentPlaceHolder1_btnNext).click
 ie.file_field(:id, ctl00_ContentPlaceHolder1_Uploadfile).set(D:\
 \BCSBI.zip)
 ie.file_field(:id, ctl00_ContentPlaceHolder1_btnUpload).click
 # For handling popups
  require 'win32ole'
   autoit = WIN32OLE.new('AutoItX3.Control')
  #  Opt(WinTitleMatchMode, 3)
 autoit.WinWait('Windows Internet Explorer', '', 2)
 
 autoit.WinActivate('Windows Internet Explorer')
 autoit.Send('{~}')
 
  if ie.radio(:id,
 ctl00_ContentPlaceHolder1_RdlistisFeedback_1).isSet?
puts IS FEEDBACK option Yes is selected
else
  ie.radio(:id,
 ctl00_ContentPlaceHolder1_RdlistisFeedback_1).click
end
ie.select_list(:id,
 ctl00_ContentPlaceHolder1_DdlAccesstype).set
 (Public)
ie.select_list(:id,
 ctl00_ContentPlaceHolder1_DdlApprovaltype).set(Admin)
 
 end
 end
 
 Please suggest me a solution
 
 thankingyou
 
 On Apr 9, 9:24 am, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  missed this piece of code
 
  require 'win32ole'
 
  still if it wont work just comment out  Opt(WinTitleMatchMode,
 3)
   code
 and
  try.
 
  If still it wont work please send me the scenario u are testing i
   will
 try
  and give u the code.
 
  Regards,
  Kiran Y
 
  On Thu, Apr 9, 2009 at 9:26 AM, spike vinaykumarl...@gmail.com
   wrote:
 
   I used this code but i'm getting the following error
 
   1

[wtr-general] Re: Handling popups using watir

2009-04-09 Thread kiran yajamanyam
opps forgot to attach file :(

On Thu, Apr 9, 2009 at 12:18 PM, spike vinaykumarl...@gmail.com wrote:


 I'm really sorry, i've tried many things in the code but couldn get a
 solution from past 3 days. I've stuck in handling this popups. so
 please dont mind, i apologise for it.

 On Apr 9, 11:14 am, George george.sand...@gmail.com wrote:
  What about this neat little script?
 
  ie = Watir::IE.attach(/Watir General/)
  ie.text_field(:name, q).set popups
  ie.button(:name, qt_g).click
 
  Seriously, though...part of the learning process is doing the
  research.  You can't expect that an entirely new set of Watir users
  are going to magically appear just because you started a duplicate
  thread in the same day.  I've been finding that the trial and error
  approach to solving my scripting problems helps me develop more.  You
  really shouldn't take advantage of people who are really trying to
  help you.
 
  On Apr 8, 10:55 pm, spike vinaykumarl...@gmail.com wrote:
 
 
 
   ya but the solutions are not working for me.
 
   On Apr 9, 10:35 am, George george.sand...@gmail.com wrote:
 
Didn't you just make a thread about this?
 
On Apr 8, 9:23 pm, spike vinaykumarl...@gmail.com wrote:
 
 Hi
 
 Can somebody please help me with handling popups using Watir i'm
 stuck
 with this. I tried many suggestions but it didnt help me.
 
 I'm working on Windows XP and Internet Explorer 7.
 somebody suggested me to install autoIt for handling popups so i've
 installed autoIT-v3 also.
 
 please please.. help me to handle popups like file download and
 javascript
 
 thankingyou- 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 group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---

class Watir::Element 


  # If any parent element isn't visible then we cannot write to the 
  # element. The only realiable way to determine this is to iterate 
  # up the DOM element tree checking every element to make sure it's 
  # visible. 
  def visible? 
# Now iterate up the DOM element tree and return false if any 
# parent element isn't visible or is disabled. 
object = document 
while object 
  begin 
if object.currentstyle.invoke('visibility') =~ /^hidden$/i 
  return false 
end 
if object.currentstyle.invoke('display') =~ /^none$/i 
  return false 
end 
if object.invoke('isDisabled') 
  return false 
end 
  rescue WIN32OLERuntimeError 
  end 
  object = object.parentElement 
end 
true 
  end 


  def top_edge
assert_exists
assert_enabled
ole_object.getBoundingClientRect.top.to_i
  end
  
  def top_edge_absolute
top_edge + page_container.document.parentWindow.screenTop.to_i
  end
  
  def left_edge
assert_exists
assert_enabled
ole_object.getBoundingClientRect.left.to_i
  end
  
  def left_edge_absolute
left_edge + page_container.document.parentWindow.screenLeft.to_i
  end
  
  def mouse_hover(offsetX = 0, offsetY = 0)
x = left_edge_absolute + offsetX
y = top_edge_absolute + offsetY
WindowsInput.move_mouse(x, y)
  end
  
  def mouse_click(offsetX = 0, offsetY = 0)
x = left_edge_absolute
y = top_edge_absolute
WindowsInput.move_mouse(x, y) 
Watir.autoit.MouseClick(left, x+offsetX, y+offsetY, 1)
sleep(2)  
  end
  
  def right_click(offsetX = 0, offsetY = 0)
x = left_edge_absolute
y = top_edge_absolute  
WindowsInput.move_mouse(x+offsetX, y+offsetY)
WindowsInput.right_click
  end
  

 
end 

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

2009-04-28 Thread kiran yajamanyam
I am using XPSP2 anf Firefox 3.0.8 version

-Kiran Y

On Tue, Apr 28, 2009 at 6:50 PM, Angrez Singh ang...@gmail.com wrote:

 which OS  firefox version are you using?

 - Angrez


 On Tue, Apr 28, 2009 at 6:24 PM, Kinnu kiranyajaman...@gmail.com wrote:


 Hi All,

 Even i am finding the same error. i tried to setup my environment many
 times but still i am facing this issue.

 Any help will be appreciated

 Regards,
 Kiran Y


 On Apr 28, 10:37 am, emz452 emz...@gmail.com wrote:
  Just an update -
  I didn't end up working from home today, so didn't get a chance to
  test those things out. However, I had to re-install / setup everything
  on a different computer (again) at the new office and it's all working
  perfectly!
 
  Once I try out faejon's suggestions, if they don't work, I think I'll
  setup my environment from scratch again and see if that fixes it!
 
  thanks all :)
 
  On Apr 24, 5:46 pm, emz452 emz...@gmail.com wrote:
 
   Thanks for the suggestions faejon, I'll try these things and let you
   know how I go (long weekend where I am, so Tuesday will be the next
   working day for me!)
 
   Angrez - Yep, I have sudo/admin rights and can start firefox with
   sudo.
 
   On Apr 24, 4:08 pm, Angrez Singh ang...@gmail.com wrote:
 
I think jssh is not installed properly, do you have admin rights? or
 can you
start Firefox -jssh with sudo command?
 
- Angrez
 
On Fri, Apr 24, 2009 at 8:04 AM, faejon fae...@gmail.com wrote:
 
 On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote:
  Hi there,
 
 ~~~ SNIP ~~~
  If I launch firefox with -jssh and try to telnet:
  em...@emily-desktop:~$ firefox -jssh
  em...@emily-desktop:~$ telnet localhost 9997
  Trying 127.0.0.1...
  telnet: Unable to connect to remote host: Connection refused
  em...@emily-desktop:~$
 ~~~ SNIP ~~~
  Many thanks,
  Emily
 
 Emily the above telnet test indicates that you are unable to
 communicate with your local machine on port 9997. I would check
 your
 firewall / ipchains settings and make sure that you are not
 blocking
 connections from 127.0.0.1 - 127.0.0.1. I would think that it
 would
 be allowed but you never know.
 
 You could also try disabling the firewall on your machine and then
 telnet to port 9997 while firefox is running to make certain if it
 is
 the firewall or not.



 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Need help on jssh installation for firefox

2009-06-04 Thread kiran yajamanyam
Even I am facing the same issue. Please some one reply who have got solution
for this

Regards,
Kiran Y

On Tue, Jun 2, 2009 at 1:14 PM, Chethan chethan2...@gmail.com wrote:


 Hi,

 I started working on Firewatir, I have installed firewatir using new
 installation procedure as described in the Watir overview page.

 I have even installed the jssh as per the instructions. I have done
 lot of scripting for IE.

 I started with the firewatir example  getting following error
 `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997.
 Make sure that JSSh is properly installed and Firefox is running with
 '-jssh' option (Watir::Exception::UnableToStartJSShException)
from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 firefox.rb:161:in `initialize'

 Pls help me out to come out of this issue.

 Thanks in advance,
 Chethan
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Need help on jssh installation for firefox

2009-06-05 Thread kiran yajamanyam
Thank you very much Angrez. It is working fine now.

Regards,
Krian Y

On Fri, Jun 5, 2009 at 12:01 PM, Chethan chethan2...@gmail.com wrote:


 Thanks a lot. It working. I skipped this coz it says for
 Redistributed package for VS 2005 SP1.



 On Jun 4, 4:25 pm, Angrez Singh ang...@gmail.com wrote:
  Just a guess did you installed Redistributed package for VS 2005 SP1.
 Its
  described in step 2 here 
 http://wiki.openqa.org/display/WTR/FireWatir+Installation;. It is required
  for users who are using Firewatir with Firefox 3.0
 
  Thanks,
  Angrez
 
  On Thu, Jun 4, 2009 at 4:02 PM, kiran yajamanyam
  kiranyajaman...@gmail.comwrote:
 
   Even I am facing the same issue. Please some one reply who have got
   solution for this
 
   Regards,
   Kiran Y
 
   On Tue, Jun 2, 2009 at 1:14 PM, Chethan chethan2...@gmail.com wrote:
 
   Hi,
 
   I started working on Firewatir, I have installed firewatir using new
   installation procedure as described in the Watir overview page.
 
   I have even installed the jssh as per the instructions. I have done
   lot of scripting for IE.
 
   I started with the firewatir example  getting following error
   `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997.
   Make sure that JSSh is properly installed and Firefox is running with
   '-jssh' option (Watir::Exception::UnableToStartJSShException)
  from
 c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   firefox.rb:161:in `initialize'
 
   Pls help me out to come out of this issue.
 
   Thanks in advance,
   Chethan
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: .set method is not working for firefox

2009-06-08 Thread kiran yajamanyam
Hi All,

My test case scenario is go to webmail.aol.com site and there I need to
enter username and password in the text fields.

Please let me know if I need to include any other code or update any other
class?

Regards,
Kiran Y

On Thu, Jun 4, 2009 at 9:22 PM, SANTOSH SOLAPURKAR
sansolapur...@gmail.comwrote:

 Hi,

 I had similar issue with firewatir not having set method on select_list
 where as watir has. but text_field works fine...




 On Thu, Jun 4, 2009 at 8:44 PM, jason jason.franklin.sto...@gmail.comwrote:


 Hi Krian,

 I have just tried this out for you which works - so sorry - i cant
 reproduce the problem:

 ff.form.text_field(:index, 1).set(hello)

 jason


 On 4 Jun., 15:18, Kinnu kiranyajaman...@gmail.com wrote:
  Hi All,
 
  When I try to set some value to the text field (In Firefox) using .set
  (sample text) following error will appear
 
  C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
  container.rb:517:in `read_socket'
  C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
  container.rb:445:in `js_eval'
  C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
  container.rb:451:in `js_eval_method'
  C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
  MozillaBaseElement.rb:991:in `enabled?'
  C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
  MozillaBaseElement.rb:977:in `assert_enabled'
  C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  266:in `focus'
  C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  267:in `focus'
  C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
  htmlelements.rb:1340:in `set'
 
  Did anyone of you have faced this issue. If you have any solution for
  this please reply.
 
  Thanks in Advance,
  Krian Y




 --
 Santosh Solpaurkar
 Software Engineer
 CGI Mumbai




 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: .set method is not working for firefox

2009-06-08 Thread kiran yajamanyam
Hii Jason,

I tried with the same piece of code and I am still getting the same error.
Is it possible for you to send firewatir folder which you are using so that
i can try with the same files. I have updated firewatir gem as well.

Thanks and Regards,
Kiran Y

On Mon, Jun 8, 2009 at 3:22 PM, jason jason.franklin.sto...@gmail.comwrote:


 Hi Kiran,

 works fine for the url you provide:


 ff.form(:name, AOLLoginForm).text_field(:id ,lgnId1).set(Hello
 World)

 best R
 Jason.


 On 4 Jun., 17:14, jason jason.franklin.sto...@gmail.com wrote:
  Hi Krian,
 
  I have just tried this out for you which works - so sorry - i cant
  reproduce the problem:
 
  ff.form.text_field(:index, 1).set(hello)
 
  jason
 
  On 4 Jun., 15:18, Kinnu kiranyajaman...@gmail.com wrote:
 
   Hi All,
 
   When I try to set some value to the text field (In Firefox) using .set
   (sample text) following error will appear
 
   C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   container.rb:517:in `read_socket'
   C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   container.rb:445:in `js_eval'
   C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   container.rb:451:in `js_eval_method'
   C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   MozillaBaseElement.rb:991:in `enabled?'
   C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   MozillaBaseElement.rb:977:in `assert_enabled'
   C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   266:in `focus'
   C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   267:in `focus'
   C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   htmlelements.rb:1340:in `set'
 
   Did anyone of you have faced this issue. If you have any solution for
   this please reply.
 
   Thanks in Advance,
   Krian Y
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: .set method is not working for firefox

2009-06-08 Thread kiran yajamanyam
Hi Jason,

Following is the error I am getting.

*Error:
SystemStackError: stack level too deep

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container.rb:507:in
`read_socket'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container.rb:445:in
`js_eval'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container.rb:451:in
`js_eval_method'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:991:in
`enabled?'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:977:in
`assert_enabled'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:266:in
`focus'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:267:in
`focus'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/htmlelements.rb:1339:in
`set'*


*Thanks for your interest *
Regards,
Kiran Y


On Mon, Jun 8, 2009 at 3:49 PM, jason jason.franklin.sto...@gmail.comwrote:


 can you post the entier error message you are getting


 On 8 Jun., 12:03, kiran yajamanyam kiranyajaman...@gmail.com wrote:
  Hii Jason,
 
  I tried with the same piece of code and I am still getting the same
 error.
  Is it possible for you to send firewatir folder which you are using so
 that
  i can try with the same files. I have updated firewatir gem as well.
 
  Thanks and Regards,
  Kiran Y
 
  On Mon, Jun 8, 2009 at 3:22 PM, jason jason.franklin.sto...@gmail.com
 wrote:
 
 
 
   Hi Kiran,
 
   works fine for the url you provide:
 
   ff.form(:name, AOLLoginForm).text_field(:id ,lgnId1).set(Hello
   World)
 
   best R
   Jason.
 
   On 4 Jun., 17:14, jason jason.franklin.sto...@gmail.com wrote:
Hi Krian,
 
I have just tried this out for you which works - so sorry - i cant
reproduce the problem:
 
ff.form.text_field(:index, 1).set(hello)
 
jason
 
On 4 Jun., 15:18, Kinnu kiranyajaman...@gmail.com wrote:
 
 Hi All,
 
 When I try to set some value to the text field (In Firefox) using
 .set
 (sample text) following error will appear
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 container.rb:517:in `read_socket'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 container.rb:445:in `js_eval'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 container.rb:451:in `js_eval_method'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 MozillaBaseElement.rb:991:in `enabled?'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 MozillaBaseElement.rb:977:in `assert_enabled'

 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 266:in `focus'

 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 267:in `focus'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 htmlelements.rb:1340:in `set'
 
 Did anyone of you have faced this issue. If you have any solution
 for
 this please reply.
 
 Thanks in Advance,
 Krian Y
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: .set method is not working for firefox

2009-07-09 Thread kiran yajamanyam
Hi Friends,

I have struck up with this issue. I have re-installed my ruby setup and
still I am facing problem with .Set method. Is there any work around for
this?

Please help me in this.

Thanks and Regards,
Kiran Y

On Mon, Jun 8, 2009 at 3:54 PM, kiran yajamanyam
kiranyajaman...@gmail.comwrote:

 Hi Jason,

 Following is the error I am getting.

 *Error:
 SystemStackError: stack level too deep

 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container.rb:507:in
 `read_socket'

 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container.rb:445:in
 `js_eval'

 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container.rb:451:in
 `js_eval_method'

 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:991:in
 `enabled?'

 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:977:in
 `assert_enabled'
 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:266:in
 `focus'
 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:267:in
 `focus'

 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/htmlelements.rb:1339:in
 `set'*


 *Thanks for your interest *
 Regards,
 Kiran Y



 On Mon, Jun 8, 2009 at 3:49 PM, jason jason.franklin.sto...@gmail.comwrote:


 can you post the entier error message you are getting


 On 8 Jun., 12:03, kiran yajamanyam kiranyajaman...@gmail.com wrote:
  Hii Jason,
 
  I tried with the same piece of code and I am still getting the same
 error.
  Is it possible for you to send firewatir folder which you are using so
 that
  i can try with the same files. I have updated firewatir gem as well.
 
  Thanks and Regards,
  Kiran Y
 
  On Mon, Jun 8, 2009 at 3:22 PM, jason jason.franklin.sto...@gmail.com
 wrote:
 
 
 
   Hi Kiran,
 
   works fine for the url you provide:
 
   ff.form(:name, AOLLoginForm).text_field(:id ,lgnId1).set(Hello
   World)
 
   best R
   Jason.
 
   On 4 Jun., 17:14, jason jason.franklin.sto...@gmail.com wrote:
Hi Krian,
 
I have just tried this out for you which works - so sorry - i cant
reproduce the problem:
 
ff.form.text_field(:index, 1).set(hello)
 
jason
 
On 4 Jun., 15:18, Kinnu kiranyajaman...@gmail.com wrote:
 
 Hi All,
 
 When I try to set some value to the text field (In Firefox) using
 .set
 (sample text) following error will appear
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 container.rb:517:in `read_socket'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 container.rb:445:in `js_eval'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 container.rb:451:in `js_eval_method'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 MozillaBaseElement.rb:991:in `enabled?'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 MozillaBaseElement.rb:977:in `assert_enabled'

 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 266:in `focus'

 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 267:in `focus'
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 htmlelements.rb:1340:in `set'
 
 Did anyone of you have faced this issue. If you have any solution
 for
 this please reply.
 
 Thanks in Advance,
 Krian Y
 



--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Time to learn Watir

2009-07-10 Thread kiran yajamanyam
If you have automation knowledge, it shouldn't take much time to learn.
First start it and you will know about it.

Regards,
Kiran Y

On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote:


 Hello,

 I am new to learn Watir. And my company ask me the estimation to learn
 the Watir.

 Can you please tell me how much time the learner will need to
 understand and learn Watir?

 Please reply.

 Thanks in advance

 Swapnal.
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Time to learn Watir

2009-07-10 Thread kiran yajamanyam
Personally I feel it wouldn't take much time to learn

On Fri, Jul 10, 2009 at 12:43 PM, Prasad Vidala prasadvida...@gmail.comwrote:

 It is very easy to learn and will definitely not take much time if you keep
 interest on learning :-)


 On Fri, Jul 10, 2009 at 12:41 PM, Swapnal swapnal.sa...@gmail.com wrote:

 I do not have automation knowledge then how much time I will need to learn
 everything of Watir?

 Swapnal

 On Fri, Jul 10, 2009 at 12:04 PM, kiran yajamanyam 
 kiranyajaman...@gmail.com wrote:

 If you have automation knowledge, it shouldn't take much time to learn.
 First start it and you will know about it.

 Regards,
 Kiran Y


 On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote:


 Hello,

 I am new to learn Watir. And my company ask me the estimation to learn
 the Watir.

 Can you please tell me how much time the learner will need to
 understand and learn Watir?

 Please reply.

 Thanks in advance

 Swapnal.









 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to get firefox window handle

2009-07-10 Thread kiran yajamanyam
Any info on this friends?


On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.com wrote:



 Hi Friends,

 I am using ie.hwnd in watir to get the browser handle. I have observed
 that there is no such property available in FireWatir. Is there any
 work around for this? basically what i want to do is to get the center
 point of the browser.

 Regards,
 Kinnu


 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to get firefox window handle

2009-07-10 Thread kiran yajamanyam
Hi Angrez,

Thanks for your reply. Following is the step which I want to perform.

Want to click on the center point of the firefox window and want to do some
copy paste operation. This is required as I can't set text in the frame as
body of  compose window in my project  had used frame.

In IE following is the piece of code I was using

def getClientCenterPoint(browser)
 myRect=  * 16# store four LONGs
 getClientRect=Win32API.new(user32, GetClientRect, ['I','P'], 'I')
getClientRect = Win32API.new('user32', 'FindWindowEx', ['P'] * 4, 'L')

 getClientRect.call(browser.hwnd, myRect)
 x,y,xpos,ypos=myRect.unpack()

setCursorPos = Win32API.new(user32, SetCursorPos, ['I','I'], 'I')
 setCursorPos.Call(xpos.to_i/2+90,ypos.to_i/2+150)
end

Please let me know if you want any other details.

Regards,
Kinnu

On Fri, Jul 10, 2009 at 1:33 PM, Angrez Singh ang...@gmail.com wrote:

 can you explain what you are trying to do by getting the handle of window?
 may be we can suggest some workaround to do the same in Firewatir?

 - Angrez


 On Fri, Jul 10, 2009 at 1:03 PM, kiran yajamanyam 
 kiranyajaman...@gmail.com wrote:

 Any info on this friends?



 On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.comwrote:



 Hi Friends,

 I am using ie.hwnd in watir to get the browser handle. I have observed
 that there is no such property available in FireWatir. Is there any
 work around for this? basically what i want to do is to get the center
 point of the browser.

 Regards,
 Kinnu








 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: FireWatir Read Only Exception

2009-07-11 Thread kiran yajamanyam
Even I faced this issue, but it is not 100% reproducible, is there any work
around for this?

Regards,
Kinnu

On Sat, Jul 11, 2009 at 3:41 AM, jtk jeff.kr...@gmail.com wrote:


 I'm trying to automate a script that will read the FireFox
 about:config page. To do this I want to put text into the filter
 textbox, search for it then search the page for a specific string if
 it's there put a pass if not put a fail and run it to a spread sheet.
 The problem I am having is I'm being told that the textbox is read
 only. I can manually type in the textbox and search for values I just
 can't seem to do it using Firewatir. Has anyone else had any
 experience with this?

 Here is my code so far.

 require 'firewatir'
 include FireWatir
 ff=Firefox.new
 ff.goto('about:config')
 ff.text_field(:id, 'textbox').set 'browser.chrome.favicons'

 The error returned for me is

 `assert_not_readonly': Textfield id and textbox is read only.
 (Watir::Exception::ObjectReadOnlyException)
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: FireWatir Read Only Exception

2009-07-13 Thread kiran yajamanyam
At least in my case text-field was not read only. But now i am not facing
that issue any way.
Regards,
Kinnu

On Mon, Jul 13, 2009 at 12:16 PM, Angrez Singh ang...@gmail.com wrote:

 If the textbox is read-only you can't enter any values as per UI is
 related. But you can always use .value method to set the value like this:
 ff.text_field(:id, 'id').value = xyz

 But why you want to set value for read-only text box?


 On Sat, Jul 11, 2009 at 11:42 PM, kiran yajamanyam 
 kiranyajaman...@gmail.com wrote:

 Even I faced this issue, but it is not 100% reproducible, is there any
 work around for this?

 Regards,
 Kinnu

 On Sat, Jul 11, 2009 at 3:41 AM, jtk jeff.kr...@gmail.com wrote:


 I'm trying to automate a script that will read the FireFox
 about:config page. To do this I want to put text into the filter
 textbox, search for it then search the page for a specific string if
 it's there put a pass if not put a fail and run it to a spread sheet.
 The problem I am having is I'm being told that the textbox is read
 only. I can manually type in the textbox and search for values I just
 can't seem to do it using Firewatir. Has anyone else had any
 experience with this?

 Here is my code so far.

 require 'firewatir'
 include FireWatir
 ff=Firefox.new
 ff.goto('about:config')
 ff.text_field(:id, 'textbox').set 'browser.chrome.favicons'

 The error returned for me is

 `assert_not_readonly': Textfield id and textbox is read only.
 (Watir::Exception::ObjectReadOnlyException)






 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to get firefox window handle

2009-07-14 Thread kiran yajamanyam
Hi Angrez,
Where can i get documentation for the same. I don't know how to get title of
the window using Win32API.

Regards,
Kiran Y

On Fri, Jul 10, 2009 at 2:44 PM, Angrez Singh ang...@gmail.com wrote:

 Right now there is no support for hwnd in Firewatir. Can you use Win32API
 to get the handle of the window using the title? If yes, then you can use
 firefox title to get the handle.

 - Angrez


 On Fri, Jul 10, 2009 at 2:35 PM, kiran yajamanyam 
 kiranyajaman...@gmail.com wrote:

 Hi Angrez,

 Thanks for your reply. Following is the step which I want to perform.

 Want to click on the center point of the firefox window and want to do
 some copy paste operation. This is required as I can't set text in the frame
 as body of  compose window in my project  had used frame.

 In IE following is the piece of code I was using

 def getClientCenterPoint(browser)
   myRect=  * 16# store four LONGs
  getClientRect=Win32API.new(user32, GetClientRect, ['I','P'], 'I')
  getClientRect = Win32API.new('user32', 'FindWindowEx', ['P'] * 4, 'L')

  getClientRect.call(browser.hwnd, myRect)
  x,y,xpos,ypos=myRect.unpack()

 setCursorPos = Win32API.new(user32, SetCursorPos, ['I','I'], 'I')
  setCursorPos.Call(xpos.to_i/2+90,ypos.to_i/2+150)
 end

 Please let me know if you want any other details.

 Regards,
 Kinnu

 On Fri, Jul 10, 2009 at 1:33 PM, Angrez Singh ang...@gmail.com wrote:

 can you explain what you are trying to do by getting the handle of
 window? may be we can suggest some workaround to do the same in Firewatir?

 - Angrez


 On Fri, Jul 10, 2009 at 1:03 PM, kiran yajamanyam 
 kiranyajaman...@gmail.com wrote:

 Any info on this friends?



 On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.comwrote:



 Hi Friends,

 I am using ie.hwnd in watir to get the browser handle. I have observed
 that there is no such property available in FireWatir. Is there any
 work around for this? basically what i want to do is to get the center
 point of the browser.

 Regards,
 Kinnu














 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to simulate right mouse action

2009-07-20 Thread kiran yajamanyam
Hi Friends,

I want to use this method for Firefox. I have got some code for left_edge
and top_edge but I want code for top_edge_absolute and left_edge_absolute

Can any one help me.

Regards,
Kinnu

2009/5/27 Jungle_hunter junglehuanggangzh...@gmail.com





 On 5月26日, 上午10时50分, sHiVa krapa.ph...@gmail.com wrote:
  Hi Hunter,
 
  On which type of object ypu would like to move your mouse?
  What ever the web object it is, use the following method:
 
  ie.objectType(:how,/what/).fire_event(onmouseover)
  Hope this will helpful. If you are unable to come up with a solution
  please write more elaborative description.
 
  Thanks  Regards
  Siva Phaneendra Krapa
 

 Hi ,the method you provided can be used ,Thanks
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: problem in jssh

2009-07-20 Thread kiran yajamanyam
Hi All,

I tried the same steps which u people have provided and still i am facing
the same problem. I have tried in two different machines and facing the same
problem.

I am using Firefox 3.0.11
 jssh-0.9

Regards,
Kiran Y

On Sat, Jul 18, 2009 at 11:46 PM, venkatesh kumar venkatesh...@gmail.comwrote:

 thanks a lot for all your kind help

 Venkat
 www.prog2impress.com


 On Wed, Jul 15, 2009 at 2:06 PM, aparna aparna.m...@gmail.com wrote:


 Hi Venkat,

 You can also try installing firefox version 3.0.11 and jssh 0.9. On my
 system this is working fine.

 Regards,
 Aparna

 On Jul 14, 8:36 pm, Angrez Singh ang...@gmail.com wrote:
  Did you installed the XPI from here:
 http://wiki.openqa.org/display/WTR/FireWatir+Installation
 
  Also can you see if you have done all the steps correct, mostly people
  forget to install the Redistributed package for VS 2005 SP1.
 
  Can you just check that?
 
  Thanks,
  Angrez
 
  On Tue, Jul 14, 2009 at 6:23 PM, venkatesh kumar 
 venkatesh...@gmail.comwrote:
 
 
 
firefox version: 3.0.1
  jssh: 0.9
   thanks for your kind assistence
 
   Regards,
   Venkat
  www.prog2impress.com
 
   On Tue, Jul 14, 2009 at 12:14 PM, Angrez Singh ang...@gmail.com
 wrote:
 
   which XPI you are using and i think you want to say 3.10?
 
   On Mon, Jul 13, 2009 at 6:39 PM, venkatesh kumar 
 venkatesh...@gmail.comwrote:
 
   firefox 3.01
 
   Thanks
   Venkat
  www.prog2impress.com
 
   On Mon, Jul 13, 2009 at 12:15 PM, Angrez Singh ang...@gmail.com
 wrote:
 
   Which Firefox version are you using? Which XPI are you using?
 
   On Sat, Jul 11, 2009 at 11:49 PM, venky venkatesh...@gmail.com
 wrote:
 
   Hi all,
 
   I worked in fire watir for a month. my scripts were running fine.
 Due
   to some other reason i had to format my hard disk.
 
   I installed firewatir with jssh extension but now the same script
 is
   not running am getting a error like this
 
   
   c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   firefox.rb:271:in `set_defaults': Unable to connect to machine :
   127.0.0.1 on port 9997. Make sure that JSSh is properly installed
 and
   Firefox is running with '-jssh' option
   (Watir::Exception::UnableToStartJSShException)
  from
   c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
   firefox.rb:161:in `initialize'
   
 
   i have tried reinstalling firewatir and firefox browser along with
   jssh for few times but error still persists. What going wrong can
 any
   body throw some light on this?
 
   Thanks,
   Venky
  www.prog2impress.com- 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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: click method with list items

2009-07-21 Thread kiran yajamanyam
Its not working for me in firefox :(

On Tue, Jul 21, 2009 at 12:18 PM, basu bas.go...@gmail.com wrote:



 Used this, its working now
 $browser.ul(:id, cntList).li(:index, 1).link(:text, World
 Wide).focus()
 $browser.ul(:id, cntList).li(:index, 1).link(:text, World
 Wide).fire_event('onClick')

 On Jul 21, 11:32 am, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  Hi Friends,
 
  Even i face this issue many times for many buttons. But i use mouse_click
  method. Unfortunately, mouse_click is not working fine for firefox
 browser
  and i have got struck up with this issue and there is no other work
 around
  for me.
 
  Is there any solution for this?
 
  Regards,
  Kinnu
 
  On Tue, Jul 21, 2009 at 11:53 AM, Basavana Gowda K S 
 bas.go...@gmail.comwrote:
 
   Hi Ivan,
 
   That option is also not working
 
   On Tue, Jul 21, 2009 at 11:48 AM, Ivan Kabluchkov 
 ikabluch...@gmail.comwrote:
 
   Try to raise javascript event
 
   $browser.ul(:id, cntList).li(:index, 1).link(:text, World
   Wide).fire_event('onClick')
 
   On 21 июл, 09:59, basu bas.go...@gmail.com wrote:
Hi,
I have list structure like this,
 
ul id=cntList class=chartsdul style=display: block;
li
a id= onmouseout=TopArtist.set('0'); onmouseover=TopArtist.set
('1'); href=http://www.winamp.com/music/top-artists/all/today;
onclick=TopArtist.selectitem(id)World Wide/a
/li
li
a id=arg onmouseout=TopArtist.set('0');
 onmouseover=TopArtist.set
('1'); href=http://www.winamp.com/music/top-artists/argentina;
onclick=TopArtist.selectitem(id) Argentina /a
/li
/ul
 
 $browser.ul(:id, cntList).lis.each{|list_item|
 
   puts list_item.text()
 
}
list_item.flash() or $browser.ul(:id, cntList).li(:index, 1).link
(:text, World Wide).exists?()  both are locating the object but i
 am
not able to perform click operation on the links embedded inside li
tag , could some give me inputs ?
Thanks in advance
-Basu
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: click method with list items

2009-07-21 Thread kiran yajamanyam
Tried and tired with all options using fire_event but no luck.
If some one have code for Right click or mouse click (Co-Ordinate basis)
for firefox please send it across that will be very much useful

Regards,
Kinnu

On Tue, Jul 21, 2009 at 12:59 PM, Ivan Kabluchkov ikabluch...@gmail.comwrote:


 May be use fire_event('onMouseOver') instead of focus() ?

 On 21 июл, 11:00, kiran yajamanyam kiranyajaman...@gmail.com wrote:
  Its not working for me in firefox :(
 
  On Tue, Jul 21, 2009 at 12:18 PM, basu bas.go...@gmail.com wrote:
 
   Used this, its working now
   $browser.ul(:id, cntList).li(:index, 1).link(:text, World
   Wide).focus()
   $browser.ul(:id, cntList).li(:index, 1).link(:text, World
   Wide).fire_event('onClick')
 
   On Jul 21, 11:32 am, kiran yajamanyam kiranyajaman...@gmail.com
   wrote:
Hi Friends,
 
Even i face this issue many times for many buttons. But i use
 mouse_click
method. Unfortunately, mouse_click is not working fine for firefox
   browser
and i have got struck up with this issue and there is no other work
   around
for me.
 
Is there any solution for this?
 
Regards,
Kinnu
 
On Tue, Jul 21, 2009 at 11:53 AM, Basavana Gowda K S 
   bas.go...@gmail.comwrote:
 
 Hi Ivan,
 
 That option is also not working
 
 On Tue, Jul 21, 2009 at 11:48 AM, Ivan Kabluchkov 
   ikabluch...@gmail.comwrote:
 
 Try to raise javascript event
 
 $browser.ul(:id, cntList).li(:index, 1).link(:text, World
 Wide).fire_event('onClick')
 
 On 21 июл, 09:59, basu bas.go...@gmail.com wrote:
  Hi,
  I have list structure like this,
 
  ul id=cntList class=chartsdul style=display: block;
  li
  a id= onmouseout=TopArtist.set('0');
 onmouseover=TopArtist.set
  ('1'); href=http://www.winamp.com/music/top-artists/all/today
 
  onclick=TopArtist.selectitem(id)World Wide/a
  /li
  li
  a id=arg onmouseout=TopArtist.set('0');
   onmouseover=TopArtist.set
  ('1'); href=http://www.winamp.com/music/top-artists/argentina
 
  onclick=TopArtist.selectitem(id) Argentina /a
  /li
  /ul
 
   $browser.ul(:id, cntList).lis.each{|list_item|
 
 puts list_item.text()
 
  }
  list_item.flash() or $browser.ul(:id, cntList).li(:index,
 1).link
  (:text, World Wide).exists?()  both are locating the object
 but i
   am
  not able to perform click operation on the links embedded inside
 li
  tag , could some give me inputs ?
  Thanks in advance
  -Basu
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: problem in jssh

2009-07-21 Thread kiran yajamanyam
I have restarted my machine and it has started working perfectly. Thank you
very much for your replies :)

Regards,
Kiran Y

On Tue, Jul 21, 2009 at 5:52 PM, aparna aparna.m...@gmail.com wrote:


 Hi Kiran,

 Is your system 32-bit machine?

 Regards,
 Aparna

 On Jul 20, 3:52 pm, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:
  Hi All,
 
  I tried the same steps which u people have provided and still i am facing
  the same problem. I have tried in two different machines and facing the
 same
  problem.
 
  I am using Firefox 3.0.11
   jssh-0.9
 
  Regards,
  Kiran Y
 
  On Sat, Jul 18, 2009 at 11:46 PM, venkatesh kumar 
 venkatesh...@gmail.comwrote:
 
 
 
   thanks a lot for all your kind help
 
   Venkat
  www.prog2impress.com
 
   On Wed, Jul 15, 2009 at 2:06 PM, aparna aparna.m...@gmail.com wrote:
 
   Hi Venkat,
 
   You can also try installing firefox version 3.0.11 and jssh 0.9. On my
   system this is working fine.
 
   Regards,
   Aparna
 
   On Jul 14, 8:36 pm, Angrez Singh ang...@gmail.com wrote:
Did you installed the XPI from here:
  http://wiki.openqa.org/display/WTR/FireWatir+Installation
 
Also can you see if you have done all the steps correct, mostly
 people
forget to install the Redistributed package for VS 2005 SP1.
 
Can you just check that?
 
Thanks,
Angrez
 
On Tue, Jul 14, 2009 at 6:23 PM, venkatesh kumar 
   venkatesh...@gmail.comwrote:
 
  firefox version: 3.0.1
jssh: 0.9
 thanks for your kind assistence
 
 Regards,
 Venkat
www.prog2impress.com
 
 On Tue, Jul 14, 2009 at 12:14 PM, Angrez Singh ang...@gmail.com
   wrote:
 
 which XPI you are using and i think you want to say 3.10?
 
 On Mon, Jul 13, 2009 at 6:39 PM, venkatesh kumar 
   venkatesh...@gmail.comwrote:
 
 firefox 3.01
 
 Thanks
 Venkat
www.prog2impress.com
 
 On Mon, Jul 13, 2009 at 12:15 PM, Angrez Singh 
 ang...@gmail.com
   wrote:
 
 Which Firefox version are you using? Which XPI are you using?
 
 On Sat, Jul 11, 2009 at 11:49 PM, venky 
 venkatesh...@gmail.com
   wrote:
 
 Hi all,
 
 I worked in fire watir for a month. my scripts were running
 fine.
   Due
 to some other reason i had to format my hard disk.
 
 I installed firewatir with jssh extension but now the same
 script
   is
 not running am getting a error like this
 
 
 c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 firefox.rb:271:in `set_defaults': Unable to connect to machine
 :
 127.0.0.1 on port 9997. Make sure that JSSh is properly
 installed
   and
 Firefox is running with '-jssh' option
 (Watir::Exception::UnableToStartJSShException)
from
 c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 firefox.rb:161:in `initialize'
 
 
 i have tried reinstalling firewatir and firefox browser along
 with
 jssh for few times but error still persists. What going wrong
 can
   any
 body throw some light on this?
 
 Thanks,
 Venky
www.prog2impress.com-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 group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How do i read a .txt file using watir script

2009-09-14 Thread kiran yajamanyam
Why dont your try .ini file, you keep all the required SN and Password
information in .ini file and access it through your script. This will be
simple I feel

Kiran

On Mon, Sep 14, 2009 at 4:06 PM, msazeez28july sabdulkha...@gmail.comwrote:


 Hi,
  We have watir scripts which requires url, username, password and
 path (location of the datatables).
  These parameters are changing depends upon the server where
 application is deployed.
  I would like to put these information inside a .txt file like
 belo
  url = http://198.44.23.11/DemoApplication.WebUI
  username = admin
  password = adm...@#
  path = D:\Watir\WatirScripts

   Now i need to access the above .txt file using watir scripts
 like open file, read line by line and store each word in a array then
   use array elements to get exact values for each parameters and
 store it on respective variables to use inside scripts.

  Could you please let me know, whether we can able to open a file
 and read line by line using watir scripts. Does watir has class
 or
  library to support file open in read/write/append modes.

  Please let me know. Thanks in advance.

 Regards
 Syed
 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: hi there is an issue in running my script

2009-09-24 Thread kiran yajamanyam
No screen shot is available. Can you resend it?

On Thu, Sep 24, 2009 at 1:12 PM, sathish_Er vpm.sath...@gmail.com wrote:



 I am using ruby 1.8.5 for developing a script to automate the process
 to record the response time ,

 On executing the script in Scite i found the error attached the screen
 shot for your review, kindly give your comments

 --
 Thanks Regards
 Sathish Kumar

 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Third Party Combo Boxes in an Input Tag

2009-10-01 Thread kiran yajamanyam
Try with index. This will be the best way.

Regards,
Kiran

On Thu, Oct 1, 2009 at 11:58 AM, Pallavi Sharma write2pall...@gmail.comwrote:

 Hi

 I have a scenario in which we have third party combo boxes in the app which
 are defined as:

 INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete=off
 dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents;
 keyUp: onKeyUp; compositionEnd; onResize; value= /


 Is there any way in watir i can use to identify this object so that i can
 perform operations like selecting an element?

 ALso it allows typing on it, so maybe setting text or something like that
 should also work.

 Any help anyone...

 Thanks

 Pallavi.


 


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



Re: [wtr-general] Re: Wătir

2009-12-17 Thread kiran yajamanyam
Even i feel it should not matter untill its useful, people will learn it if
tool is good

On Fri, Dec 18, 2009 at 11:47 AM, Alister Scott alister.sc...@gmail.comwrote:

 I am not really sure it matters what people call it.
 As long as they are getting value from it and they know how to spell
 it so they can look it up.
 There are many words in English that people pronounce differently:
 mall, router, bistro.

 --
 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
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] Firewatir Wait Issue

2010-03-19 Thread kiran yajamanyam
You can use sleep() instead of Wait.

On Thu, Mar 18, 2010 at 2:46 PM, tonymocha mochat...@gmail.com wrote:

 Have problem with Firewatir wait command that won't wait for the page
 to load complete before proceeding other actions. Here is the sample
 code I used:

 require 'rubygems'
 require 'firewatir'

 browser = FireWatir::Firefox.new

 browser.goto(http://www.google.com;)
 browser.text_field(:name,q).set halo
 browser.button(:name,btnG).click
 browser.wait

 if browser.text.include? halo
  puts success
 else
  puts fail
 end

 I have search in the thread for relevant topics, but couldn't comes to
 a solution. Is this a bug for firewatir? I am running on Firewatir
 1.6.5, Mac OS.

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com

 To unsubscribe from this group, send email to watir-general+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

To unsubscribe from this group, send email to 
watir-general+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [wtr-general] Yahoo mail compose

2010-03-19 Thread kiran yajamanyam
Please let us know where you are unable to proceed.

On Fri, Mar 19, 2010 at 2:35 PM, Wesley Chen cjq@gmail.com wrote:

 I think you have to post your script here.

 Wesley.
 For life, the easier, the better.



 On Thu, Mar 18, 2010 at 6:18 PM, Dilip M lovingdilip...@gmail.com wrote:

 Hi All,
I am automating yahoomail..while i am doing so i
 encountered a problem.. i
 will explain here that problem plz can any one solve and guide me to
 solve..

i can able to login successfully.then after while
 composing a mail iam unable to compose a new mail.

 I am using IE, watir



 plz.. try and solve this problem... if any one has solution plz. mail
 me...   lovingdilip...@gmail.com

 Thanks In advance..

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com

 To unsubscribe from this group, send email to watir-general+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com

 To unsubscribe from this group, send email to watir-general+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

To unsubscribe from this group, send email to 
watir-general+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [wtr-general] No method works for Frame

2010-04-16 Thread kiran yajamanyam
Hi Wesley,

By default for  frame attribute is name so when we use ie.frame(name) will
work.

When I use index  eg: ie.frame(name attribute of frame).image(:index,
1).click() its working  but when I use other attributes to identify it
throws error unable to identify.

Thanks,
Kiran


On Fri, Apr 16, 2010 at 11:59 AM, Wesley Chen cjq@gmail.com wrote:

 I think you don't know how to use iframe.

 It should be ie.frame(:name, xxx).image(:src, ).click

 Wesley.
 For life, the easier, the better.



 On Fri, Apr 16, 2010 at 1:06 PM, Kinnu kiranyajaman...@gmail.com wrote:


 Hi Friends,

 I am unable to identify elements inside a frame and no method of
 element class is working(like exists?, click() etc). Following is the
 current issue i am facing:

 In my project, compose mail window is developed in frame and when I
 copy a image inside compose body, folloing are the things I tryed and
 nothing is working

 1. puts ie.frame(edit_body).exists?()   gives error saying exists?()
 is not a valid method for frame
 2. puts ie.frame(edit_body).image(:title, TestPic.jpeg).exists?()
 gives error saying exists?() is not a valid method for frame

 Tried all combination's  but no luck. Is handling frames a drawback
 for Watir itself? Is there soemthign that i should ask my developers
 to enable ?

 Will be great if some one who is also facing this problems let us know
 solution if at all if any

 Thanks,
 Kiran Y

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com


Re: [wtr-general] how to click on the element with the id = logoutLink

2010-05-24 Thread kiran yajamanyam
try with

ie.link(:text=LogOut, :index=1).click() or

ie.link(:text=LogOut, :index=2).click() or

ie.link(:text=LogOut, :index=3).click()


try with diff index values by trail and error or you can include parent of
that link and try example
ie.div(just example).link(:text, LogOut).click()

Else give us your source we can try to help you  :)

On Mon, May 24, 2010 at 9:37 PM, Cristina cristina.toro...@gmail.comwrote:

 I am using firefox.

 Just try and not working. I am receiving the following err:
  Unable to locate element, using :text, Logout (Watir::Exceptio...




 On Sun, May 23, 2010 at 4:36 PM, Felipe Knorr Kuhn fkn...@gmail.comwrote:

 Hello, Cristina,

 have you tried

 $ie.link(:text, Logout).click
 $ie.link(:text, Logout).fire_event(onClick)

 ?

 On Sun, May 23, 2010 at 5:29 PM, Cristina cristina.toro...@gmail.com
 wrote:
  Hi,
 
  please can one help me with that:: i do not know how to click on the
 logout.
  That is the snippet code:
 
  #-
  tr
  td id=topToolbar
  /td
  td id=greeting
  Welcome q...@qa.hemt.ca |
  a id=helpText href=# onclick=showHelp();return false;nbsp;/a
  |
  a id=logoutLink href=javascript:confirmLogout(); Logout /a
  /td
  /tr
  #
 
 
  I've try
  $browser.cell(:id = logoutLink).click
 
  or
  $browser.link(:text, Logout).click
  or
  $browser.link(:id, LogoutLink).click
 
  but is not working.
 
 
  Best regards,
  Cristina
 
  --
  Before posting, please read http://watir.com/support. In short: search
  before you ask, be nice.
 
  You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
  To post: watir-general@googlegroups.com
  To unsubscribe: 
  watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com




 --
 ~~ Cristina



  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] how to click on the element with the id = logoutLink

2010-05-24 Thread kiran yajamanyam
Hey Friend,

Got the solution.

Use  browser.frame(:index,2).link(:id=logoutLink).click() this piece of
code to click on Logout link, as this link is under a frame with index 2 it
was unable to identify Logout link.

Try and let me know if it works or not.



On Tue, May 25, 2010 at 12:17 AM, Cristina cristina.toro...@gmail.comwrote:

 Reattached the script.I deleted the last line.


 On Mon, May 24, 2010 at 2:46 PM, Cristina cristina.toro...@gmail.comwrote:

 Hi,

 I attached the script and screen snapshot.
 You can run it. That is our email application and I would like to start
 automating the functional testing.

 I do not know how to make working:
 #1.-
 #2.

 from the script. How to logout and simple select a link.

 Thanks a lot,
 Cristina


 On Mon, May 24, 2010 at 12:16 PM, kiran yajamanyam 
 kiranyajaman...@gmail.com wrote:

 try with

 ie.link(:text=LogOut, :index=1).click() or

 ie.link(:text=LogOut, :index=2).click() or

 ie.link(:text=LogOut, :index=3).click()


 try with diff index values by trail and error or you can include parent
 of that link and try example
 ie.div(just example).link(:text, LogOut).click()

 Else give us your source we can try to help you  :)

 On Mon, May 24, 2010 at 9:37 PM, Cristina cristina.toro...@gmail.comwrote:

 I am using firefox.

 Just try and not working. I am receiving the following err:
  Unable to locate element, using :text, Logout (Watir::Exceptio...




 On Sun, May 23, 2010 at 4:36 PM, Felipe Knorr Kuhn fkn...@gmail.comwrote:

 Hello, Cristina,

 have you tried

 $ie.link(:text, Logout).click
 $ie.link(:text, Logout).fire_event(onClick)

 ?

 On Sun, May 23, 2010 at 5:29 PM, Cristina cristina.toro...@gmail.com
 wrote:
  Hi,
 
  please can one help me with that:: i do not know how to click on the
 logout.
  That is the snippet code:
 
  #-
  tr
  td id=topToolbar
  /td
  td id=greeting
  Welcome q...@qa.hemt.ca |
  a id=helpText href=# onclick=showHelp();return
 false;nbsp;/a
  |
  a id=logoutLink href=javascript:confirmLogout(); Logout /a
  /td
  /tr
  #
 
 
  I've try
  $browser.cell(:id = logoutLink).click
 
  or
  $browser.link(:text, Logout).click
  or
  $browser.link(:id, LogoutLink).click
 
  but is not working.
 
 
  Best regards,
  Cristina
 
  --
  Before posting, please read http://watir.com/support. In short:
 search
  before you ask, be nice.
 
  You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
  To post: watir-general@googlegroups.com
  To unsubscribe: 
  watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com




 --
 ~~ Cristina



  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com




 --
 ~~ Cristina





 --
 ~~ Cristina



  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Radcombox automation

2010-05-25 Thread kiran yajamanyam
find the attached .rb file which will help you to understand how to deal
with select_list. Else give us the screen shot I will try to send you the
piece of code

On Tue, May 25, 2010 at 4:48 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 2010/5/25 khaja shaik khaja.sh...@gmail.com

  Actually after clicking the drop down arrow in the combo box , values
 displayed in the separate iframe, thats why i cannot able to automate
  check tha attached screen shot

 Relevant code snippet is worth a thousand screen shots a wise man would
 say.

 You still did not say what is the problem.

 What did you try? Did you try this?

 browser.frame(how, what).select_list(how, what).set(something)

 Željko


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


selectbox_test.rb
Description: Binary data


Re: [wtr-general] Clicking a div with last index

2010-06-28 Thread kiran yajamanyam
Do you have any other attribute value other than :text='div' ? Like class
or ID . If you have any other value you can directly use them.

-K

On Fri, Jun 25, 2010 at 6:33 PM, Ajitesh Srinetra 
ajitesh.srine...@gmail.com wrote:

 At present in my Web Page I can See a lot of divs and i access them
 using indexes using this code

 ie.div(:text = 'div',:index =1).click
 ie.div(:text = 'div',:index =2).click
 ie.div(:text = 'div',:index =3).click
 ie.div(:text = 'div',:index =4).click

 Is there any way I can click on the last Index directly like
 ie.div(:text = 'div',:index =Last).click



 --
 Thanks and Regards
 Ajitesh Srinetra

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] question for ff browser

2010-06-30 Thread kiran yajamanyam
Hi All,

To add my question to this thread. i have a scenario when in I have
initialized first IE say ie1 where in i have declared a variable SignIn
for say SignIn button and When I click on some link it opens a new window
and I want to work on that window for which I will use ie2 =
Watir::IE.attach(:title, second window title)  and My question is if I
want to make use of  variable SignIn for IE2. how can i achieve this?

following is the sample code

ie1 = Watir::IE.new()
ie1.goto(gmail.com)

signin = ie1.button(:text, SignIn)

now I did some operation and opened a new gmail login page in new browser
and I attached it to ie2 in the following way

ie2 = Watir::IE.attach(:title, can be anything)

now instead of using ie2.button(:text, Singin).click() is there any way
that I can make use of already existing variable signin ?

Regards,
Kiran

On Fri, Jun 18, 2010 at 1:23 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Thu, Jun 17, 2010 at 11:10 PM, Cristina cristina.toro...@gmail.com
 wrote:
  The question is how can I close the second browser and return to the main
 one to continue checking the other links?

 browser1.link(how, what).click
 browser2 = Watir::Browser.attach(how, what)
 # do something with browser2
 browser2.close
 # continue with browser1

 More information:

 http://wiki.openqa.org/display/WTR/New+Browser+Windows

 Ask if you have further questions.

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them
 vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] question for ff browser

2010-06-30 Thread kiran yajamanyam
Great solution :). Thank you very much :)

On Wed, Jun 30, 2010 at 6:50 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 2010/6/30 kiran yajamanyam kiranyajaman...@gmail.com

  signin = ie1.button(:text, SignIn)

 You could do something like this:

 def signin(browser)
   browser.button(:text, SignIn)
 end

 signin(ie1).click
 signin(ie2).click


 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them
 vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Mouse_click method for firefox browser

2010-07-01 Thread kiran yajamanyam
Hi Friends,

I am facing a problem while clicking on few objects (both in IE and Firefox)
for IE  I am using mouse_click() method which  I have taken from grup and is
perfectly working fine and I have attached that piece of code in this mail.
Did some one tried Mouse_click method for firewatir?

I have struck up with this as I am unable to provide support for firefox for
my project where as in IE I have quite a big number of test cases which I
have automated(around 1000)


Swift reply will be appreciated .


PS: click() or click! or click_no_wait() or .fire_event(onClick) none of
these methods are working for few elements in my project both in IE as well
as Firefox. Objects on which click is not working are having javascript for
events.


Regards,
Kiran Y

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Mouse_click.rb
Description: Binary data