12-14-2020, 09:57 AM
Hello All,
I am new to UFT , i m doing automation of our software in which i have to left click on several(say 5 left clicks on different points) points on any image and every left click should pick different X and Y values, but currently UFT picks same points i.e. first point is applied to all. and it does not work, kindly help me , manaull it is working fine but in automation it is getting problem, we are using VBscript, my code is given below
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 201,328,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 211,340,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 227,351,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 231,359,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 237,365,"LEFT"
wait 15
'
I am new to UFT , i m doing automation of our software in which i have to left click on several(say 5 left clicks on different points) points on any image and every left click should pick different X and Y values, but currently UFT picks same points i.e. first point is applied to all. and it does not work, kindly help me , manaull it is working fine but in automation it is getting problem, we are using VBscript, my code is given below
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 201,328,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 211,340,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 227,351,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 231,359,"LEFT"
wait 15
JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 237,365,"LEFT"
wait 15
'