Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
picking different points in UFT using VB Script
#1
Not Solved
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
'
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 587 11-05-2023, 03:55 PM
Last Post: lravi4u
  error when executing an UFT automation script alexalloza 0 1,539 10-30-2018, 06:17 PM
Last Post: alexalloza
  UFT Script running twice SacJoshi 0 2,232 11-11-2016, 01:51 PM
Last Post: SacJoshi
  Script is not generated for windows application in UFT sreelatha 1 2,370 04-04-2016, 10:51 AM
Last Post: vinod123
  Issues while uft script execution Mrutyanjayam 0 1,798 10-03-2015, 01:46 AM
Last Post: Mrutyanjayam

Forum Jump:


Users browsing this thread: 1 Guest(s)