Re: ReferenceError: Ext is not defined
Posted: Fri Apr 28, 2017 4:19 pm
Tried adding the updated waitFor and got the same TypeError.
Where should I add the waitForAppReady flag?
Where should I add the waitForAppReady flag?
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]"
},
{
waitFor : function() { return t.global.Ext && t.global.Ext.ComponentQuery; }
}
// {
// action: "click",
// target: "button[id=button-1057] => .x-btn-button"
// },
// {
// action: "rightclick",
// target: "treeview[id=treeview-1125] => .x-tree-view"
// }
)
var result= t.global.Ext.ComponentQuery.query("treeview[id=treeview-1125]")[0].id;
t.diag(result);
t.waitForMs(30000);
}
)
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]"
},
{
waitFor : function() { return t.global.Ext && t.global.Ext.ComponentQuery; }
},
function() {
var result= t.global.Ext.ComponentQuery.query("treeview[id=treeview-1125]")[0].id;
t.diag(result);
}
// {
// action: "click",
// target: "button[id=button-1057] => .x-btn-button"
// },
// {
// action: "rightclick",
// target: "treeview[id=treeview-1125] => .x-tree-view"
// }
)
}
)