Micro Focus QTP (UFT) Forums
Application UI Changed, not detecting earlier objects - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Application UI Changed, not detecting earlier objects (/Thread-Application-UI-Changed-not-detecting-earlier-objects)



Application UI Changed, not detecting earlier objects - firozkannur - 05-30-2019

Hi All,

I am scripting for an application for the last 6 months. Yesterday application UI is changed, hence earlier objects are not detecting.
So I would like to know if any short cuts are there to run the earlier code.

Here is the example..



Set oParent=SwfWindow("swfname:=KTPWICP")
oParent.SwfObject("swfname:=KTPWICP_Fill_Panel").SwfButton("swfname:=btnUsers").Click

This was the code which I have written and was running smoothly. But after UI change code need to change as follows.

Set oParent=SwfWindow("swfname:=KTPWICP")
oParent.SwfObject("swfname:=KTPWICP").SwfButton("swfname:=buttonUsers").Click

Many actions are there, so it is very difficult to change all the scripts manually.. so is it any short cuts are there to run the application with already written code. ??

Thanks in Advance,
Firoz