Is there a way to wait for a t.chain() to finish before starting execution of another?
Take this code for example.
StartTest(function(t) {
t.chain(
{
action: "type",
target: "input[name=j_username]",
text: "<user>"
},
{
action: "type",
target: "input[name=j_password]",
text: "<password>"
},
{
action: "click",
target: "button[type=submit]"
}
)
t.chain(
{
action: "click",
target: "#main-nav-bar button[text=Alarms and Events] => .x-btn-inner-default-toolbar-small"
}
)
}
)
I know that I could combine the chains above, but this is a simplified example.