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 <sqa...@gmail.com>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 <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 <bhaskar.sundar...@gmail.com> 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 <ravindersingr...@gmail.com> > > > 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:<select name="ABC" onChange="onChangeTerm > > > > ('ABC','XYZ')" onfocus="enterField(this)" size="1" stype="Selection"> > > > > > > <input decimals="0" elength="3" name="XYZ" 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. > > > > > > 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 firstname.lastname@example.org 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 -~----------~----~----~----~------~----~------~--~---