PDA

View Full Version : Timeout error while launching Event recorder code



developer@optrak.com
28 Apr 2016, 5:37 AM
Hi,

I have a Timeout error while using code from the event recorder, and I do not know how to solve it.
Here is the code :


describe ("Test of creating a new account", function () {
it ('New account should be created and added to the list', function () {
ST.play([
{ type: "tap", target: "tab[iconCls=\"fa-user\"]", x: 80, y: 32, pointerType: "mouse", identifier: 1 },
{ type: "tap", target: "button[text=\"Add Account\"]", x: 55, y: 19, pointerType: "mouse", identifier: 1 },
{ type: "tap", target: "textfield", x: 165, y: 15, pointerType: "mouse", identifier: 1 },
{ type: "keypress", target: "textfield", key: "t" },
{ type: "keyup", target: "textfield", key: "t" },
{ type: "tap", target: "textfield", x: 152, y: 20, pointerType: "mouse", identifier: 1 },
{ type: "type", target: "textfield", text: "test" },
{ type: "keyup", target: "textfield", key: "t" },
{ type: "tap", target: "button[text=\"Add Account\"]", x: 39, y: 20, pointerType: "mouse", identifier: 1 }
]);
]);


The error message is : Failed: Timeout waiting for target (textfield) to be available for pointerdown

Thanks