Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Button is not getting enabled
#5
Not Solved
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,

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.
Reply


Messages In This Thread
Button is not getting enabled - by estherindu - 10-14-2009, 04:13 PM
RE: Button is not getting enabled - by Saket - 10-14-2009, 04:17 PM
RE: Button is not getting enabled - by manabh - 10-14-2009, 04:25 PM
RE: Button is not getting enabled - by basanth27 - 10-14-2009, 06:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 3,697 02-07-2017, 12:28 AM
Last Post: sparkwanted
Rolleyes How can i check all the buttons are enabled or not using programming ? njnirmal 3 9,814 07-16-2009, 03:26 PM
Last Post: QTPian

Forum Jump:


Users browsing this thread: 3 Guest(s)