Tag: internet explorer

我可以让量angular器使用安装在node_modules中的IEDriverServer.exe webdriver-update吗?

我正在为我的angular度web应用程序项目写验收testing。 他们通过量angular器运行,并在铬上工作得很好。 但是,当我尝试在Internet Explorer 11上运行它们时,我得到一个失败,抱怨:“驱动程序可执行文件的path必须由webdriver.ie.driver系统propery设置”。 但是,我有我的项目configuration为下载IE驱动程序与chromedriver可执行文件相同的地方。 虽然我确定可以将IE驱动程序改变为存储在我的PATH envvariables中的文件夹,但是项目中的每个开发人员都必须执行相同的操作,或更新其PATH指向驱动程序。 我的问题是 – 是否有一个简单的configuration,我错过了使这个IE驱动程序可用于量angular器就像Chrome的驱动程序是? 我的package.json: { //… "scripts": { "webdriver-update": "webdriver-manager update –ie", "preacceptance-tests": "npm run webdriver:update — –standalone", "acceptance-tests": "protractor", //… } 我的protractor.conf.js: exports.config = { baseUrl: 'http://localhost:3000/', specs: [ 'src/**/**test.ts', 'src/**/*test.ts' ], capabilities: { 'browserName': 'internet explorer' //If I put chrome here, the tests pass }, […]

Socket.io:为什么htmlfile首选XHR轮询?

基于socket.io 0.9.10默认configuration1 , htmlfile优先于xhr-polling 。 我有这个想法,即xhr-polling (又名长池)是不支持的websockets的自然select。 如果我将htmlfile在列表中,它将成为htmlfile和9的选定传输。 我的分钟请求是IE7 +,所以我应该删除htmlfile ? 我在IE7和9上testing了xhr-polling ,它工作正常。 这是为什么?

IE和Socket.io兼容

我在这里做一些聊天的例子: http : //psitsmike.com/2011/09/node-js-and-socket-io-chat-tutorial/ 当我使用Chrome和Firefox时,一切都像一个魅力。 有了IE9或Opera,一些socket.io事件不会触发(例如断开连接)或触发太晚,并且数据接收速度太慢。 我用npm方法安装了node.js和socket.io模块。 请帮忙。

为IE重复请求表示返回304

我遇到ExpressJS的一些奇怪的行为。 在第二次请求我的node.js / express基于API的URL时,它总是返回304未修改的响应代码给IE。 其他浏览器得到200(铬/ FF)。 问题是,即使内容实际上已经改变,它也会返回304。 我试图search,并没有find任何关于这个话题。 此外,我试图find不同的IE和Chrome的请求头,可以看到任何头可能会导致这一点。 任何帮助将不胜感激。 我必须通过SSL添加连接,以防万一

如何在jade中添加一个HTML标签?

在翡翠 ,我想要放在一个HTML标签的条件下,根据这个方法 ,放入 <!–[if lt IE 7 ]> <html class="ie6"> <![endif]–> <!–[if IE 7 ]> <html class="ie7"> <![endif]–> <!–[if IE 8 ]> <html class="ie8"> <![endif]–> <!–[if IE 9 ]> <html class="ie9"> <![endif]–> <!–[if (gt IE 9)|!(IE)]><!–> <html class=""> <!–<![endif]–> 在一个html文件的顶部。 我试过了 //[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif] //[if IE 7]> <html […]