Micro Focus QTP (UFT) Forums
QTP clicking on WpfImage is not working, but it is highlight it - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP clicking on WpfImage is not working, but it is highlight it (/Thread-QTP-clicking-on-WpfImage-is-not-working-but-it-is-highlight-it)



QTP clicking on WpfImage is not working, but it is highlight it - Prashanth - 02-12-2013

Hi All, I have an issue.
I am working on Wpf form, i need to click on wpfimage button,

Below piece of script
Code:
WpfWindow("classname:=***").WpfImage("classname:=***","devname:=***","devnamepath:=***").highlight
works fine

but,
Code:
WpfWindow("classname:=***").WpfImage("classname:=***","devname:=***","devnamepath:=***").click
is not working, it is neither throwing any error also. it simply does nothing.

Please let me know the reason why this is happening, i have installed all plugins, i am using trial version of qtp11, i got the system formatted 1 week back, it is not working after that.

But the same thing worked fine before formatting the system


RE: QTP clicking on WpfImage is not working, but it is highlight it - ravi.gajul - 02-12-2013

please try this code
Code:
Setting.Webpackage("replaytype")=2 'mouse events
WpfWindow("classname:=***").WpfImage("classname:=***","devname:=***","devnamepath:=***").click
Setting.WebPackage("replaytype")=1 'browser events

Regards,
Ravi


RE: QTP clicking on WpfImage is not working, but it is highlight it - Prashanth - 02-13-2013

Hi Ravi,
I did not work.
Do u have any idea why this is happening suddenly.