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



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

2009-10-01 Thread Pallavi Sharma
Thanks

did that works, but it works as a text _field so will it be okay to do so?

On Thu, Oct 1, 2009 at 12:00 PM, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:

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



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

2009-10-01 Thread Pallavi Sharma
Well It will be great to have the function and i did and figured out the
index,

But still if you may please share the function that will be helpful

Regards

Pallavi.

On Thu, Oct 1, 2009 at 12:14 PM, kiran yajamanyam kiranyajaman...@gmail.com
 wrote:

 yes it will work, just do trial and error basis by changing index value
 from 1 until you get the correct one. Still if didnt work let me know i will
 give you a small function where you can get the index value at run time for
 your text field


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

 Thanks

 did that works, but it works as a text _field so will it be okay to do so?


 On Thu, Oct 1, 2009 at 12:00 PM, kiran yajamanyam 
 kiranyajaman...@gmail.com wrote:

 Try with index. This will be the best way.

 Regards,
 Kiran


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

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



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

2009-10-01 Thread Željko Filipin
On Thu, Oct 1, 2009 at 8:28 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete=off
dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents;
keyUp: onKeyUp; compositionEnd; onResize; value= /

browser.text_field(:class, dojoComboBox autoSelectBox).set some text

More information:

http://wiki.openqa.org/display/WTR/Text+Fields

You can always use xpath:

http://wiki.openqa.org/display/WTR/XPath

Željko
--
http://watirpodcast.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] Re: Third Party Combo Boxes in an Input Tag

2009-10-01 Thread Pallavi Sharma
Zeljko

I tried using class, but this doesn't work, only index worked. XPath is also
a good idea will try it

Thanks :)

On Thu, Oct 1, 2009 at 1:25 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Thu, Oct 1, 2009 at 8:28 AM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  INPUT class=dojoComboBox autoSelectBox __doClobber__
 autocomplete=off dojoAttachPoint=textInputNode
 dojoAttachEvent=key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd;
 onResize; value= /

 browser.text_field(:class, dojoComboBox autoSelectBox).set some text

 More information:

 http://wiki.openqa.org/display/WTR/Text+Fields

 You can always use xpath:

 http://wiki.openqa.org/display/WTR/XPath

 Željko
 --
 http://watirpodcast.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] Re: Third Party Combo Boxes in an Input Tag

2009-10-01 Thread Željko Filipin
On Thu, Oct 1, 2009 at 10:19 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 I tried using class, but this doesn't work, only index worked.

doesn't work does not tell me a lot. You can combine class and index:

browser.text_field(:class = dojoComboBox autoSelectBox, :index = 2).set
some text

More information:

http://wiki.openqa.org/display/WTR/Multiple+Attributes

Ž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: Third Party Combo Boxes in an Input Tag

2009-10-01 Thread Pallavi Sharma
I know multiple attributes. Doesn;t work means not able to identify the
object when i used :class property and the value.

Will try in combination with index although i doubt.

Thanks

On Thu, Oct 1, 2009 at 2:02 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Thu, Oct 1, 2009 at 10:19 AM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  I tried using class, but this doesn't work, only index worked.

 doesn't work does not tell me a lot. You can combine class and index:

 browser.text_field(:class = dojoComboBox autoSelectBox, :index = 2).set
 some text

 More information:

 http://wiki.openqa.org/display/WTR/Multiple+Attributes

 Ž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
-~--~~~~--~~--~--~---