<bdo id='C4nhA'></bdo><ul id='C4nhA'></ul>

      <small id='C4nhA'></small><noframes id='C4nhA'>

      <tfoot id='C4nhA'></tfoot>
      <i id='C4nhA'><tr id='C4nhA'><dt id='C4nhA'><q id='C4nhA'><span id='C4nhA'><b id='C4nhA'><form id='C4nhA'><ins id='C4nhA'></ins><ul id='C4nhA'></ul><sub id='C4nhA'></sub></form><legend id='C4nhA'></legend><bdo id='C4nhA'><pre id='C4nhA'><center id='C4nhA'></center></pre></bdo></b><th id='C4nhA'></th></span></q></dt></tr></i><div id='C4nhA'><tfoot id='C4nhA'></tfoot><dl id='C4nhA'><fieldset id='C4nhA'></fieldset></dl></div>

      <legend id='C4nhA'><style id='C4nhA'><dir id='C4nhA'><q id='C4nhA'></q></dir></style></legend>

      将 Firefox 35 与量角器一起使用会导致错误

      Using Firefox 35 with protractor results into an error(将 Firefox 35 与量角器一起使用会导致错误)

            <tfoot id='PwPdr'></tfoot>

            <i id='PwPdr'><tr id='PwPdr'><dt id='PwPdr'><q id='PwPdr'><span id='PwPdr'><b id='PwPdr'><form id='PwPdr'><ins id='PwPdr'></ins><ul id='PwPdr'></ul><sub id='PwPdr'></sub></form><legend id='PwPdr'></legend><bdo id='PwPdr'><pre id='PwPdr'><center id='PwPdr'></center></pre></bdo></b><th id='PwPdr'></th></span></q></dt></tr></i><div id='PwPdr'><tfoot id='PwPdr'></tfoot><dl id='PwPdr'><fieldset id='PwPdr'></fieldset></dl></div>

          1. <small id='PwPdr'></small><noframes id='PwPdr'>

          2. <legend id='PwPdr'><style id='PwPdr'><dir id='PwPdr'><q id='PwPdr'></q></dir></style></legend>
              <tbody id='PwPdr'></tbody>

                <bdo id='PwPdr'></bdo><ul id='PwPdr'></ul>
                本文介绍了将 Firefox 35 与量角器一起使用会导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                使用 chrome 运行我的 Angular 应用场景,场景运行成功,但在 firefox 新版本 35.0b6 上发生了停止.任何人请帮助我提前谢谢.

                Run my Angular app scenarios with chrome the scenarios are run successfully, but the halt is occurred at firefox new version 35.0b6. Any one please help me thanks in advance.

                我正在使用量角器 1.4.0.我的场景:

                I'm using protractor 1.4.0. My scenario:

                describe('99ccs e2e testing', function() {
                    it('check it have a title 99CCS', function() {
                        browser.get('http://99ccs.com/ccsnew/#/login');
                
                        //it checks the "http://99ccs.com/ccsnew/" page contains a title "99CCS"
                        expect(browser.getTitle()).toEqual('99CCS');
                
                        //it checks when user enter the URL as "http://99ccs.com/ccsnew/" it navigates to "http://99ccs.com/ccsnew/#/login"
                        browser.get('http://99ccs.com/ccsnew/');
                        expect(browser.getLocationAbsUrl()).toBe('http://99ccs.com/ccsnew/#/login');
                
                        //it checks when user enter the URL as "http://99ccs.com/ccsnew/" it navigates to Login page or not
                        browser.getLocationAbsUrl().then(function(url) {
                            expect(url.split('#')[1]).toBe('/login');
                        });
                        expect(browser.get('http://99ccs.com/ccsnew/')).toEqual(browser.get('http://99ccs.com/ccsnew/#/login'));
                
                        //it checks if we give any location url from 99ccs.com/ccsnew without login it navigates to Login page or not
                         expect(browser.get('http://99ccs.com/ccsnew/#/ts/edit/131')).toEqual(browser.get('http://99ccs.com/ccsnew/#/login'));
                    });
                });
                

                推荐答案

                Selenium 2.44 与 Firefox 35 不兼容.相关问题:

                • 注意:Protractor 不适用于 Firefox 35
                • FirefoxDriver 无法使用 FireFox 35 执行异步脚本
                • Firefox 35:将参数传递给 executeScript 不起作用.

                目前最简单的选择是将 firefox 降级到最新的稳定版本(当前为 34.0.5).

                The easiest option right now would be to downgrade firefox to the latest stable version (currently 34.0.5).

                更新: selenium 2.45 已于今天(2015 年 2 月 28 日)发布,修复了 firefox 兼容性问题.目前,要让 protractorselenium 2.45 一起工作 - 直接从 protractor github master 分支安装它:

                UPDATE: selenium 2.45 with firefox compatibility issues fixed was released today (Feb 28 2015). At the moment, to have protractor work with selenium 2.45 - install it from the protractor github master branch directly:

                $ npm install angular/protractor
                

                $ npm install git+https://git@github.com/angular/protractor.git
                

                <小时>

                仅供参考,我已经重现了 protractor 1.5 和angularjs.org"protractor 的相同连接问题教程 测试用例:

                describe('angularjs homepage todo list', function() {
                    it('should add a todo', function() {
                        browser.get('http://www.angularjs.org');
                
                        element(by.model('todoText')).sendKeys('write a protractor test');
                        element(by.css('[value="add"]')).click();
                
                        var todoList = element.all(by.repeater('todo in todos'));
                        expect(todoList.count()).toEqual(3);
                        expect(todoList.get(2).getText()).toEqual('write a protractor test');
                    });
                });
                

                这篇关于将 Firefox 35 与量角器一起使用会导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                What are valid deviceNames for Chrome emulation testing with Protractor?(使用 Protractor 进行 Chrome 模拟测试的有效设备名称是什么?)
                Protractor Check if Element Does Not Exist(量角器检查元素是否不存在)
                Protractor e2e Tests Login Redirection(Protractor e2e 测试登录重定向)
                Explain about async/ await in Protractor(解释 Protractor 中的 async/await)
                Protractor browser.wait doesn#39;t wait(量角器 browser.wait 不等待)
                How to use Protractor with Angular 2?(如何在 Angular 2 中使用量角器?)
                • <legend id='lzo6y'><style id='lzo6y'><dir id='lzo6y'><q id='lzo6y'></q></dir></style></legend>

                  <tfoot id='lzo6y'></tfoot>

                        <small id='lzo6y'></small><noframes id='lzo6y'>

                          <bdo id='lzo6y'></bdo><ul id='lzo6y'></ul>
                            <tbody id='lzo6y'></tbody>
                          <i id='lzo6y'><tr id='lzo6y'><dt id='lzo6y'><q id='lzo6y'><span id='lzo6y'><b id='lzo6y'><form id='lzo6y'><ins id='lzo6y'></ins><ul id='lzo6y'></ul><sub id='lzo6y'></sub></form><legend id='lzo6y'></legend><bdo id='lzo6y'><pre id='lzo6y'><center id='lzo6y'></center></pre></bdo></b><th id='lzo6y'></th></span></q></dt></tr></i><div id='lzo6y'><tfoot id='lzo6y'></tfoot><dl id='lzo6y'><fieldset id='lzo6y'></fieldset></dl></div>