Posts: 34
Threads: 13
Joined: Dec 2008
Reputation:
0
09-12-2009, 02:37 PM
hi
i wanted to right click the cell of a table and then select some menu option
when i try to record ; nothing comes in the code
I think for right clicking; first we'll hav to set the focus on the required cell and then right click on it .
How will i be abl to do it
Thanks
Ramesh
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
09-13-2009, 11:24 AM
Hi,
Did you tried getRoproperty for finding x, y coordinates and then 'object.Click [x], [y], 1' where 1 is for right click.
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
09-13-2009, 06:16 PM
Hi tariksheth,
i think it's not a good idea to use the x and y axis propeteries to click on the object generally we should not use x and y axis to identify any object.
Thanks,
SUpputuri
Posts: 34
Threads: 13
Joined: Dec 2008
Reputation:
0
09-14-2009, 11:27 AM
Sorry , Still not clear with ideas suggested
As one idea was to get the cordinates at run time and click on the object; can we folow it or Do we have some idea better than this
thanks
Ramesh Tahiliani
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-14-2009, 12:15 PM
I think you can set the focus on required cell using ChildItem.
Have you tried this? you can then do a right click using any of the methods suggested above.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
09-14-2009, 04:08 PM
One of the few reasons why QTP wouldnt record is because the object could be a custom object. So, it is necessary to find out the object dev type.
Spying the object is a great value here, Do you get webtable ? If so then you can try the firevent method after selection.
Adding my 2 cents, Obtaining Co-ordinates should be the last resort because they are very much dependent on the system configuration and the application design behaviour.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.