protractor

Protractor Internet Explorer Slowness

徘徊边缘 提交于 2020-01-01 10:09:55
问题 I've been trying to get Internet Explorer 11 to run under Protractor to complete a suite of tests I have for an new AngularJS project. I'm running under Windows 7 - 64 Bit and have downloaded and installed the Selenium IEDriverServer.exe for 64 Bit. When I go to launch Protractor and run the scenarios, Internet Explorer comes up and navigates to the page just fine, but when the scenario sends keys to an input field it is extremely slow, like about 15 seconds between each key press. And

Protractor Internet Explorer Slowness

寵の児 提交于 2020-01-01 10:09:32
问题 I've been trying to get Internet Explorer 11 to run under Protractor to complete a suite of tests I have for an new AngularJS project. I'm running under Windows 7 - 64 Bit and have downloaded and installed the Selenium IEDriverServer.exe for 64 Bit. When I go to launch Protractor and run the scenarios, Internet Explorer comes up and navigates to the page just fine, but when the scenario sends keys to an input field it is extremely slow, like about 15 seconds between each key press. And

Protractor e2e throwing webdriver is not defined

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 09:43:42
问题 I had my protractor running untill few days ago when i started encountering: Using the selenium server at http://localhost:4444/wd/hub **** UNCAUGHT EXCEPTION **** Error: connect ECONNREFUSED at exports._errnoException (util.js:682:11) at Object.afterConnect [as oncomplete] (net.js:947:19) **************************** **** UNCAUGHT EXCEPTION **** Error: socket hang up at createHangUpError (_http_client.js:182:15) at Socket.socketCloseListener (_http_client.js:214:23) at Socket.EventEmitter

How to make Protractor work while using Cloud9?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 09:40:16
问题 I am new to Cloud9 and I am trying to use Protractor for e2e testing. I am running the angular-phonecat examples. The error is the folowing: Using ChromeDriver directly... /home/ubuntu/workspace/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109 var template = new Error(this.message); ^ UnknownError: chrome not reachable (Driver info: chromedriver=2.10.267518,platform=Linux 3.14.13-c9 x86_64) at new bot.Error (/home/ubuntu/workspace/node_modules/protractor/node

Protractor + AngularJS + Jasmine get output results on xml file

大城市里の小女人 提交于 2020-01-01 05:40:31
问题 I'm trying to export protractor results to xml files, i found this great link on web: https://github.com/angular/protractor/issues/60 After running : npm install jasmine-reporters i added the following lines to my protracotr config file: require('jasmine-reporters'); jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter( 'C:\temp\test', true, true)); and i get the following error: jasmine.console_reporter.js:2 if (! jasmine) { ^ ReferenceError: jasmine is not defined i attached here my

what done() is for and how to use it ( protractor, jasmine)

三世轮回 提交于 2020-01-01 05:28:31
问题 it('should for something', function check(done) { browser.sleep(2000); $('.csTx').isPresent().then(function(result) { if(result) { done(); } else { xPage.clickBack(); check(done); } }) }, 30000); Can someone explain how done() works and what this is for. I googled it but cannot find any information that would be easy enough for me to understand. I am automating with protractor and jasmine. please consider the above code. 回答1: You need to use done if your test creates a parallel TaskQueue in

AngularJS + Protractor How to select Dropdown option based on its text not value

自作多情 提交于 2020-01-01 05:14:04
问题 I want to click on item by it's text and not by it's value from dropdown box. i found this great post : https://coderwall.com/p/tjx5zg but it doesn't work as expected, the search continue forever after match was found and it is not clicking the item, if someone have better example (a working one) or can fix this code and make it work, i will apperciate. This is the code Dan Haller from the post used (all rights reserved to him) function selectOption(selector, item){ var selectList,

Use of Selenium for AngularJS based Web Applications

十年热恋 提交于 2020-01-01 03:38:07
问题 I have come to know that Selenium is the father of UI testing. Now my question is why then Angular team has developed Protractor. Can't the same job (that Protractor does) be done with Selenium for AngularJS based web applications? Further, people are talking about Nightwatch.js too. So why there are so many E2E testing libraries/frameworks like Protracor or Nightwatch. 回答1: Protractor combines powerful tools and technologies such as NodeJS, Selenium, webDriver, Jasmine, Cucumber and Mocha.

Protractor instance vs browser

假如想象 提交于 2020-01-01 01:12:06
问题 I have tried to looked up for similar QA's but i couldn't find one to satisfy me. So basically i saw that in some examples it's used ptor = protractor.getInstance(); ptor.get(url); And in some other examples it's used. browser.get(url); So th question is: What's the difference using protractor instance and browser for getting specific url? Also if my assumption in the P.S. is right, which is better practice: to use only protractor, or to mix them? P.S. Also i saw same difference in usage with

Usability of Protractor outside of AngularJS

纵然是瞬间 提交于 2020-01-01 00:58:26
问题 So I have recently switched from using AngularJS to ReactJS but I did really like working with the Protractor E2E test runner so I was wondering 2 things about Protractor. Are there any major issues with using Protractor on a site that does not use AngularJS at all? I know that Protractor by default tries to synchronous with Angular and you get the: Error: Angular could not be found on the page X : retries looking for angular exceeded type message however I believe that can be prevented by