[SOLVED WITH WORKAROUND]Error when I try to emulate mouse right button click on the table [message #1710823] |
Fri, 09 October 2015 14:20 |
|
Dear all,
I need to run a right mouse button click on a table line to open a menu'.
This is the portion of code that select the line
get-items | foreach [val item] {
if [$item | get-property "values['Description']" -raw | matches [concat $prop1 $reference $prop3] ]
{
$item | select-item
}
The problem is when I use the mouse methods RCP TT is stopped.
Example:
get-items | foreach [val item] {
if [$item | get-property "values['Description']" -raw | matches [concat $prop1 $reference $prop3] ]
{
$item | select-item
mouse-press 77 311 button3 -height 689 -width 413
}
}
return the following error:
Let me know.
Thank you guys
"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
[Updated on: Mon, 12 October 2015 10:39] Report message to a moderator
|
|
|
|
Re: Error when I try to emulate mouse right button click on the table [message #1711010 is a reply to message #1710968] |
Mon, 12 October 2015 10:38 |
|
Hi Ulyana,
Thank you for your message.
I use a different way below my source code.
get-items | foreach [val item]
{
if [$item | get-property "values['Description']" -raw | matches [concat $prop1 $reference $prop3] ]
{
global [val counter [plus 1 $counter]] -override
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Ready | verify-true
$item | select-item | get-menu Claim | click
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Reserved | verify-true
$item | select-item |get-menu Release | click
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Ready | verify-true
$item | select-item | get-menu "Claim and Start" | click
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals InProgress | verify-true
$item | select-item | get-menu Stop | click
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Reserved | verify-true
$item | select-item | get-menu Start | click
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals InProgress | verify-true
$item | select-item | get-menu Stop | click
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Reserved | verify-true
$item | select-item | get-menu Release | click
$item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Ready | verify-true
}
}
"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
|
|
|
Powered by
FUDForum. Page generated in 0.03096 seconds