This blog is for Automation Test Engineers

Sunday, 3 September 2017

How to find position of cursor in window

Pointerinfo c=Mouseinfo.getPointerinfo();
Point d=c.getLocation();
int a=(int)d.getA();
int b=(int)d.getB();

System.out.println(a+","+b);



}
1

1 comment: