大佬教程收集整理的这篇文章主要介绍了angularjs – 在电子中使用量角器,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
message: Error while waiTing for Protractor to sync with the page: "angular Could not be found on the window" Stacktrace: undefined
我的conf.js文件如下所示:
exports.config = { directConnect : true,SELEniumAddress: 'http://localhost:4444/wd/hub',baseUrl:"file://home/me/workspace/tesTing-project/main.js",capabilities: { browserName: "chrome",chromeOptions: { binary: "/home/me/.linuxbrew/lib/node_modules/electron-prebuilt/dist/electron",args: ["--test-type=webdriver"] } },specs: ['todo-specs.js'],onPrepare: function(){ browser.resetUrl = "file://"; browser.driver.get("file://"); } };
考虑到Protractor website上给出的文档,我的印象是我不需要安装任何其他东西(例如Jasmine).
让我感到惊讶的是,尽管main.js的路径(根据Electron的规格启动应用程序)是正确的,但我看不到弹出的Electron窗口中的任何@L_489_10@.
你们有没有遇到过这个问题?你有设法解决它吗?
exports.config = { SELEniumAddress: 'http://localhost:4444/wd/hub',specs: ['test-spec.js'],chromeOptions: { binary: "./dist/myAwesomeApp/myAwesomeAppBinary" } },onPrepare: function () { browser.resetUrl = "file://"; } };
通过这种方式,无需描述baseUrl或使用browser.get()或browser.driver.get()来启动Electron中的应用程序.但是,我宁愿不必构建应用程序二进制文件,但我认为现在不可能.
以上是大佬教程为你收集整理的angularjs – 在电子中使用量角器全部内容,希望文章能够帮你解决angularjs – 在电子中使用量角器所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。