[wtr-general] Re: Issue with Select List

2012-07-19 Thread tkp
Hello,

I am facing a similar issue with Watir 3.0.0. 

Clearing  the select_list() entry using  
sdiv.select_list(:name,"User").select "" gives "undefined method `parent' 
for nil:NilClass"
[Note : sdivs is a variable use to access a series of divs.]

Please let me know if there is any workaround for this problem.



On Tuesday, 9 June 2009 11:19:14 UTC+5:30, Pallavi wrote:
>
> Hi
>
> I have a scenario in which, if i chose a value in a select list, the same 
> value is filled in a text box given by calling an onchange event.
>
> code looks like: onfocus="enterField(this)" size="1" stype="Selection">
>
>  onfocus="enterField(this)" onkeypress="NumberKeyCheck()" stype="Number" 
> type="text" value="0" />
>
>
> The problem with this is when i do it manually, whatever value i chose in 
> select list, it gets filled in the text box but when i do using the 
> function:
>
> ie.select_list(:name,"ABC").select(value)
>
> it selects a value but doesn' fills the text box.
>
> I tried the fire events also but no help.
>
> Can anyone in the group please help me with this issue.
>
> [watir -1.6.2]
>
> Thanks
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Issue with Select List

2009-07-31 Thread Win
Hi Ravinder,
Are you using Internet Explorer for this?

If so, all commands that try to move a focus/cursor will be useless until
you move the focus from the url address navigator (where users type '
www.google.com'). Hence, move that cursor to somewhere else first either by
mouse click to any other field on the HTML page or [TAB]

--Win--

On Thu, Jul 9, 2009 at 4:05 AM, Ravinder Singroha <
ravindersingr...@gmail.com> wrote:

>
> Hi Bhaskar
>
> We tried almost all set of combination like onchange,onblur n all
> events but its not working.
> is there another way ?
>
> Thanks & Regards
> Ravinder Singroha
>
> On Jul 9, 3:26 am, Powerglide  wrote:
> > Hi,
> >Did you try issuing "onblur" or "onchange"
> >
> >ie.select_list(:name,"ABC").select(value)
> >ie.select_list(:name,"ABC").fire_event("onblur")   # if this
> > does'nt work then try
> >ie.select_list(:name,"ABC").fire_event("onchange")
> >
> > Regards,
> >
> > Bhaskar
> >
> > On Jul 7, 11:10 pm, Ravinder Singroha 
> > wrote:
> >
> > > Hi
> >
> > > I have a scenario in which, if i chose a value in a select list, the
> > > same value is filled in a text box given by calling an onchange event.
> >
> > > code looks like:
> >
> > >  > > stype="Number" type="text" value="0" />
> >
> > > The problem with this is when i do it manually, whatever value i chose
> > > in select list, it gets filled in the text box but when i do using the
> > > function:
> >
> > > ie.select_list(:name,"ABC").select(value)
> >
> > > it selects a value but doesn' fills the text box.
> >
> > > I tried the fire events also but no help.
> >
> > > Can anyone in the group please help me with this issue.
> >
> > > I am using  -> [watir -1.6.2]
> >
> > > i have a chat with  developers and he told to fire onfocus then
> > > onchange event, after selecting the value.
> > > i tried that and other combination too but no success so far.
> >
> > > is there anything else i am missing on in here.
> > > i have tried it with QTP  and open source Selenium its working there,
> > > but its not working with Watir, is this  a know issue with watir ?
> >
> > > Thanks
> > > Ravinder Singroha
> >
>

--~--~-~--~~~---~--~~
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: Issue with Select List

2009-07-13 Thread Željko Filipin
On Sat, Jul 11, 2009 at 6:15 AM, Ravinder Singroha <
ravindersingr...@gmail.com> wrote:
> The site only works with IE so cannot do reverse engineering with Firebug,
is there something similar as firebug for IE?

http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en

Ž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: Issue with Select List

2009-07-10 Thread Ravinder Singroha
I agree with you,

If this helps, whenever i do a select event on that list using watir, it
kinda like hangs the UI and then the select list doesn't performs it normal
operation, which was whatever is selected on the list should be displayed in
the text box.

The text box is a read only so i cannot do any .set operations on it.

Have tries onfocus, onchange, onblur, onclick all events i could possibly
fire.. and in combinations.

Tried the TAB key event too.

Is there any Sync problem? The site only works with IE so cannot do reverse
engineering with Firebug, is there something similar as firebug for IE??

How do i get to know which events are fired what could i possibly use here??



Thanks & regards
Ravinder Singroha
+91-9717196269


On Sat, Jul 11, 2009 at 1:11 AM, Chuck van der Linden wrote:

>
> I notice there's onfocus..
>
> Potentially the object itself is being changed slightly when the focus
> hits it..  so the page code you are looking at, may not be what's
> there the instant someone has clicked the box to enter a change.
>
> I'd use the dev toolbar, or firebug and  have a REALLY close look at
> what happens to things inside the dom the moment someone clicks or
> otherwise (via via pressing the tab key) sets the focus onto that
> item.  There may be something that has to happen then that primes the
> pump, and without that happening nothing works.. .
>
> Sites that are that highly event driven can be a real challenge.. you
> sometimes have to reverse engineer stuff by watching what happens as
> the site responds to each user action such as mouseclicks and key
> presses.
>
> Also look at what happens if you do things like stick a string into
> the clipboard, right-click that area and paste in the value, (which is
> closer to using the .set method than typing char by char, especially
> on a page with an element setup to react to every single stinking
> keypress...
>
> On Jul 9, 4:05 am, Ravinder Singroha 
> wrote:
> > Hi Bhaskar
> >
> > We tried almost all set of combination like onchange,onblur n all
> > events but its not working.
> > is there another way ?
> >
> > Thanks & Regards
> > Ravinder Singroha
> >
> > On Jul 9, 3:26 am, Powerglide  wrote:
> >
> >
> >
> > > Hi,
> > >Did you try issuing "onblur" or "onchange"
> >
> > >ie.select_list(:name,"ABC").select(value)
> > >ie.select_list(:name,"ABC").fire_event("onblur")   # if this
> > > does'nt work then try
> > >ie.select_list(:name,"ABC").fire_event("onchange")
> >
> > > Regards,
> >
> > > Bhaskar
> >
> > > On Jul 7, 11:10 pm, Ravinder Singroha 
> > > wrote:
> >
> > > > Hi
> >
> > > > I have a scenario in which, if i chose a value in a select list, the
> > > > same value is filled in a text box given by calling an onchange
> event.
> >
> > > > code looks like:
> >
> > > >  > > > stype="Number" type="text" value="0" />
> >
> > > > The problem with this is when i do it manually, whatever value i
> chose
> > > > in select list, it gets filled in the text box but when i do using
> the
> > > > function:
> >
> > > > ie.select_list(:name,"ABC").select(value)
> >
> > > > it selects a value but doesn' fills the text box.
> >
> > > > I tried the fire events also but no help.
> >
> > > > Can anyone in the group please help me with this issue.
> >
> > > > I am using  -> [watir -1.6.2]
> >
> > > > i have a chat with  developers and he told to fire onfocus then
> > > > onchange event, after selecting the value.
> > > > i tried that and other combination too but no success so far.
> >
> > > > is there anything else i am missing on in here.
> > > > i have tried it with QTP  and open source Selenium its working there,
> > > > but its not working with Watir, is this  a know issue with watir ?
> >
> > > > Thanks
> > > > Ravinder Singroha- 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: Issue with Select List

2009-07-10 Thread Chuck van der Linden

I notice there's onfocus..

Potentially the object itself is being changed slightly when the focus
hits it..  so the page code you are looking at, may not be what's
there the instant someone has clicked the box to enter a change.

I'd use the dev toolbar, or firebug and  have a REALLY close look at
what happens to things inside the dom the moment someone clicks or
otherwise (via via pressing the tab key) sets the focus onto that
item.  There may be something that has to happen then that primes the
pump, and without that happening nothing works.. .

Sites that are that highly event driven can be a real challenge.. you
sometimes have to reverse engineer stuff by watching what happens as
the site responds to each user action such as mouseclicks and key
presses.

Also look at what happens if you do things like stick a string into
the clipboard, right-click that area and paste in the value, (which is
closer to using the .set method than typing char by char, especially
on a page with an element setup to react to every single stinking
keypress...

On Jul 9, 4:05 am, Ravinder Singroha 
wrote:
> Hi Bhaskar
>
> We tried almost all set of combination like onchange,onblur n all
> events but its not working.
> is there another way ?
>
> Thanks & Regards
> Ravinder Singroha
>
> On Jul 9, 3:26 am, Powerglide  wrote:
>
>
>
> > Hi,
> >    Did you try issuing "onblur" or "onchange"
>
> >    ie.select_list(:name,"ABC").select(value)
> >    ie.select_list(:name,"ABC").fire_event("onblur")   # if this
> > does'nt work then try
> >    ie.select_list(:name,"ABC").fire_event("onchange")
>
> > Regards,
>
> > Bhaskar
>
> > On Jul 7, 11:10 pm, Ravinder Singroha 
> > wrote:
>
> > > Hi
>
> > > I have a scenario in which, if i chose a value in a select list, the
> > > same value is filled in a text box given by calling an onchange event.
>
> > > code looks like:
>
> > >  > > stype="Number" type="text" value="0" />
>
> > > The problem with this is when i do it manually, whatever value i chose
> > > in select list, it gets filled in the text box but when i do using the
> > > function:
>
> > > ie.select_list(:name,"ABC").select(value)
>
> > > it selects a value but doesn' fills the text box.
>
> > > I tried the fire events also but no help.
>
> > > Can anyone in the group please help me with this issue.
>
> > > I am using  -> [watir -1.6.2]
>
> > > i have a chat with  developers and he told to fire onfocus then
> > > onchange event, after selecting the value.
> > > i tried that and other combination too but no success so far.
>
> > > is there anything else i am missing on in here.
> > > i have tried it with QTP  and open source Selenium its working there,
> > > but its not working with Watir, is this  a know issue with watir ?
>
> > > Thanks
> > > Ravinder Singroha- 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: Issue with Select List

2009-07-09 Thread Ravinder Singroha

Hi Bhaskar

We tried almost all set of combination like onchange,onblur n all
events but its not working.
is there another way ?

Thanks & Regards
Ravinder Singroha

On Jul 9, 3:26 am, Powerglide  wrote:
> Hi,
>    Did you try issuing "onblur" or "onchange"
>
>    ie.select_list(:name,"ABC").select(value)
>    ie.select_list(:name,"ABC").fire_event("onblur")   # if this
> does'nt work then try
>    ie.select_list(:name,"ABC").fire_event("onchange")
>
> Regards,
>
> Bhaskar
>
> On Jul 7, 11:10 pm, Ravinder Singroha 
> wrote:
>
> > Hi
>
> > I have a scenario in which, if i chose a value in a select list, the
> > same value is filled in a text box given by calling an onchange event.
>
> > code looks like:
>
> >  > stype="Number" type="text" value="0" />
>
> > The problem with this is when i do it manually, whatever value i chose
> > in select list, it gets filled in the text box but when i do using the
> > function:
>
> > ie.select_list(:name,"ABC").select(value)
>
> > it selects a value but doesn' fills the text box.
>
> > I tried the fire events also but no help.
>
> > Can anyone in the group please help me with this issue.
>
> > I am using  -> [watir -1.6.2]
>
> > i have a chat with  developers and he told to fire onfocus then
> > onchange event, after selecting the value.
> > i tried that and other combination too but no success so far.
>
> > is there anything else i am missing on in here.
> > i have tried it with QTP  and open source Selenium its working there,
> > but its not working with Watir, is this  a know issue with watir ?
>
> > Thanks
> > Ravinder Singroha
--~--~-~--~~~---~--~~
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: Issue with Select List

2009-07-08 Thread Powerglide

Hi,
   Did you try issuing "onblur" or "onchange"

   ie.select_list(:name,"ABC").select(value)
   ie.select_list(:name,"ABC").fire_event("onblur")   # if this
does'nt work then try
   ie.select_list(:name,"ABC").fire_event("onchange")

Regards,

Bhaskar


On Jul 7, 11:10 pm, Ravinder Singroha 
wrote:
> Hi
>
> I have a scenario in which, if i chose a value in a select list, the
> same value is filled in a text box given by calling an onchange event.
>
> code looks like:
>
>  stype="Number" type="text" value="0" />
>
> The problem with this is when i do it manually, whatever value i chose
> in select list, it gets filled in the text box but when i do using the
> function:
>
> ie.select_list(:name,"ABC").select(value)
>
> it selects a value but doesn' fills the text box.
>
> I tried the fire events also but no help.
>
> Can anyone in the group please help me with this issue.
>
> I am using  -> [watir -1.6.2]
>
> i have a chat with  developers and he told to fire onfocus then
> onchange event, after selecting the value.
> i tried that and other combination too but no success so far.
>
> is there anything else i am missing on in here.
> i have tried it with QTP  and open source Selenium its working there,
> but its not working with Watir, is this  a know issue with watir ?
>
> Thanks
> Ravinder Singroha
--~--~-~--~~~---~--~~
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: Issue with Select List

2009-06-14 Thread Pallavi Sharma
Hi All

I tried the same with Selenium and QTP and they work for that web page.

Can anyone tell me why watir is failing in such a scenario? Am I overlooking
some things in watir?


On Fri, Jun 12, 2009 at 11:01 AM, Pallavi Sharma wrote:

> Hey George/Chuck
>
> Thanks for the response so far, i am afraid the site is internal so you
> wont be able to access it.
>
> I tried the same with QTP, it worked, i will try it with other open source
> available today like selenium and sahi and see if they work in this
> scenario.
>
> Also i am going to try what you have suggested chuck and lets see i hope to
> solve this soon.
>
> I wish i had known the reason why watir is not working here? is it a known
> issue? What is their with watir due to which it is failing in here.??
>
>
>
>
> On Fri, Jun 12, 2009 at 1:03 AM, Chuck van der Linden wrote:
>
>>
>> You probably need to show what you are doing to your dev, and ask
>> them.
>>
>> perhaps their is some other object that needs to see an event of some
>> sort..
>>
>> not sure what to suggest without being able to see the actual site,
>> and all the html and script code.
>>
>> You could try taking the sendkeys idea a bit further.Play a bit
>> with the site and see if it's possible, via clicking on the list, and
>> then using nothing but keyboard, to select the proper list item
>> (usually by typing in it's name) and entering it as your selection
>> (typically tab or enter)  and see if that works.
>>
>> The only other thing I could suggest (I've seen people do this, but
>> not done it myself) would be to directly invoke the appropriate client
>> side script function.  Not a big fan of that myself, because
>> potentially the site could be broken (NOT invoking that code) but if
>> your script invokes it directly, it would still show the site as
>> working.  or if the name of the script or function changes, the site
>> might be working, but your watir code would break.
>>
>> On Jun 10, 11:12 pm, Pallavi Sharma  wrote:
>> > Hi George/Chuck/Zeljko
>> >
>> > I tried the following script:
>> >
>> > require 'watir'
>> > require 'watir/ie'
>> > require 'win32ole'
>> >
>> > ie=Watir::IE.attach(:title,//)
>> > ie.frame(:name, "pageserverFrame").frame(:id,
>> > "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").clearSelection
>> > ie.frame(:name, "pageserverFrame").frame(:id,
>> > "ContentFrame").select_list(:name,
>> > "MIR-CVG-STBL-1-CD").fire_event("onfocus")
>> > ie.frame(:name, "pageserverFrame").frame(:id,
>> > "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").select("30
>> Years")
>> > ie.frame(:name, "pageserverFrame").frame(:id,
>> > "ContentFrame").select_list(:name,
>> > "MIR-CVG-STBL-1-CD").fire_event("onchange")
>> > ie.send_keys("{TAB}")
>> >
>> > but it only selects the value in the list,  and doesn't set the same in
>> the
>> > tet box..
>> >
>> > is there any other solution? Why isn't watir doing it the way it should
>> > work!!
>> >
>> > Help needed!! Anyone please...
>> >
>> >
>> >
>> > On Thu, Jun 11, 2009 at 2:17 AM, George 
>> wrote:
>> >
>> > > Hi Pallavi,
>> >
>> > > I've been having similar issues where manually using a select list
>> > > exhibits different behavior than coding a selection.  I had to figure
>> > > out how to best mimic how a user would interact with the form.
>> > > Eventually I found that, if I select the field label, set the value in
>> > > the select list, then use $browser.send_keys("{TAB}") to tab off the
>> > > field, it gives me the desired effect.  This probably won't help you,
>> > > but this is what I had to do in order to get what I was looking for.
>> >
>> > > Good luck!
>> >
>> > > George
>> >
>> > > On Jun 8, 10:49 pm, Pallavi Sharma  wrote:
>> > > > Hi
>> >
>> > > > I have a scenario in which, if i chose a value in a select list, the
>> same
>> > > > value is filled in a text box given by calling an onchange event.
>> >
>> > > > code looks like:> onChange="onChangeTerm('ABC','XYZ')"
>> > > > onfocus="enterField(this)" size="1" stype="Selection">
>> >
>> > > > > onblur="validateField(this)"
>> > > > onfocus="enterField(this)" onkeypress="NumberKeyCheck()"
>> stype="Number"
>> > > > type="text" value="0" />
>> >
>> > > > The problem with this is when i do it manually, whatever value i
>> chose in
>> > > > select list, it gets filled in the text box but when i do using the
>> > > > function:
>> >
>> > > > ie.select_list(:name,"ABC").select(value)
>> >
>> > > > it selects a value but doesn' fills the text box.
>> >
>> > > > I tried the fire events also but no help.
>> >
>> > > > Can anyone in the group please help me with this issue.
>> >
>> > > > [watir -1.6.2]
>> >
>> > > > Thanks- 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: 

[wtr-general] Re: Issue with Select List

2009-06-11 Thread Pallavi Sharma
Hey George/Chuck

Thanks for the response so far, i am afraid the site is internal so you wont
be able to access it.

I tried the same with QTP, it worked, i will try it with other open source
available today like selenium and sahi and see if they work in this
scenario.

Also i am going to try what you have suggested chuck and lets see i hope to
solve this soon.

I wish i had known the reason why watir is not working here? is it a known
issue? What is their with watir due to which it is failing in here.??



On Fri, Jun 12, 2009 at 1:03 AM, Chuck van der Linden wrote:

>
> You probably need to show what you are doing to your dev, and ask
> them.
>
> perhaps their is some other object that needs to see an event of some
> sort..
>
> not sure what to suggest without being able to see the actual site,
> and all the html and script code.
>
> You could try taking the sendkeys idea a bit further.Play a bit
> with the site and see if it's possible, via clicking on the list, and
> then using nothing but keyboard, to select the proper list item
> (usually by typing in it's name) and entering it as your selection
> (typically tab or enter)  and see if that works.
>
> The only other thing I could suggest (I've seen people do this, but
> not done it myself) would be to directly invoke the appropriate client
> side script function.  Not a big fan of that myself, because
> potentially the site could be broken (NOT invoking that code) but if
> your script invokes it directly, it would still show the site as
> working.  or if the name of the script or function changes, the site
> might be working, but your watir code would break.
>
> On Jun 10, 11:12 pm, Pallavi Sharma  wrote:
> > Hi George/Chuck/Zeljko
> >
> > I tried the following script:
> >
> > require 'watir'
> > require 'watir/ie'
> > require 'win32ole'
> >
> > ie=Watir::IE.attach(:title,//)
> > ie.frame(:name, "pageserverFrame").frame(:id,
> > "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").clearSelection
> > ie.frame(:name, "pageserverFrame").frame(:id,
> > "ContentFrame").select_list(:name,
> > "MIR-CVG-STBL-1-CD").fire_event("onfocus")
> > ie.frame(:name, "pageserverFrame").frame(:id,
> > "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").select("30
> Years")
> > ie.frame(:name, "pageserverFrame").frame(:id,
> > "ContentFrame").select_list(:name,
> > "MIR-CVG-STBL-1-CD").fire_event("onchange")
> > ie.send_keys("{TAB}")
> >
> > but it only selects the value in the list,  and doesn't set the same in
> the
> > tet box..
> >
> > is there any other solution? Why isn't watir doing it the way it should
> > work!!
> >
> > Help needed!! Anyone please...
> >
> >
> >
> > On Thu, Jun 11, 2009 at 2:17 AM, George 
> wrote:
> >
> > > Hi Pallavi,
> >
> > > I've been having similar issues where manually using a select list
> > > exhibits different behavior than coding a selection.  I had to figure
> > > out how to best mimic how a user would interact with the form.
> > > Eventually I found that, if I select the field label, set the value in
> > > the select list, then use $browser.send_keys("{TAB}") to tab off the
> > > field, it gives me the desired effect.  This probably won't help you,
> > > but this is what I had to do in order to get what I was looking for.
> >
> > > Good luck!
> >
> > > George
> >
> > > On Jun 8, 10:49 pm, Pallavi Sharma  wrote:
> > > > Hi
> >
> > > > I have a scenario in which, if i chose a value in a select list, the
> same
> > > > value is filled in a text box given by calling an onchange event.
> >
> > > > code looks like: onChange="onChangeTerm('ABC','XYZ')"
> > > > onfocus="enterField(this)" size="1" stype="Selection">
> >
> > > >  onblur="validateField(this)"
> > > > onfocus="enterField(this)" onkeypress="NumberKeyCheck()"
> stype="Number"
> > > > type="text" value="0" />
> >
> > > > The problem with this is when i do it manually, whatever value i
> chose in
> > > > select list, it gets filled in the text box but when i do using the
> > > > function:
> >
> > > > ie.select_list(:name,"ABC").select(value)
> >
> > > > it selects a value but doesn' fills the text box.
> >
> > > > I tried the fire events also but no help.
> >
> > > > Can anyone in the group please help me with this issue.
> >
> > > > [watir -1.6.2]
> >
> > > > Thanks- 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: Issue with Select List

2009-06-11 Thread Chuck van der Linden

You probably need to show what you are doing to your dev, and ask
them.

perhaps their is some other object that needs to see an event of some
sort..

not sure what to suggest without being able to see the actual site,
and all the html and script code.

You could try taking the sendkeys idea a bit further.Play a bit
with the site and see if it's possible, via clicking on the list, and
then using nothing but keyboard, to select the proper list item
(usually by typing in it's name) and entering it as your selection
(typically tab or enter)  and see if that works.

The only other thing I could suggest (I've seen people do this, but
not done it myself) would be to directly invoke the appropriate client
side script function.  Not a big fan of that myself, because
potentially the site could be broken (NOT invoking that code) but if
your script invokes it directly, it would still show the site as
working.  or if the name of the script or function changes, the site
might be working, but your watir code would break.

On Jun 10, 11:12 pm, Pallavi Sharma  wrote:
> Hi George/Chuck/Zeljko
>
> I tried the following script:
>
> require 'watir'
> require 'watir/ie'
> require 'win32ole'
>
> ie=Watir::IE.attach(:title,//)
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").clearSelection
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name,
> "MIR-CVG-STBL-1-CD").fire_event("onfocus")
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").select("30 Years")
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name,
> "MIR-CVG-STBL-1-CD").fire_event("onchange")
> ie.send_keys("{TAB}")
>
> but it only selects the value in the list,  and doesn't set the same in the
> tet box..
>
> is there any other solution? Why isn't watir doing it the way it should
> work!!
>
> Help needed!! Anyone please...
>
>
>
> On Thu, Jun 11, 2009 at 2:17 AM, George  wrote:
>
> > Hi Pallavi,
>
> > I've been having similar issues where manually using a select list
> > exhibits different behavior than coding a selection.  I had to figure
> > out how to best mimic how a user would interact with the form.
> > Eventually I found that, if I select the field label, set the value in
> > the select list, then use $browser.send_keys("{TAB}") to tab off the
> > field, it gives me the desired effect.  This probably won't help you,
> > but this is what I had to do in order to get what I was looking for.
>
> > Good luck!
>
> > George
>
> > On Jun 8, 10:49 pm, Pallavi Sharma  wrote:
> > > Hi
>
> > > I have a scenario in which, if i chose a value in a select list, the same
> > > value is filled in a text box given by calling an onchange event.
>
> > > code looks like: > > onfocus="enterField(this)" size="1" stype="Selection">
>
> > >  > > onfocus="enterField(this)" onkeypress="NumberKeyCheck()" stype="Number"
> > > type="text" value="0" />
>
> > > The problem with this is when i do it manually, whatever value i chose in
> > > select list, it gets filled in the text box but when i do using the
> > > function:
>
> > > ie.select_list(:name,"ABC").select(value)
>
> > > it selects a value but doesn' fills the text box.
>
> > > I tried the fire events also but no help.
>
> > > Can anyone in the group please help me with this issue.
>
> > > [watir -1.6.2]
>
> > > Thanks- 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: Issue with Select List

2009-06-11 Thread George

Is there a site we can go to in order to see this?


On Jun 10, 11:12 pm, Pallavi Sharma  wrote:
> Hi George/Chuck/Zeljko
>
> I tried the following script:
>
> require 'watir'
> require 'watir/ie'
> require 'win32ole'
>
> ie=Watir::IE.attach(:title,//)
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").clearSelection
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name,
> "MIR-CVG-STBL-1-CD").fire_event("onfocus")
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").select("30 Years")
> ie.frame(:name, "pageserverFrame").frame(:id,
> "ContentFrame").select_list(:name,
> "MIR-CVG-STBL-1-CD").fire_event("onchange")
> ie.send_keys("{TAB}")
>
> but it only selects the value in the list,  and doesn't set the same in the
> tet box..
>
> is there any other solution? Why isn't watir doing it the way it should
> work!!
>
> Help needed!! Anyone please...
>
>
>
> On Thu, Jun 11, 2009 at 2:17 AM, George  wrote:
>
> > Hi Pallavi,
>
> > I've been having similar issues where manually using a select list
> > exhibits different behavior than coding a selection.  I had to figure
> > out how to best mimic how a user would interact with the form.
> > Eventually I found that, if I select the field label, set the value in
> > the select list, then use $browser.send_keys("{TAB}") to tab off the
> > field, it gives me the desired effect.  This probably won't help you,
> > but this is what I had to do in order to get what I was looking for.
>
> > Good luck!
>
> > George
>
> > On Jun 8, 10:49 pm, Pallavi Sharma  wrote:
> > > Hi
>
> > > I have a scenario in which, if i chose a value in a select list, the same
> > > value is filled in a text box given by calling an onchange event.
>
> > > code looks like: > > onfocus="enterField(this)" size="1" stype="Selection">
>
> > >  > > onfocus="enterField(this)" onkeypress="NumberKeyCheck()" stype="Number"
> > > type="text" value="0" />
>
> > > The problem with this is when i do it manually, whatever value i chose in
> > > select list, it gets filled in the text box but when i do using the
> > > function:
>
> > > ie.select_list(:name,"ABC").select(value)
>
> > > it selects a value but doesn' fills the text box.
>
> > > I tried the fire events also but no help.
>
> > > Can anyone in the group please help me with this issue.
>
> > > [watir -1.6.2]
>
> > > 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: Issue with Select List

2009-06-10 Thread Pallavi Sharma
Hi George/Chuck/Zeljko

I tried the following script:

require 'watir'
require 'watir/ie'
require 'win32ole'


ie=Watir::IE.attach(:title,//)
ie.frame(:name, "pageserverFrame").frame(:id,
"ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").clearSelection
ie.frame(:name, "pageserverFrame").frame(:id,
"ContentFrame").select_list(:name,
"MIR-CVG-STBL-1-CD").fire_event("onfocus")
ie.frame(:name, "pageserverFrame").frame(:id,
"ContentFrame").select_list(:name, "MIR-CVG-STBL-1-CD").select("30 Years")
ie.frame(:name, "pageserverFrame").frame(:id,
"ContentFrame").select_list(:name,
"MIR-CVG-STBL-1-CD").fire_event("onchange")
ie.send_keys("{TAB}")

but it only selects the value in the list,  and doesn't set the same in the
tet box..

is there any other solution? Why isn't watir doing it the way it should
work!!

Help needed!! Anyone please...

On Thu, Jun 11, 2009 at 2:17 AM, George  wrote:

>
> Hi Pallavi,
>
> I've been having similar issues where manually using a select list
> exhibits different behavior than coding a selection.  I had to figure
> out how to best mimic how a user would interact with the form.
> Eventually I found that, if I select the field label, set the value in
> the select list, then use $browser.send_keys("{TAB}") to tab off the
> field, it gives me the desired effect.  This probably won't help you,
> but this is what I had to do in order to get what I was looking for.
>
> Good luck!
>
> George
>
> On Jun 8, 10:49 pm, Pallavi Sharma  wrote:
> > Hi
> >
> > I have a scenario in which, if i chose a value in a select list, the same
> > value is filled in a text box given by calling an onchange event.
> >
> > code looks like: > onfocus="enterField(this)" size="1" stype="Selection">
> >
> >  > onfocus="enterField(this)" onkeypress="NumberKeyCheck()" stype="Number"
> > type="text" value="0" />
> >
> > The problem with this is when i do it manually, whatever value i chose in
> > select list, it gets filled in the text box but when i do using the
> > function:
> >
> > ie.select_list(:name,"ABC").select(value)
> >
> > it selects a value but doesn' fills the text box.
> >
> > I tried the fire events also but no help.
> >
> > Can anyone in the group please help me with this issue.
> >
> > [watir -1.6.2]
> >
> > 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: Issue with Select List

2009-06-10 Thread George

Hi Pallavi,

I've been having similar issues where manually using a select list
exhibits different behavior than coding a selection.  I had to figure
out how to best mimic how a user would interact with the form.
Eventually I found that, if I select the field label, set the value in
the select list, then use $browser.send_keys("{TAB}") to tab off the
field, it gives me the desired effect.  This probably won't help you,
but this is what I had to do in order to get what I was looking for.

Good luck!

George

On Jun 8, 10:49 pm, Pallavi Sharma  wrote:
> Hi
>
> I have a scenario in which, if i chose a value in a select list, the same
> value is filled in a text box given by calling an onchange event.
>
> code looks like: onfocus="enterField(this)" size="1" stype="Selection">
>
>  onfocus="enterField(this)" onkeypress="NumberKeyCheck()" stype="Number"
> type="text" value="0" />
>
> The problem with this is when i do it manually, whatever value i chose in
> select list, it gets filled in the text box but when i do using the
> function:
>
> ie.select_list(:name,"ABC").select(value)
>
> it selects a value but doesn' fills the text box.
>
> I tried the fire events also but no help.
>
> Can anyone in the group please help me with this issue.
>
> [watir -1.6.2]
>
> 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: Issue with Select List

2009-06-10 Thread Chuck van der Linden

You might need to CLEAR the current selection first.   Possibley what
you are doing is creating a situation where the list has more than one
item selected (I've seen selection lists that allow this, via shift-
click, control-click  etc)  perhaps it doesn't see that as a 'change'
if the original item remains selected.

On Jun 9, 10:29 pm, Pallavi Sharma  wrote:
> Hi
> The developers told to fire onfocus then onchange event, after selecting the
> value.
>
> i tried that and other combination too but no success so far.
>
> is there anything else i am missing on in here.
>
> can anyone enlighten me a bit more about how to handle this particular
> scenario in watir.???
>
> On Tue, Jun 9, 2009 at 6:39 PM, Pallavi Sharma wrote:
>
>
>
> > Okie Zeljko
> > Thanks for the input.
>
> > On Tue, Jun 9, 2009 at 6:34 PM, Željko Filipin <
> > zeljko.fili...@wa-research.ch> wrote:
>
> >> On Tue, Jun 9, 2009 at 3:00 PM, Pallavi Sharma 
> >> wrote:
> >> > could you please let me know when should i try fire them before
> >> selecting the value or after selecting the value?
>
> >> Do you have access to developers? Because you should ask them that
> >> question.
>
> >> Željko- 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: Issue with Select List

2009-06-09 Thread Pallavi Sharma
Hi
The developers told to fire onfocus then onchange event, after selecting the
value.

i tried that and other combination too but no success so far.

is there anything else i am missing on in here.

can anyone enlighten me a bit more about how to handle this particular
scenario in watir.???



On Tue, Jun 9, 2009 at 6:39 PM, Pallavi Sharma wrote:

> Okie Zeljko
> Thanks for the input.
>
>
>
> On Tue, Jun 9, 2009 at 6:34 PM, Željko Filipin <
> zeljko.fili...@wa-research.ch> wrote:
>
>> On Tue, Jun 9, 2009 at 3:00 PM, Pallavi Sharma 
>> wrote:
>> > could you please let me know when should i try fire them before
>> selecting the value or after selecting the value?
>>
>> Do you have access to developers? Because you should ask them that
>> question.
>>
>> Ž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: Issue with Select List

2009-06-09 Thread Pallavi Sharma
Okie Zeljko
Thanks for the input.



On Tue, Jun 9, 2009 at 6:34 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Tue, Jun 9, 2009 at 3:00 PM, Pallavi Sharma 
> wrote:
> > could you please let me know when should i try fire them before selecting
> the value or after selecting the value?
>
> Do you have access to developers? Because you should ask them that
> question.
>
> Ž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: Issue with Select List

2009-06-09 Thread Željko Filipin
On Tue, Jun 9, 2009 at 3:00 PM, Pallavi Sharma 
wrote:
> could you please let me know when should i try fire them before selecting
the value or after selecting the value?

Do you have access to developers? Because you should ask them that question.

Ž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: Issue with Select List

2009-06-09 Thread Pallavi Sharma
Hi
I fired the onchange and onfocus event.

could you please let me know when should i try fire them before selecting
the value or after selecting the value?

Please let me know.




On Tue, Jun 9, 2009 at 1:32 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Tue, Jun 9, 2009 at 7:49 AM, Pallavi Sharma 
> wrote:
> > I tried the fire events also but no help.
>
> Which events did you fire? Looks like you should fire onChange and/or
> onfocus.
>
> Did you ask a developer how that code works and what events should be
> fired?
>
> Ž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: Issue with Select List

2009-06-09 Thread kiran

Hi,
After selecting or before selecting the value ,use fire_events on
select list.
It might help you.

Thanks,
kiran.

On Jun 9, 1:02 pm, Željko Filipin 
wrote:
> On Tue, Jun 9, 2009 at 7:49 AM, Pallavi Sharma 
> wrote:
>
> > I tried the fire events also but no help.
>
> Which events did you fire? Looks like you should fire onChange and/or
> onfocus.
>
> Did you ask a developer how that code works and what events should be fired?
>
> Ž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: Issue with Select List

2009-06-09 Thread Željko Filipin
On Tue, Jun 9, 2009 at 7:49 AM, Pallavi Sharma 
wrote:
> I tried the fire events also but no help.

Which events did you fire? Looks like you should fire onChange and/or
onfocus.

Did you ask a developer how that code works and what events should be fired?

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