[Fix] Handle locator is for a root element
This commit is contained in:
parent
f04ee3df62
commit
7eed819618
|
@ -31,6 +31,11 @@ public class ExecuteActionService extends AbstractService<LocatorArgument, Servi
|
||||||
realm = tx.getRealmName();
|
realm = tx.getRealmName();
|
||||||
|
|
||||||
tx.lock(arg.locator.trim(3));
|
tx.lock(arg.locator.trim(3));
|
||||||
|
|
||||||
|
if (arg.locator.getSize() == 3) {
|
||||||
|
activity = tx.findElement(arg.locator);
|
||||||
|
} else {
|
||||||
|
|
||||||
Action action = tx.findElement(arg.locator);
|
Action action = tx.findElement(arg.locator);
|
||||||
|
|
||||||
// this is so we can re-execute stopped actions
|
// this is so we can re-execute stopped actions
|
||||||
|
@ -43,6 +48,7 @@ public class ExecuteActionService extends AbstractService<LocatorArgument, Servi
|
||||||
|
|
||||||
activity = action.getRootElement();
|
activity = action.getRootElement();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
getComponent(ExecutionHandler.class).toExecution(realm, activity);
|
getComponent(ExecutionHandler.class).toExecution(realm, activity);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue