Micro Focus QTP (UFT) Forums
Not able to click on webbutton - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Not able to click on webbutton (/Thread-Not-able-to-click-on-webbutton)



Not able to click on webbutton - Zalavadia86 - 10-09-2016

Hi,
I test one application in which I have to click save button after set value in mandatory field(web edit) .
As per application if i dont edit mandatory field then save button does not activated. But when i set value using qtp in mandatory field , still save button does not activated and i am not able to click on that.
Please help me . thanks in advance.


RE: Not able to click on webbutton - Ankur - 10-09-2016


  1. Use .type instead of .Set for the webedit object
  2. If that doesn't work, use FireEvent on the WebEdit object



RE: Not able to click on webbutton - Zalavadia86 - 10-13-2016

I tried .type and fireEvent but it didn't work.

Then I have changed replay type (setting.WebPackage("ReplayType") = 2) . It worked.

Thank you .


RE: Not able to click on webbutton - frebuffi - 10-24-2016

Try also WebEdit("x").FireEvent "onkeyup" before clicking on the web button.
it worked for me .