Micro Focus QTP (UFT) Forums

Full Version: QTP clicking on WpfImage is not working, but it is highlight it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
Hi Ravi,
I did not work.
Do u have any idea why this is happening suddenly.