【发布时间】:2019-11-04 05:30:03
【问题描述】:
conf.js
exports.config = {
directConnect: true,
framework: 'jasmine',
//seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['FirstTestcase.js'],
asmineNodeOpts: {
defaultTimeoutInterval: 20000
},
capabilities: {
browserName: 'chrome'
}
}
testcase.js
describe("my first test case",function(){
it("execute test case",function(){
browser.waitForAngularEnabled(false);
browser.get("");
element(By.id("username")).sendKeys("test");
element(By.id("tenant")).sendKeys("demo");
element(By.id("continue")).click();
element(By.id("password")).sendKeys("test");
element(By.id("login")).click();
browser.waitForAngularEnabled(true);
});
});
我面临的问题是。我的登录页面不是用 angular js 开发的,一旦我登录,应用程序就是 angular js。
点击代码登录后
我试过了
beforeEach(function(done) {
setTimeout(function() {
value = 0;
done();
}, 6000);
})
但没有任何帮助。
谁能给出解决方案?
【问题讨论】:
-
可能是因为你有
asmineNodeOpts而不是jasmineNodeOpts?
标签: javascript node.js angularjs jasmine protractor