[wtr-general] Looking for Watir Runner

2009-05-14 Thread lokesh.agra...@gmail.com

Hi All,

I am lokking for GUI interface (either web based or any other app) to
invoke ruby scripts.
I checked Rails Runner on
wiki.openqa.org/display/WTR/Rails+test+runner+example+app

but its not working with latest rails versions.


Does anyone has any clue for this type of GUI Interface??


Thanks and Regards,
Lokesh Agrawal

--~--~-~--~~~---~--~~
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: Help needed in automation using Watir

2009-05-14 Thread karimnumerouno

IE developer tool bar is good, but at times the IE browser get stuck
some time when the IE developer tool bar is open, i had a problem with
the same on vista, firebug is better in that case.

On May 15, 9:18 am, Lokesh Agrawal  wrote:
> Hi All,
>
> Thanks for the reply.
>
> I am already using IE development toolbar, but that's not the issue.
>
> I think Jim is very much clear in his statement and I have to talk to
> developers and manager for this problem.
>
> BUT I think it will be good for future of Watir if we can have some
> object identification/discovery facility. May be before running any
> test suite automation testers will first run object discovery which
> will store all objects (with properties) in some file and will compare
> with old ones.
>
> I found one framework with this approach: JAF (http://90kts.com/blog/
> 2008/just-another-framework-for-developing-watir-test-cases/).
> But I have not used it so doesn't know if this is helpful or not. (As
> this framework is using RSpec while I am using Test Unit).
>
> Thanks and Regards,
> Lokesh Agrawal
>
> On May 14, 10:16 pm, sHiVa  wrote:
>
> > Lokesh,
>
> > I can suggest one solution to your problem even developers will not
> > helpful.
> > Try to manage all of your object properties in a single place
> > (repository), that may be a XML, EXCEL, or in ruby file itself.
>
> > 1. Try to track most frequently changed properties in your script.
> > 2. Use regular expressions where ever it is necessary
> > 3. Don’t hard code object properties in the script. Instead of it,
> > just call the properties from outer world
> > 4. Try to use  :index property if some objects are every time
> > changing.
>
> > These following practices will surely help you. If you need further
> > help managing object properties in a single place, let me know.
>
> > Regards
> > Siva Phaneendra Krapa
> > Virtusa.
--~--~-~--~~~---~--~~
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: Traversing nested elements

2009-05-14 Thread karimnumerouno

i guesss you can xpath or hpricot libraries which are very powerful
for screen scrapping

From,

Karim Rayani


On May 14, 7:42 pm, jason  wrote:
> Gofu,
>
> I am not quite sure what you need.
>
> you can select any element and ask it for containing elements.
>
> for example:
>
> ff.frame(:index, 1).links
>
> gives you all the links in the container frame (the first one).
>
> ff.form(:index,2).links
>
> gives you all the links within the second form on the page.
>
> does that make any sence??
>
> On 13 Mai, 09:31, Gofu  wrote:
>
> > Thank you jason,
>
> > but i dont know whether they are links or tables (they sometimes
> > change). I might be able to use decisions to write a routine for each
> > element type seperately.
> > Do you know how to do this in Watir?
>
> > On May 12, 11:22 pm, jason  wrote:
>
> > > not sure if this helps - but it might be a start
>
> > > ff.tables.each do |table|
> > >   table.links.each do |link|
> > > link.click #for example
> > >  end
> > > end
>
> > > hope that helps.
>
> > > On 12 Mai, 15:49, Gofu  wrote:
>
> > > > Hello everyone,
>
> > > > I have a website that is generated dynamically (jsp).
> > > > I would like to use the help of Watir to traverse through all of the
> > > > many levels of
> > > > nested tables/links in this site.
>
> > > > The problem is that I can't be certain about the attributes (name, id)
> > > > of the tables/links because when the server
> > > > updates, the content changes.
> > > > The depth of the nesting and the width(number of elements) of the
> > > > branching and the type of the elements
> > > > are not known in advance.
>
> > > > For example, you have
> > > > 
> > > >  
> > > > 
>
> > > > or sometimes
>
> > > > 
> > > > 
> > > >  
> > > >
> > > >  
> > > > 
> > > > 
>
> > > > The links are nested in the table and I want to click all these links
> > > > using Watir, but not other links on the page,
> > > > (only the ones in the table).
>
> > > > I'm still very new to Watir. Is it the right tool for this task?
>
> > > > Million 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: How to fetch the Selected Item in a ListBox

2009-05-14 Thread Pallavi Sharma
Hey

Thanks...

this works

Current_item = Listbox(:id,’blah).getSelectedItems[0]

the value option doesn't works Shiva

On Thu, May 14, 2009 at 7:24 PM, Darin Duphorn
wrote:

>  My bad, you want to get the current value correct?
>
>
>
> Current_item = Listbox(:id,’blah).getSelectedItems.to_s
>
>
>  --
>
> *From:* watir-general@googlegroups.com [mailto:
> watir-gene...@googlegroups.com] *On Behalf Of *Darin Duphorn
> *Sent:* Thursday, May 14, 2009 8:51 AM
> *To:* watir-general@googlegroups.com
> *Subject:* [wtr-general] Re: How to fetch the Selected Item in a ListBox
>
>
>
> Try this
>
> Listbox_Items = Listbox(:id,’blah’).getAllContents
>
>
>  --
>
> *From:* watir-general@googlegroups.com [mailto:
> watir-gene...@googlegroups.com] *On Behalf Of *Pallavi Sharma
> *Sent:* Thursday, May 14, 2009 8:40 AM
> *To:* watir-general@googlegroups.com
> *Subject:* [wtr-general] How to fetch the Selected Item in a ListBox
>
>
>
> Hi
>
> I want to fetch the selected item in a list box , tried the
> selected_options()
>
> but it doesnt work gives "sele.rb:4: undefined method `selected_options'
> for # (NoMethodError)" error
>
>
> can anyone here help??
>
>
> 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: Help needed in automation using Watir

2009-05-14 Thread Lokesh Agrawal

Hi All,

Thanks for the reply.

I am already using IE development toolbar, but that's not the issue.

I think Jim is very much clear in his statement and I have to talk to
developers and manager for this problem.

BUT I think it will be good for future of Watir if we can have some
object identification/discovery facility. May be before running any
test suite automation testers will first run object discovery which
will store all objects (with properties) in some file and will compare
with old ones.


I found one framework with this approach: JAF (http://90kts.com/blog/
2008/just-another-framework-for-developing-watir-test-cases/).
But I have not used it so doesn't know if this is helpful or not. (As
this framework is using RSpec while I am using Test Unit).



Thanks and Regards,
Lokesh Agrawal


On May 14, 10:16 pm, sHiVa  wrote:
> Lokesh,
>
> I can suggest one solution to your problem even developers will not
> helpful.
> Try to manage all of your object properties in a single place
> (repository), that may be a XML, EXCEL, or in ruby file itself.
>
> 1. Try to track most frequently changed properties in your script.
> 2. Use regular expressions where ever it is necessary
> 3. Don’t hard code object properties in the script. Instead of it,
> just call the properties from outer world
> 4. Try to use  :index property if some objects are every time
> changing.
>
> These following practices will surely help you. If you need further
> help managing object properties in a single place, let me know.
>
> Regards
> Siva Phaneendra Krapa
> Virtusa.
--~--~-~--~~~---~--~~
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 work with popups?

2009-05-14 Thread Lisa Crispin
There was a recent thread on this so you may want to search the email
archive.

This is what we do, but I don't know if it is the best way.

  require 'watir\ie'
  require 'watir\contrib\enabled_popup'

  # Main method to click a modal dialog button.
  def click_modal_button(ie, type='OK', sleep_time=6, timeout=20)
hwnd = ie.enabled_popup(sleep_time)
if (hwnd)
  w = WinClicker.new
  w.clickWindowsButton_hwnd( hwnd, "#{type}")
  w=nil
end
  end

On Thu, May 14, 2009 at 3:35 PM, satish  wrote:

>
> Can you some one give me an idea how to work with popups.
>
> Here is my requirement.
> -
> When I click on "Save" image icon on the IE browser, according to data
> validation rules I will get a warning popup box.
>
> I will have to validate the warning message on the popup box whether
> it is correct or not and then needs to respond by click on "OK"
> button.
>
> Can some one give me an idea around this. I am very new to Watir.
> Appreciate your help.
> 
>
> Here I tried thisbut did not work..
> ==
> require "watir"
> require "win32ole"
> require "watir/contrib/enabled_popup"
>
> ie.image(:id,
>
> 'ctl00_contentChildWindow_secUserDetails_ctl02_menu_secUserDetails_DXI0_Img').click
> hwnd = ie.enabled_popup(5)
> if (hwnd)  #yeah! a popup
>  popup = WinClicker.new
>  popup.makeWindowActive(hwnd)
>  popup.clickWindowsButton("Windows Internet Explorer", "OK", "30")
> end
> ===
> >ruby Phone_Mask_Test.rb
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
> enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32
> (NameError)
>from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>from Phone_Mask_Test.rb:4
> >Exit code: 1
>
> Thank you,
> Satish
>
> >
>


-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
http://lisacrispin.com

--~--~-~--~~~---~--~~
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] How to work with popups?

2009-05-14 Thread satish

Can you some one give me an idea how to work with popups.

Here is my requirement.
-
When I click on "Save" image icon on the IE browser, according to data
validation rules I will get a warning popup box.

I will have to validate the warning message on the popup box whether
it is correct or not and then needs to respond by click on "OK"
button.

Can some one give me an idea around this. I am very new to Watir.
Appreciate your help.


Here I tried thisbut did not work..
==
require "watir"
require "win32ole"
require "watir/contrib/enabled_popup"

ie.image(:id,
'ctl00_contentChildWindow_secUserDetails_ctl02_menu_secUserDetails_DXI0_Img').click
hwnd = ie.enabled_popup(5)
if (hwnd)  #yeah! a popup
  popup = WinClicker.new
  popup.makeWindowActive(hwnd)
  popup.clickWindowsButton("Windows Internet Explorer", "OK", "30")
end
===
>ruby Phone_Mask_Test.rb
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32
(NameError)
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from Phone_Mask_Test.rb:4
>Exit code: 1

Thank you,
Satish

--~--~-~--~~~---~--~~
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 move the cursor to starting point in a masked text_field.

2009-05-14 Thread satish

Thank you very much to you all for kind reply.
Satish.


On May 14, 1:38 pm, satish  wrote:
> No, this does not work either.
> Only thing seems to work is with .value and put some wait command like
> (sleep 3).
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­­
> askTextBox_I").value = "12345678901234567890"
>
> Mask is not working properly with .set
>
> Thanks
> Satish.
>
> On May 14, 12:51 pm, sHiVa  wrote:
>
>
>
> > Dude,
>
> > Please use this before setting a value in your text field and let me
> > know if any issue.
>
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­­
> > askTextBox_I").clear
>
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­­
> > askTextBox_I").set
> > ("12345678901234567890")
>
> > Regards
> > Siva Paneendra Krapa
> > Virtusa- 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 to move the cursor to starting point in a masked text_field.

2009-05-14 Thread satish

No, this does not work either.
Only thing seems to work is with .value and put some wait command like
(sleep 3).
ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­
askTextBox_I").value = "12345678901234567890"

Mask is not working properly with .set

Thanks
Satish.

On May 14, 12:51 pm, sHiVa  wrote:
> Dude,
>
> Please use this before setting a value in your text field and let me
> know if any issue.
>
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­
> askTextBox_I").clear
>
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­
> askTextBox_I").set
> ("12345678901234567890")
>
> Regards
> Siva Paneendra Krapa
> Virtusa
--~--~-~--~~~---~--~~
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: Help needed in automation using Watir

2009-05-14 Thread sHiVa

Lokesh,

I can suggest one solution to your problem even developers will not
helpful.
Try to manage all of your object properties in a single place
(repository), that may be a XML, EXCEL, or in ruby file itself.

1. Try to track most frequently changed properties in your script.
2. Use regular expressions where ever it is necessary
3. Don’t hard code object properties in the script. Instead of it,
just call the properties from outer world
4. Try to use  :index property if some objects are every time
changing.

These following practices will surely help you. If you need further
help managing object properties in a single place, let me know.

Regards
Siva Phaneendra Krapa
Virtusa.

--~--~-~--~~~---~--~~
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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-14 Thread satish

Here is HTML code..
==
Active Element: [INPUT], Index: [536]
 
===

Thanks
Satish


On May 14, 12:21 pm, kiran  wrote:
> Can u give me the html code?
>
> On May 14, 9:02 pm, satish  wrote:
>
>
>
> > I tried following. That did not help either.
> > For some reason its starting typing from at the end of the Phone MASK.
> > (___) ___-
>
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").fire_event
> > ('onblur')
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").fire_event
> > ('onchange')
> > sleep 3
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").fire_event
> > ('onfocus')
> > sleep 3
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").fire_event
> > ('onkeydown')
> > sleep 3
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").fire_event
> > ('onkeypress')
> > sleep 3
> > ie.text_field(:id,
> > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").fire_event
> > ('scrollLeft')
> > sleep 3
>
> > Thanks
> > Satish.
>
> > On May 14, 11:50 am, kiran  wrote:
>
> > > Hi sathish,
> > > Try to use fire_event actions on the text_field. I think it would help
> > > you.
> > > It is something like this
> > > ie.text_field("").fire_event("OnClick")
> > > see the source code.
>
> > > Thanks,
> > > kiran.
>
> > > On May 14, 7:50 pm, satish  wrote:
>
> > > > Can some one help me on this?
> > > > Satish.
>
> > > > On May 14, 8:20 am, satish  wrote:
>
> > > > > Can some one help me on this?
>
> > > > > Thanks
> > > > > Satish.
>
> > > > > On May 13, 4:26 pm, satish  wrote:
>
> > > > > > text_field is on the browser it self. No popups involved here.
>
> > > > > > Thanks
> > > > > > Satish.
>
> > > > > > On May 13, 4:21 pm, Anu Gangavaram  wrote:
>
> > > > > > > where is the text field, on the browser or the windows popup?  It 
> > > > > > > the
> > > > > > > textfield is on the popup, you are using the browser object to 
> > > > > > > focus. You
> > > > > > > should use AutoIt instead.
>
> > > > > > > On Wed, May 13, 2009 at 4:10 PM, satish  
> > > > > > > wrote:
>
> > > > > > > > I think I did focus on to text_field using following command.
> > > > > > > > ie.text_field(:id,
>
> > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­
> > > > > > > > askTextBox_I").focus
>
> > > > > > > > I guess that should do right?
>
> > > > > > > > Thanks
> > > > > > > > Satish.
>
> > > > > > > > On May 13, 4:06 pm, Anu Gangavaram  wrote:
> > > > > > > > > It is because the focus is currently set on the browser and 
> > > > > > > > > not on the
> > > > > > > > > popup/window.  You need to first set focus on the popup or 
> > > > > > > > > activate it:
> > > > > > > > > autoit.WinActive().
>
> > > > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish 
> > > > > > > > >  wrote:
>
> > > > > > > > > > Can some one tell me why my code here does not work?
> > > > > > > > > > It seems to be doing the Send action in the browser URL 
> > > > > > > > > > address area
> > > > > > > > > > instead of in the text_field area.
>
> > > > > > > > > > Here is my code..
> > > > > > > > > > =
> > > > > > > > > > require "watir"
> > > > > > > > > > require "win32ole"
> > > > > > > > > > ie.text_field(:id,
>
> > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­askTextBox_I").focus
> > > > > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > > > > autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > > autoit.Send("{LEFT}")
>
> > > > > > > > > > Can you some please let me know whats wrong with this code.
>
> > > > > > > > > > Appreciate your help
>
> > > > > > > > > > Thank you,
> > > > > > > > > > Satish.- Hide quoted text -
>
> > > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- 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 

[wtr-general] Re: kiosk mode?

2009-05-14 Thread sHiVa

Hi Phil,

You can open internet explorer in kiosk mode using the kiran's method.
Where you can open the explorer only.
Later if  you want to drive the browser, you need to use attach method
for automate the browser.

Follow the send keys method where you can not necessary to open the
browser and attaching the window.

require 'watir'
ie=Watir::IE.start('http://www.google.com')
puts ie.send_keys("{SHIFT}+{F11}")

here when the send key function calls, the browser will tern in to the
kiosk mode. Let me know if you need any further info.

Regards

Siva Phaneendra Krapa
Virtusa

--~--~-~--~~~---~--~~
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: kiosk mode?

2009-05-14 Thread phil

Um, yes, I know how to open IE in kiosk from a system call - how can I
do it via Watir? Or is there something else you are not telling me?

On May 14, 6:13 pm, kiran  wrote:
> Hi phil,
> I think it would help you.
>
> system('C:\\Program Files\\Internet Explorer\\iexplore.exe -k')
>
> Thanks,
> kiran.
>
> On May 14, 6:27 pm, phil  wrote:
>
> > Is there any way to have Watir open IE in kiosk mode?
>
> > 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: How to move the cursor to starting point in a masked text_field.

2009-05-14 Thread sHiVa

Dude,

Please use this before setting a value in your text field and let me
know if any issue.

ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­
askTextBox_I").clear

ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­
askTextBox_I").set
("12345678901234567890")

Regards
Siva Paneendra Krapa
Virtusa


--~--~-~--~~~---~--~~
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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-14 Thread kiran

Can u give me the html code?

On May 14, 9:02 pm, satish  wrote:
> I tried following. That did not help either.
> For some reason its starting typing from at the end of the Phone MASK.
> (___) ___-
>
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
> ('onblur')
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
> ('onchange')
> sleep 3
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
> ('onfocus')
> sleep 3
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
> ('onkeydown')
> sleep 3
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
> ('onkeypress')
> sleep 3
> ie.text_field(:id,
> "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
> ('scrollLeft')
> sleep 3
>
> Thanks
> Satish.
>
> On May 14, 11:50 am, kiran  wrote:
>
> > Hi sathish,
> > Try to use fire_event actions on the text_field. I think it would help
> > you.
> > It is something like this
> > ie.text_field("").fire_event("OnClick")
> > see the source code.
>
> > Thanks,
> > kiran.
>
> > On May 14, 7:50 pm, satish  wrote:
>
> > > Can some one help me on this?
> > > Satish.
>
> > > On May 14, 8:20 am, satish  wrote:
>
> > > > Can some one help me on this?
>
> > > > Thanks
> > > > Satish.
>
> > > > On May 13, 4:26 pm, satish  wrote:
>
> > > > > text_field is on the browser it self. No popups involved here.
>
> > > > > Thanks
> > > > > Satish.
>
> > > > > On May 13, 4:21 pm, Anu Gangavaram  wrote:
>
> > > > > > where is the text field, on the browser or the windows popup?  It 
> > > > > > the
> > > > > > textfield is on the popup, you are using the browser object to 
> > > > > > focus. You
> > > > > > should use AutoIt instead.
>
> > > > > > On Wed, May 13, 2009 at 4:10 PM, satish  
> > > > > > wrote:
>
> > > > > > > I think I did focus on to text_field using following command.
> > > > > > > ie.text_field(:id,
>
> > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­
> > > > > > > askTextBox_I").focus
>
> > > > > > > I guess that should do right?
>
> > > > > > > Thanks
> > > > > > > Satish.
>
> > > > > > > On May 13, 4:06 pm, Anu Gangavaram  wrote:
> > > > > > > > It is because the focus is currently set on the browser and not 
> > > > > > > > on the
> > > > > > > > popup/window.  You need to first set focus on the popup or 
> > > > > > > > activate it:
> > > > > > > > autoit.WinActive().
>
> > > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish 
> > > > > > > >  wrote:
>
> > > > > > > > > Can some one tell me why my code here does not work?
> > > > > > > > > It seems to be doing the Send action in the browser URL 
> > > > > > > > > address area
> > > > > > > > > instead of in the text_field area.
>
> > > > > > > > > Here is my code..
> > > > > > > > > =
> > > > > > > > > require "watir"
> > > > > > > > > require "win32ole"
> > > > > > > > > ie.text_field(:id,
>
> > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").focus
> > > > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > > > autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > > autoit.Send("{LEFT}")
>
> > > > > > > > > Can you some please let me know whats wrong with this code.
>
> > > > > > > > > Appreciate your help
>
> > > > > > > > > Thank you,
> > > > > > > > > Satish.- Hide quoted text -
>
> > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- 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: kiosk mode?

2009-05-14 Thread kiran

Hi phil,
I think it would help you.

system('C:\\Program Files\\Internet Explorer\\iexplore.exe -k')

Thanks,
kiran.

On May 14, 6:27 pm, phil  wrote:
> Is there any way to have Watir open IE in kiosk mode?
>
> 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-14 Thread satish

I tried following. That did not help either.
For some reason its starting typing from at the end of the Phone MASK.
(___) ___-


ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
('onblur')
ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
('onchange')
sleep 3
ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
('onfocus')
sleep 3
ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
('onkeydown')
sleep 3
ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
('onkeypress')
sleep 3
ie.text_field(:id,
"ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event
('scrollLeft')
sleep 3


Thanks
Satish.


On May 14, 11:50 am, kiran  wrote:
> Hi sathish,
> Try to use fire_event actions on the text_field. I think it would help
> you.
> It is something like this
> ie.text_field("").fire_event("OnClick")
> see the source code.
>
> Thanks,
> kiran.
>
> On May 14, 7:50 pm, satish  wrote:
>
>
>
> > Can some one help me on this?
> > Satish.
>
> > On May 14, 8:20 am, satish  wrote:
>
> > > Can some one help me on this?
>
> > > Thanks
> > > Satish.
>
> > > On May 13, 4:26 pm, satish  wrote:
>
> > > > text_field is on the browser it self. No popups involved here.
>
> > > > Thanks
> > > > Satish.
>
> > > > On May 13, 4:21 pm, Anu Gangavaram  wrote:
>
> > > > > where is the text field, on the browser or the windows popup?  It the
> > > > > textfield is on the popup, you are using the browser object to focus. 
> > > > > You
> > > > > should use AutoIt instead.
>
> > > > > On Wed, May 13, 2009 at 4:10 PM, satish  
> > > > > wrote:
>
> > > > > > I think I did focus on to text_field using following command.
> > > > > > ie.text_field(:id,
>
> > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­
> > > > > > askTextBox_I").focus
>
> > > > > > I guess that should do right?
>
> > > > > > Thanks
> > > > > > Satish.
>
> > > > > > On May 13, 4:06 pm, Anu Gangavaram  wrote:
> > > > > > > It is because the focus is currently set on the browser and not 
> > > > > > > on the
> > > > > > > popup/window.  You need to first set focus on the popup or 
> > > > > > > activate it:
> > > > > > > autoit.WinActive().
>
> > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish  
> > > > > > > wrote:
>
> > > > > > > > Can some one tell me why my code here does not work?
> > > > > > > > It seems to be doing the Send action in the browser URL address 
> > > > > > > > area
> > > > > > > > instead of in the text_field area.
>
> > > > > > > > Here is my code..
> > > > > > > > =
> > > > > > > > require "watir"
> > > > > > > > require "win32ole"
> > > > > > > > ie.text_field(:id,
>
> > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­askTextBox_I").focus
> > > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > > autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > autoit.Send("{LEFT}")
> > > > > > > > autoit.Send("{LEFT}")
>
> > > > > > > > Can you some please let me know whats wrong with this code.
>
> > > > > > > > Appreciate your help
>
> > > > > > > > Thank you,
> > > > > > > > Satish.- Hide quoted text -
>
> > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- 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 to move the cursor to starting point in a masked text_field.

2009-05-14 Thread Željko Filipin
2009/5/14 satish 
> can some one help me on this?

Maybe I could if you provided more information:

1) screen shot
2) html of the page (save it to your machine, open in web browser and see if
you can reproduce the problem with saved page)

Željko

--~--~-~--~~~---~--~~
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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-14 Thread kiran

Hi sathish,
Try to use fire_event actions on the text_field. I think it would help
you.
It is something like this
ie.text_field("").fire_event("OnClick")
see the source code.

Thanks,
kiran.


On May 14, 7:50 pm, satish  wrote:
> Can some one help me on this?
> Satish.
>
> On May 14, 8:20 am, satish  wrote:
>
> > Can some one help me on this?
>
> > Thanks
> > Satish.
>
> > On May 13, 4:26 pm, satish  wrote:
>
> > > text_field is on the browser it self. No popups involved here.
>
> > > Thanks
> > > Satish.
>
> > > On May 13, 4:21 pm, Anu Gangavaram  wrote:
>
> > > > where is the text field, on the browser or the windows popup?  It the
> > > > textfield is on the popup, you are using the browser object to focus. 
> > > > You
> > > > should use AutoIt instead.
>
> > > > On Wed, May 13, 2009 at 4:10 PM, satish  wrote:
>
> > > > > I think I did focus on to text_field using following command.
> > > > > ie.text_field(:id,
>
> > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM
> > > > > askTextBox_I").focus
>
> > > > > I guess that should do right?
>
> > > > > Thanks
> > > > > Satish.
>
> > > > > On May 13, 4:06 pm, Anu Gangavaram  wrote:
> > > > > > It is because the focus is currently set on the browser and not on 
> > > > > > the
> > > > > > popup/window.  You need to first set focus on the popup or activate 
> > > > > > it:
> > > > > > autoit.WinActive().
>
> > > > > > On Wed, May 13, 2009 at 3:43 PM, satish  
> > > > > > wrote:
>
> > > > > > > Can some one tell me why my code here does not work?
> > > > > > > It seems to be doing the Send action in the browser URL address 
> > > > > > > area
> > > > > > > instead of in the text_field area.
>
> > > > > > > Here is my code..
> > > > > > > =
> > > > > > > require "watir"
> > > > > > > require "win32ole"
> > > > > > > ie.text_field(:id,
>
> > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus
> > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > > autoit.Send("{LEFT}")
> > > > > > > autoit.Send("{LEFT}")
> > > > > > > autoit.Send("{LEFT}")
> > > > > > > autoit.Send("{LEFT}")
> > > > > > > autoit.Send("{LEFT}")
>
> > > > > > > Can you some please let me know whats wrong with this code.
>
> > > > > > > Appreciate your help
>
> > > > > > > Thank you,
> > > > > > > Satish.- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- 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: Help needed in automation using Watir

2009-05-14 Thread Željko Filipin
2009/5/14 Jim Matthews 
> If they don't respond, then you should
> talk to your manager who is interested in having automated tests

+1

Željko

--~--~-~--~~~---~--~~
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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-14 Thread satish

Can some one help me on this?
Satish.

On May 14, 8:20 am, satish  wrote:
> Can some one help me on this?
>
> Thanks
> Satish.
>
> On May 13, 4:26 pm, satish  wrote:
>
>
>
> > text_field is on the browser it self. No popups involved here.
>
> > Thanks
> > Satish.
>
> > On May 13, 4:21 pm, Anu Gangavaram  wrote:
>
> > > where is the text field, on the browser or the windows popup?  It the
> > > textfield is on the popup, you are using the browser object to focus. You
> > > should use AutoIt instead.
>
> > > On Wed, May 13, 2009 at 4:10 PM, satish  wrote:
>
> > > > I think I did focus on to text_field using following command.
> > > > ie.text_field(:id,
>
> > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM
> > > > askTextBox_I").focus
>
> > > > I guess that should do right?
>
> > > > Thanks
> > > > Satish.
>
> > > > On May 13, 4:06 pm, Anu Gangavaram  wrote:
> > > > > It is because the focus is currently set on the browser and not on the
> > > > > popup/window.  You need to first set focus on the popup or activate 
> > > > > it:
> > > > > autoit.WinActive().
>
> > > > > On Wed, May 13, 2009 at 3:43 PM, satish  
> > > > > wrote:
>
> > > > > > Can some one tell me why my code here does not work?
> > > > > > It seems to be doing the Send action in the browser URL address area
> > > > > > instead of in the text_field area.
>
> > > > > > Here is my code..
> > > > > > =
> > > > > > require "watir"
> > > > > > require "win32ole"
> > > > > > ie.text_field(:id,
>
> > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus
> > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > > autoit.Send("{LEFT}")
> > > > > > autoit.Send("{LEFT}")
> > > > > > autoit.Send("{LEFT}")
> > > > > > autoit.Send("{LEFT}")
> > > > > > autoit.Send("{LEFT}")
>
> > > > > > Can you some please let me know whats wrong with this code.
>
> > > > > > Appreciate your help
>
> > > > > > Thank you,
> > > > > > Satish.- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- 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 to move the cursor to starting point in a masked text_field.

2009-05-14 Thread satish
can some one help me on this?
Satish

On May 14, 8:21 am, satish  wrote:
> Can any one help me on this?
>
> Thanks
> Satish.
>
> On May 13, 4:17 pm, satish  wrote:
>
>
>
> > Here is my HTML for that
> > 
> >  Active Element: [INPUT], Index: [536]
> >   > id=ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_tx­­tMas
> >  kTextBox_I onkeydown="aspxEKeyDown
> > ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txt­­MaskTextBox',
> > event)" onblur="aspxELostFocus
> > ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_t
> >  xtMaskTextBox')" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px;
> > PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px;
> > PADDING-BOTTOM: 0px; MARGIN: 0px 1px 1px; WIDTH: 100%; PADDING-TOP:
> > 0px; BACKGROUND-COLOR:
> >   transparent; BORDER-RIGHT-WIDTH: 0px" onfocus="aspxEGotFocus
> > ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txt­­MaskTextBox')"
> > onchange="aspxEValueChanged
> > ('ctl00_contentChildWindow_secUserDetails_subsec
> >  UserInfo_txtPhoneNumber_txtMaskTextBox')" value="(___) ___-"
> > name=ctl00$contentChildWindow$secUserDetails$subsecUserInfo
> > $txtPhoneNumber$txtMaskTextBox>
> > ===­­
>
> > Thanks
> > Satish
>
> > On May 13, 4:12 pm, Vicky Goyal  wrote:
>
> > > wel,
> > > you need to check the javascript code for that.
> > > There might be some validation for putting a certain type of text.
> > > Chk out that functionality
> > > paste your code here... dont attach screen shot.. may be html code
>
> > > On May 14, 1:08 am, satish  wrote:
>
> > > > Hi Vikas, it does not type any thing since cursor is all the way to
> > > > the end. I can see it is trying to type at the end one letter at a
> > > > time.
> > > > But we want to start typing from the begining..
>
> > > > any thoughts on that.?
>
> > > > Thanks
> > > > Satish.
>
> > > > On May 13, 3:52 pm, Vicky Goyal  wrote:
>
> > > > > as you say
> > > > > if you have to set number as
> > > > > 123456789
> > > > > it s typing as                                      1
> > > > >                                                        2
> > > > >                                                       3
> > > > >                                                      4
> > > > >                                                     5
> > > > >                                                    6
> > > > >                                                   7
> > > > >                                                  8
> > > > >                                                 9
> > > > > i.e 987654321
>
> > > > > Well, i m not sure how to deal tht with watir code.
> > > > > but logically for your application, why dont you set value as
> > > > > 987654321
> > > > > so that it can save the way u want :) hope this helps
> > > > >                                                           9
> > > > >                                                        8
> > > > >                                                       7
> > > > >                                                      6
> > > > >                                                     6
> > > > >                                                    4
> > > > >                                                   3
> > > > >                                                  2
> > > > >                                                 1
> > > > > i.e 123456789
> > > > > this is the value you want.
>
> > > > > Go ahead with this approach, meanwhile community shall seek for more
> > > > > answers.. which directly hits the issue.
>
> > > > > regds
> > > > > Vikas goyal
> > > > > Infosys
>
> > > > > On May 14, 12:39 am, Željko Filipin 
> > > > > wrote:
>
> > > > > > On Wed, May 13, 2009 at 8:54 PM, satish  
> > > > > > wrote:
> > > > > > > I have a text field which has phone number mask "(___) ___-".
>
> > > > > > I have never seen something like that. Can you share a screen shot 
> > > > > > or link
> > > > > > to the page?
>
> > > > > > Željko- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- 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: Traversing nested elements

2009-05-14 Thread jason

Gofu,

I am not quite sure what you need.

you can select any element and ask it for containing elements.

for example:

ff.frame(:index, 1).links

gives you all the links in the container frame (the first one).

ff.form(:index,2).links

gives you all the links within the second form on the page.

does that make any sence??




On 13 Mai, 09:31, Gofu  wrote:
> Thank you jason,
>
> but i dont know whether they are links or tables (they sometimes
> change). I might be able to use decisions to write a routine for each
> element type seperately.
> Do you know how to do this in Watir?
>
> On May 12, 11:22 pm, jason  wrote:
>
> > not sure if this helps - but it might be a start
>
> > ff.tables.each do |table|
> >   table.links.each do |link|
> >     link.click #for example
> >  end
> > end
>
> > hope that helps.
>
> > On 12 Mai, 15:49, Gofu  wrote:
>
> > > Hello everyone,
>
> > > I have a website that is generated dynamically (jsp).
> > > I would like to use the help of Watir to traverse through all of the
> > > many levels of
> > > nested tables/links in this site.
>
> > > The problem is that I can't be certain about the attributes (name, id)
> > > of the tables/links because when the server
> > > updates, the content changes.
> > > The depth of the nesting and the width(number of elements) of the
> > > branching and the type of the elements
> > > are not known in advance.
>
> > > For example, you have
> > > 
> > >          
> > > 
>
> > > or sometimes
>
> > > 
> > >     
> > >          
> > >                
> > >          
> > >     
> > > 
>
> > > The links are nested in the table and I want to click all these links
> > > using Watir, but not other links on the page,
> > > (only the ones in the table).
>
> > > I'm still very new to Watir. Is it the right tool for this task?
>
> > > Million 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: I want to ask a question about "test/unit" frame

2009-05-14 Thread Felipe Knorr Kuhn

Try adding

require "test/unit/assertions"
include Test::Unit::Assertions

2009/5/14 jingshi.wan...@alibaba-inc.com :
>
> Hi, all
>   when I run the following code
>
> require 'test/unit'
> class TC_Pram < Test::Unit::TestCase
>   def initialize(name)
>     @name=name
>   end
>   def test_array
>      puts assert_equal(2,@name[2])
>   end
> end
> tc=TC_Pram.new("wang")
> tc.test_array
>
> there will be the error information as follows
>
> c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:125:in `add_assertion':
> undefined method `add_assertion' for nil:NilClass (NoMethodError)
>  from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:494:in
> `_wrap_assertion'
>  from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:46:in
> `assert_block'
>  from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:83:in
> `assert_equal'
>  from test_unit.rb:7:in `test_array'
>  from test_unit.rb:11
>
>
> I don't know how to resolve it  so ,I hope to get your help
> here ,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: Help needed in automation using Watir

2009-05-14 Thread Jim Matthews

Lokesh,

Your problem is not so much identifying objects as much as having your
developers not change their ids.

Your developers should be assigning unique ids to controls that you
use including input fields and buttons.  They should not be making
arbitrary  changes to ids, just like they should not be making
arbitrary changes to code.  The developers I work with use tools that
autogenerate some of the ids.  Normally these do not change because
the structure of the page remains the same (header, footer, menus).  I
work with a group of developers who understand the importance of
automated testing and will quickly add unique ids to elements in the
page.  There really are developers out there like that.

If your developers are serious about having automated tests, try
talking to them and explain your situation and ask them to work with
you to find a good solution.  If they don't respond, then you should
talk to your manager who is interested in having automated tests,
explain the situation (emphasize the time you could save if you did
not have to go back and change your tests all the time) and get him to
"influence" the developers.

Jim


On May 14, 8:11 am, Jason Shelton  wrote:
> I use a tool called PageSpy.  
>
> http://www.sembel.net/
>
> - Shelton
>
>
>
> > Date: Thu, 14 May 2009 14:37:00 +0530
> > Subject: [wtr-general] Re: Help needed in automation using Watir
> > From: karim@gmail.com
> > To: watir-general@googlegroups.com
>
> > you can use the IE developer tool bar on IE and firebug on firefox for
> > object identification, there is no special object spy which i know off
> > for watir, i largely believe these are the tools which are widely used
> > for object identification for watir.
>
> > If there is any thing for object spying like for QTP and SILKTEST then
> > guys please share.
>
> > On Thu, May 14, 2009 at 12:32 PM, Lokesh Agrawal
> >  wrote:
>
> > > Thanks Alkarim,
>
> > > Is there any other option in Watir for Object Identification??
>
> > > On May 14, 11:27 am, karim rayani  wrote:
> > >> when doing automation, any testing tool has the concept of object
> > >> identification be it QTP, SILKTEST etc, you can try to use indexing if
> > >> possible for object identification, the developer can change the name,
> > >> id etc indexing can help, but mind you that can also change if the
> > >> devs donot understand the pain of testing an application using an
> > >> automation tool
>
> > >> On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com
>
> > >>  wrote:
>
> > >> > Hi All,
>
> > >> > I am doing web application automation using Watir.
>
> > >> > The problem I am facing is, whenever we get a new build from
> > >> > developers there are changes in id, name of some objects. Due to which
> > >> > our scripts fails and manually we need to find what are the changes by
> > >> > viewing source code.
>
> > >> > This is really hectic and time consuming task. Everytime before
> > >> > running our Test suite to new build we need to modify scripts.
>
> > >> > Does anyone has solution of this problem?
>
> > >> > FYI: I am using Test Unit framework to run test cases.
>
> > >> > Thanks in Advance,
>
> > >> > Regards,
> > >> > Lokesh Agrawal
>
> > >> --
> > >> Regards,
>
> > >> Alkarim Rayani
>
> > --
> > Regards,
>
> > Alkarim Rayani
>
> _
> Hotmail® goes with 
> you.http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_T...
--~--~-~--~~~---~--~~
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] kiosk mode?

2009-05-14 Thread phil

Is there any way to have Watir open IE in kiosk mode?

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] Call for help! I meet a proble when I use the "test/unit"

2009-05-14 Thread jingshi.wan...@alibaba-inc.com

when I run the following code

require 'test/unit'
class TC_Pram < Test::Unit::TestCase
   def initialize(name)
 @name=name
   end
   def test_array
  puts assert_equal(2,@name[2])
   end
end
tc=TC_Pram.new("wang")
tc.test_array

there are some errors as follows

c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:125:in `add_assertion':
undefined method `add_assertion' for nil:NilClass (NoMethodError)
 from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:494:in
`_wrap_assertion'
 from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:46:in
`assert_block'
 from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:83:in
`assert_equal'
 from test_unit.rb:7:in `test_array'
 from test_unit.rb:11

I don't know how to resolve it , so I need  your help , 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] I want to ask a question about "test/unit" frame

2009-05-14 Thread jingshi.wan...@alibaba-inc.com

Hi, all
   when I run the following code

require 'test/unit'
class TC_Pram < Test::Unit::TestCase
   def initialize(name)
 @name=name
   end
   def test_array
  puts assert_equal(2,@name[2])
   end
end
tc=TC_Pram.new("wang")
tc.test_array

there will be the error information as follows

c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:125:in `add_assertion':
undefined method `add_assertion' for nil:NilClass (NoMethodError)
 from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:494:in
`_wrap_assertion'
 from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:46:in
`assert_block'
 from c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:83:in
`assert_equal'
 from test_unit.rb:7:in `test_array'
 from test_unit.rb:11


I don't know how to resolve it  so ,I hope to get your help
here ,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: javascript popup window not responding to startClicker

2009-05-14 Thread jason

oh my god! well done!!!

I say this without having tried it out - but it seems so obvious!.
I must say this whole frame thing is a pain in the a**

I will let you know how it integrate it - thanks a million. !!!



On 14 Mai, 07:49, jarodzz  wrote:
> Hi, Jason.
>
> After hacked a little in def startClicker, I have it worked within my
> iframe.
> all you got to do is to update the first line of startClicker to
> locate the right frame.
> e.g.
> original one:
> jssh_command = "var win = #{BROWSER_VAR}.contentWindow;"
> if you want click something in frame A:
> jssh_command = "var win = #
> {BROWSER_VAR}.contentWindow.document.getElementById(#
> {frame_id}).contentWindow;"
>
> you can update it a little to make a work more gracefully.
> Hope it works.
>
> On May 13, 12:30 am, jason  wrote:
>
> > I am on a mac and linux with firefox so i cannot use this Autoitx
> > thing that everyone seems to be using to click away javascript popups
> > when then they appear.
>
> > the code below works most of the time - but for some reason no the
> > websitehttp://www.stepstone.de
> > The pop appear - but it does not get clicked away.!! any ideas out
> > there??
>
> > ff = FireWatir::Firefox.new
> > ff.goto("http://www.stepstone.de";)
> > ff.startClicker("ok")
> > ff.frame(:name, "maincontent").frame(:name, "content").image(:name,
> > "Search").click
>
> > Thanks a million.
> > Jason.
--~--~-~--~~~---~--~~
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 fetch the Selected Item in a ListBox

2009-05-14 Thread Darin Duphorn
My bad, you want to get the current value correct?

 

Current_item = Listbox(:id,'blah).getSelectedItems.to_s   

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn
Sent: Thursday, May 14, 2009 8:51 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: How to fetch the Selected Item in a ListBox

 

Try this

Listbox_Items = Listbox(:id,'blah').getAllContents

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Pallavi Sharma
Sent: Thursday, May 14, 2009 8:40 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] How to fetch the Selected Item in a ListBox

 

Hi

I want to fetch the selected item in a list box , tried the
selected_options() 

but it doesnt work gives "sele.rb:4: undefined method `selected_options'
for # (NoMethodError)" error


can anyone here help??


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: How to fetch the Selected Item in a ListBox

2009-05-14 Thread sHiVa

Use this code for retriving the current value of a list box

selectedItem= ie.select_list(:name,'List box name').value


Regards
Siva Phaneednra Krapa
--~--~-~--~~~---~--~~
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 fetch the Selected Item in a ListBox

2009-05-14 Thread Darin Duphorn
Try this

Listbox_Items = Listbox(:id,'blah').getAllContents

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Pallavi Sharma
Sent: Thursday, May 14, 2009 8:40 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] How to fetch the Selected Item in a ListBox

 

Hi

I want to fetch the selected item in a list box , tried the
selected_options() 

but it doesnt work gives "sele.rb:4: undefined method `selected_options'
for # (NoMethodError)" error


can anyone here help??


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] How to fetch the Selected Item in a ListBox

2009-05-14 Thread Pallavi Sharma
Hi

I want to fetch the selected item in a list box , tried the
selected_options()

but it doesnt work gives "sele.rb:4: undefined method `selected_options' for
# (NoMethodError)" error


can anyone here help??


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: Help needed in automation using Watir

2009-05-14 Thread Jason Shelton

I use a tool called PageSpy.  

http://www.sembel.net/

 

- Shelton
 
> Date: Thu, 14 May 2009 14:37:00 +0530
> Subject: [wtr-general] Re: Help needed in automation using Watir
> From: karim@gmail.com
> To: watir-general@googlegroups.com
> 
> 
> you can use the IE developer tool bar on IE and firebug on firefox for
> object identification, there is no special object spy which i know off
> for watir, i largely believe these are the tools which are widely used
> for object identification for watir.
> 
> If there is any thing for object spying like for QTP and SILKTEST then
> guys please share.
> 
> On Thu, May 14, 2009 at 12:32 PM, Lokesh Agrawal
>  wrote:
> >
> > Thanks Alkarim,
> >
> > Is there any other option in Watir for Object Identification??
> >
> >
> > On May 14, 11:27 am, karim rayani  wrote:
> >> when doing automation, any testing tool has the concept of object
> >> identification be it QTP, SILKTEST etc, you can try to use indexing if
> >> possible for object identification, the developer can change the name,
> >> id etc indexing can help, but mind you that can also change if the
> >> devs donot understand the pain of testing an application using an
> >> automation tool
> >>
> >> On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com
> >>
> >>
> >>
> >>  wrote:
> >>
> >> > Hi All,
> >>
> >> > I am doing web application automation using Watir.
> >>
> >> > The problem I am facing is, whenever we get a new build from
> >> > developers there are changes in id, name of some objects. Due to which
> >> > our scripts fails and manually we need to find what are the changes by
> >> > viewing source code.
> >>
> >> > This is really hectic and time consuming task. Everytime before
> >> > running our Test suite to new build we need to modify scripts.
> >>
> >> > Does anyone has solution of this problem?
> >>
> >> > FYI: I am using Test Unit framework to run test cases.
> >>
> >> > Thanks in Advance,
> >>
> >> > Regards,
> >> > Lokesh Agrawal
> >>
> >> --
> >> Regards,
> >>
> >> Alkarim Rayani
> > >
> >
> 
> 
> 
> -- 
> Regards,
> 
> Alkarim Rayani
> 
> > 

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
--~--~-~--~~~---~--~~
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 move the cursor to starting point in a masked text_field.

2009-05-14 Thread satish
Can any one help me on this?

Thanks
Satish.


On May 13, 4:17 pm, satish  wrote:
> Here is my HTML for that
> 
>  Active Element: [INPUT], Index: [536]
>   id=ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_tx­tMas
>  kTextBox_I onkeydown="aspxEKeyDown
> ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txt­MaskTextBox',
> event)" onblur="aspxELostFocus
> ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_t
>  xtMaskTextBox')" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px;
> PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px;
> PADDING-BOTTOM: 0px; MARGIN: 0px 1px 1px; WIDTH: 100%; PADDING-TOP:
> 0px; BACKGROUND-COLOR:
>   transparent; BORDER-RIGHT-WIDTH: 0px" onfocus="aspxEGotFocus
> ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txt­MaskTextBox')"
> onchange="aspxEValueChanged
> ('ctl00_contentChildWindow_secUserDetails_subsec
>  UserInfo_txtPhoneNumber_txtMaskTextBox')" value="(___) ___-"
> name=ctl00$contentChildWindow$secUserDetails$subsecUserInfo
> $txtPhoneNumber$txtMaskTextBox>
> ===­
>
> Thanks
> Satish
>
> On May 13, 4:12 pm, Vicky Goyal  wrote:
>
>
>
> > wel,
> > you need to check the javascript code for that.
> > There might be some validation for putting a certain type of text.
> > Chk out that functionality
> > paste your code here... dont attach screen shot.. may be html code
>
> > On May 14, 1:08 am, satish  wrote:
>
> > > Hi Vikas, it does not type any thing since cursor is all the way to
> > > the end. I can see it is trying to type at the end one letter at a
> > > time.
> > > But we want to start typing from the begining..
>
> > > any thoughts on that.?
>
> > > Thanks
> > > Satish.
>
> > > On May 13, 3:52 pm, Vicky Goyal  wrote:
>
> > > > as you say
> > > > if you have to set number as
> > > > 123456789
> > > > it s typing as                                      1
> > > >                                                        2
> > > >                                                       3
> > > >                                                      4
> > > >                                                     5
> > > >                                                    6
> > > >                                                   7
> > > >                                                  8
> > > >                                                 9
> > > > i.e 987654321
>
> > > > Well, i m not sure how to deal tht with watir code.
> > > > but logically for your application, why dont you set value as
> > > > 987654321
> > > > so that it can save the way u want :) hope this helps
> > > >                                                           9
> > > >                                                        8
> > > >                                                       7
> > > >                                                      6
> > > >                                                     6
> > > >                                                    4
> > > >                                                   3
> > > >                                                  2
> > > >                                                 1
> > > > i.e 123456789
> > > > this is the value you want.
>
> > > > Go ahead with this approach, meanwhile community shall seek for more
> > > > answers.. which directly hits the issue.
>
> > > > regds
> > > > Vikas goyal
> > > > Infosys
>
> > > > On May 14, 12:39 am, Željko Filipin 
> > > > wrote:
>
> > > > > On Wed, May 13, 2009 at 8:54 PM, satish  
> > > > > wrote:
> > > > > > I have a text field which has phone number mask "(___) ___-".
>
> > > > > I have never seen something like that. Can you share a screen shot or 
> > > > > link
> > > > > to the page?
>
> > > > > Željko- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-14 Thread satish

Can some one help me on this?

Thanks
Satish.

On May 13, 4:26 pm, satish  wrote:
> text_field is on the browser it self. No popups involved here.
>
> Thanks
> Satish.
>
> On May 13, 4:21 pm, Anu Gangavaram  wrote:
>
>
>
> > where is the text field, on the browser or the windows popup?  It the
> > textfield is on the popup, you are using the browser object to focus. You
> > should use AutoIt instead.
>
> > On Wed, May 13, 2009 at 4:10 PM, satish  wrote:
>
> > > I think I did focus on to text_field using following command.
> > > ie.text_field(:id,
>
> > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­­
> > > askTextBox_I").focus
>
> > > I guess that should do right?
>
> > > Thanks
> > > Satish.
>
> > > On May 13, 4:06 pm, Anu Gangavaram  wrote:
> > > > It is because the focus is currently set on the browser and not on the
> > > > popup/window.  You need to first set focus on the popup or activate it:
> > > > autoit.WinActive().
>
> > > > On Wed, May 13, 2009 at 3:43 PM, satish  wrote:
>
> > > > > Can some one tell me why my code here does not work?
> > > > > It seems to be doing the Send action in the browser URL address area
> > > > > instead of in the text_field area.
>
> > > > > Here is my code..
> > > > > =
> > > > > require "watir"
> > > > > require "win32ole"
> > > > > ie.text_field(:id,
>
> > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­­­askTextBox_I").focus
> > > > > puts autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > autoit = WIN32OLE.new('AutoItX3.Control')
> > > > > autoit.Send("{LEFT}")
> > > > > autoit.Send("{LEFT}")
> > > > > autoit.Send("{LEFT}")
> > > > > autoit.Send("{LEFT}")
> > > > > autoit.Send("{LEFT}")
>
> > > > > Can you some please let me know whats wrong with this code.
>
> > > > > Appreciate your help
>
> > > > > Thank you,
> > > > > Satish.- Hide quoted text -
>
> > > > - Show quoted text -- 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: jssh (firefox) and unicode

2009-05-14 Thread Frank

Hallo,

with the following code i got i working on Windows with IE and Firefox
(for Linux you might need to omit or change the conversion to a
different encoding than CP1252).
The first part i got from the other thread "Watir utf-8 (japnese)
support".
It might not work for Japanese strings, because the Windows encoding
does not contain these characters, but for European characters its
fine.
The additional elements (dd, dt, dl, strong) might be useful for you.

Regards,
Frank

# set encoding
$KCODE = "u"
WIN32OLE.codepage = WIN32OLE::CP_UTF8

require 'iconv'

module FireWatir
  class DD < NonControlElement
TAG='DD'
  end
  class DL < NonControlElement
TAG='DL'
  end
  class DT < NonControlElement
TAG='DT'
  end
  class STRONG < NonControlElement
TAG='STRONG'
  end
  class TextField
def doKeyPress( value )
  # do not ask me why
  value = Iconv.conv('CP1252', 'UTF-8', value)
  @o.value = value
  fire_key_events
end
  end
end

On May 1, 2:57 pm, John Kolokotronis  wrote:
> I'm having similar problems working with double byte unicode, like
> Japanese and yes, I'm certain the problem is with the jssh extension -
> unfortunately, I don't know of any real solution and given that jssh
> is abandonware, it's very hard to get any help with it on any
> platform. Unicode works for me when it comes to getting values from
> the browser, e.g doing this on button with a Japanese value, will
> work:
>
> @browser.button(:id, "btn_back").value.should == JapaneseString # I
> have to load the string from an Excel sheet though to avoid problems,
> so the assertion checks against a variable or constant that is loading
> the string content from within the Excel file...
>
> But setting a text_field with unicode, like:
>
> @browser.text_field(:id, "whatever").set(JapaneseString) # again
> loading the unicode string from Excel...
>
> results in garbage characters... The "value" method does not work
> either:
>
> @browser.text_field(:id, "whatever").value = JapaneseString
>
> I'm not sure jssh can even be compiled with proper unicode support,
> but I just don't know enough about it to be able to try on my own...
> Sorry I didn't have any real solution for you...
>
> Regards,
>
> John
>
> On May 1, 12:54 am, Stacia  wrote:
>
> > I've been working all day to try to get unicode displayed in text
> > fields properly. I've come to the conclusion that probably the JSSH
> > socket connection doesn't support having unicode sent over it - is
> > there anyone who can confirm this? I saw a fix for Chinese, but this
> > was for IE, and other fixes involved ugliness like using Excel. Every
> > time I try to send unicode data (encoded in various ways with
> > different libraries) the output is always junk. Would building Firefox
> > with JSSH support built in help at all?  (not that it's an easy option
> > on windows, but still). I was trying to experiment with JSSH myself
> > using my own telnet client, but I couldn't find a unicode friendly
> > telnet client at all (not a good sign). I've tried everything: I
> > changed the default encoding of Firefox to utf8, I tried nkf, iconv,
> > and packing arrays of ints into unicode chars. All of these just
> > output junk (although the last method I could write to text files
> > fine) I've learned a lot about unicode in *Ruby* but if the problem is
> > unicode over JSSH that's beyond me.
>
> > I also have rewritten the doKeyPressMethod for quite a while now, it
> > looks like this:
>
> > class FireWatir::TextField
> >   def doKeyPress( value )
> >     @o.value = value
> >     fire_key_events
> >   end
> > end
>
> > this solves the slow text input problem on linux. I don't care about
> > inputting the text character by character, which may have caused an
> > issue with the unicode. I tried just putting in some unicode at that
> > low level by setting @o.value to a unicode value directly (not sure
> > how to get even lower level at the JSSH level) and that didn't help.
>
> > Please, if I could just get a simple yes or no about whether this is
> > even possible over JSSH, that would help a lot, 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: Help needed in automation using Watir

2009-05-14 Thread karim rayani

you can use the IE developer tool bar on IE and firebug on firefox for
object identification, there is no special object spy which i know off
for watir, i largely believe these are the tools which are widely used
for object identification for watir.

If there is any thing for object spying like for QTP and SILKTEST then
guys please share.

On Thu, May 14, 2009 at 12:32 PM, Lokesh Agrawal
 wrote:
>
> Thanks Alkarim,
>
> Is there any other option in Watir for Object Identification??
>
>
> On May 14, 11:27 am, karim rayani  wrote:
>> when doing automation, any testing tool has the concept of object
>> identification be it QTP, SILKTEST etc, you can try to use indexing if
>> possible for object identification, the developer can change the name,
>> id etc indexing can help, but mind you that can also change if the
>> devs donot understand the pain of testing an application using an
>> automation tool
>>
>> On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com
>>
>>
>>
>>  wrote:
>>
>> > Hi All,
>>
>> > I am doing web application automation using Watir.
>>
>> > The problem I am facing is, whenever we get a new build from
>> > developers there are changes in id, name of some objects. Due to which
>> > our scripts fails and manually we need to find what are the changes by
>> > viewing source code.
>>
>> > This is really hectic and time consuming task. Everytime before
>> > running our Test suite to new build we need to modify scripts.
>>
>> > Does anyone has solution of this problem?
>>
>> > FYI: I am using Test Unit framework to run test cases.
>>
>> > Thanks in Advance,
>>
>> > Regards,
>> > Lokesh Agrawal
>>
>> --
>> Regards,
>>
>> Alkarim Rayani
> >
>



-- 
Regards,

Alkarim Rayani

--~--~-~--~~~---~--~~
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: Help needed in automation using Watir

2009-05-14 Thread Vicky Goyal

If you use IDE, that would help you to work little better.
Dunno if you using that or not.

Apart from that, i don't think there would be a solution.. only
developers should feel little mercy.. :)

On May 14, 12:02 pm, Lokesh Agrawal  wrote:
> Thanks Alkarim,
>
> Is there any other option in Watir for Object Identification??
>
> On May 14, 11:27 am, karim rayani  wrote:
>
>
>
> > when doing automation, any testing tool has the concept of object
> > identification be it QTP, SILKTEST etc, you can try to use indexing if
> > possible for object identification, the developer can change the name,
> > id etc indexing can help, but mind you that can also change if the
> > devs donot understand the pain of testing an application using an
> > automation tool
>
> > On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com
>
> >  wrote:
>
> > > Hi All,
>
> > > I am doing web application automation using Watir.
>
> > > The problem I am facing is, whenever we get a new build from
> > > developers there are changes in id, name of some objects. Due to which
> > > our scripts fails and manually we need to find what are the changes by
> > > viewing source code.
>
> > > This is really hectic and time consuming task. Everytime before
> > > running our Test suite to new build we need to modify scripts.
>
> > > Does anyone has solution of this problem?
>
> > > FYI: I am using Test Unit framework to run test cases.
>
> > > Thanks in Advance,
>
> > > Regards,
> > > Lokesh Agrawal
>
> > --
> > Regards,
>
> > Alkarim Rayani- 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: Help needed in automation using Watir

2009-05-14 Thread Lokesh Agrawal

Thanks Alkarim,

Is there any other option in Watir for Object Identification??


On May 14, 11:27 am, karim rayani  wrote:
> when doing automation, any testing tool has the concept of object
> identification be it QTP, SILKTEST etc, you can try to use indexing if
> possible for object identification, the developer can change the name,
> id etc indexing can help, but mind you that can also change if the
> devs donot understand the pain of testing an application using an
> automation tool
>
> On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com
>
>
>
>  wrote:
>
> > Hi All,
>
> > I am doing web application automation using Watir.
>
> > The problem I am facing is, whenever we get a new build from
> > developers there are changes in id, name of some objects. Due to which
> > our scripts fails and manually we need to find what are the changes by
> > viewing source code.
>
> > This is really hectic and time consuming task. Everytime before
> > running our Test suite to new build we need to modify scripts.
>
> > Does anyone has solution of this problem?
>
> > FYI: I am using Test Unit framework to run test cases.
>
> > Thanks in Advance,
>
> > Regards,
> > Lokesh Agrawal
>
> --
> Regards,
>
> Alkarim Rayani
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---