Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Button wont enable
#9
Solved: 10 Years, 9 Months, 3 Weeks ago
(12-02-2010, 11:51 AM)cdesserich Wrote: WebEdits don't support the Type function, only window objects, like WinEdits. That's why the .Type micTab line was throwing an error. Lorena, there are several ways that web applications implement the functionality you describe. You can 1. try setting the value in the WebEdit, then trying to find the event that does the processing that unlocks the button, or you can 2. get focus on the WebEdit and send the Type command to the Browser window. Option 1 is probably easier and more reliable, the problem being that without seeing the application code, I can't know for sure what event processes the unlocking of the button. However, it would have to be onkeypress, onkeydown, onkeyup, or onchange I would think. So try the below code, and you can comment out the FireEvent lines until you find the event that does the processing. Hope this helps, let me know if it does...

Code:
Browser("WisdomLogin").Page("Wisdom DEV_4").Frame("MainWindow_2").WebEdit("MasterPage$ContentPlaceHolderS").Set "0141"
Browser("WisdomLogin").Page("Wisdom DEV_4").Frame("MainWindow_2").WebEdit("MasterPage$ContentPlaceHolderS").FireEvent "onkeypress"
Browser("WisdomLogin").Page("Wisdom DEV_4").Frame("MainWindow_2").WebEdit("MasterPage$ContentPlaceHolderS").FireEvent "onkeydown"
Browser("WisdomLogin").Page("Wisdom DEV_4").Frame("MainWindow_2").WebEdit("MasterPage$ContentPlaceHolderS").FireEvent "onkeyup"
Browser("WisdomLogin").Page("Wisdom DEV_4").Frame("MainWindow_2").WebEdit("MasterPage$ContentPlaceHolderS").FireEvent "onchange"

******************************************
this solution is working fine.
thanks alot
Reply


Messages In This Thread
Button wont enable - by mv8167 - 10-28-2010, 08:37 PM
RE: Button wont enable - by KVK - 10-29-2010, 09:24 AM
RE: Button wont enable - by mv8167 - 10-29-2010, 11:44 PM
RE: Button wont enable - by rajeshwar - 10-30-2010, 01:22 PM
RE: Button wont enable - by mv8167 - 11-19-2010, 03:30 AM
RE: Button wont enable - by manishbhalshankar - 12-01-2010, 05:39 PM
RE: Button wont enable - by cdesserich - 12-02-2010, 11:51 AM
RE: Button wont enable - by bharathreddi - 12-11-2012, 02:33 PM
RE: Button wont enable - by AkhilaArvind - 12-16-2010, 12:50 PM
RE: Button wont enable - by Ankesh - 12-11-2012, 03:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Enable Hyperlink without opening the Excel Sathiya 11 6,701 05-31-2012, 04:41 PM
Last Post: Sathiya
Cool how to re-enable Keyword tab dol_fin 2 4,687 03-05-2012, 11:23 AM
Last Post: Saajo87
  Enable to record script for web application shailesh 3 5,067 07-01-2011, 12:38 PM
Last Post: shailesh
  how to enable webedit satishkumarm 9 9,895 05-27-2011, 01:30 PM
Last Post: satishkumarm
  How to enable web add-in in QTP Pallaviv 2 4,558 10-03-2009, 04:14 AM
Last Post: Pallaviv

Forum Jump:


Users browsing this thread: 1 Guest(s)