10-14-2009, 06:00 PM
Estherindu -
QTP's interaction layer with the AUT comprising of webobjects is a chain command's of events. In your case although the naked eye sees the text entered the webedit still in its internal state cannot identify the text. So you will need to wake it up. Try this,
I am just suspecting that once the webedit identifys the text it triggers the next event of button_enable. Hope the above works..if it does not then try this as well,
Does any of this helps ?
QTP's interaction layer with the AUT comprising of webobjects is a chain command's of events. In your case although the naked eye sees the text entered the webedit still in its internal state cannot identify the text. So you will need to wake it up. Try this,
Code:
Browser().page().frame().webedit().Set "abc"
Browser().page().frame().webedit().Click
'..whatever code you have for clciking on button.
I am just suspecting that once the webedit identifys the text it triggers the next event of button_enable. Hope the above works..if it does not then try this as well,
Code:
Settings.Webpackage("ReplayType") = 2
Browser().page().frame().webedit().Set "abc"
Browser().page().frame().webedit().Click
Settings.Webpackage("ReplayType") =1
'..whatever code you have for clciking on button.
Does any of this helps ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.