From: Vasudevan C. <vco...@gm...> - 2011-02-25 12:58:40
|
Hi Bernard, Thanks for your quick reply. Given below is the HTML Snippet. ********************************************** <div id="ej-search-enter-text"> <input name="ctl00$SearchBox$txtKeywords" type="text" value="Search All Journals" id="ctl00_SearchBox_txtKeywords" class="ej-enter-keywords" onfocus="clearText(this);" onblur="defaultText(this);" Onkeypress="return controlEnter('ctl00_SearchBox_search', event)" /> <input type="submit" name="ctl00$SearchBox$search" value="Search" id="ctl00_SearchBox_search" disabled="disabled" /> </div> *********************************************** After setting the focus on ctl00$SearchBox$txtKeywords and use Type method to enter the string value, do you think the javascript for onkeypress will get executed.? or Do I have to do something else? Appreciate your quick response. Regards Vasu On Fri, Feb 25, 2011 at 6:03 PM, Bernard Łabno <s4...@pj...> wrote: > Check on what javascript event the button should be enabled and trigger > that event. I bet that blur will do the job. > > 2011/2/25 Vasudevan Comandur <vco...@gm...> > >> Hi, >> >> I am using HTMLUnit 2.8 version. I am facing a problem with one of the >> sites. There is a text field and there is a button which is in disabled >> state initially. >> >> Upon setting values in the text field, the button gets enabled. I was >> setting the value or the field but the button never got enabled. >> >> Is there any method that I can use to enable the button which is in >> disabled state? I see a method which gets the value of the disabled >> attribute (getDisabledAttribute) >> >> The HTMLInput Tag for the button has disabled attribute set to >> "disabled" and I want to set the value to Null. >> >> Any pointers to solve this problem is greatly appreciated. >> >> Regards >> Vasu >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search & Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT >> data >> generated by your applications, servers and devices whether physical, >> virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |