Right Click positioning to the incorrect location in the replay mode [message #1795864] |
Mon, 01 October 2018 13:31 |
Kaneez Abbas Messages: 4 Registered: June 2018 |
Junior Member |
|
|
We have data in a tabular format which is split into three columns.
I have to perform right click on a word on any line in the second column.
Ideally on right click, it should present me a context menu.
The second column has the below header (which is basically a string) -
MSG_SRCLINEHDR=*...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 ...+... 9 ...+... *
Each pointer indicates 100 pixels and based on this we calculate the x,y coordinate.
So, in the below script, we are performing right click on line no 10, position 3 as per the header.
with [get-editor TestObject| get-table] {
get-cell 10 1 | mouse down Right -x 300 -y 0
get-cell 10 1 | mouse up Right -x 300 -y 0
get-menu -path "More Info" | click
}
The interesting thing is,
- When the header is present, the replay works correctly
- When the header is missing, right click is always performed on the first line despite whichever line I select.
I am unable to understand how setting the header is helping RCPTT position to the correct word.
Has anyone faced the same problem or have any pointers regarding this?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02615 seconds