protractor

webdriver-manager update with --alternate_cdn argument

倾然丶 夕夏残阳落幕 提交于 2019-12-24 19:17:08
问题 I want to do the below in my protractor-cucumber framework. I can not use public repo like googleapi.com as per org policy: webdriver-manager update --standalone=0 --chrome --alternate_cdn https://www.artifactrepository.xyz.net/artifactory/api/npm-teamdev/ Also this: webdriver-manager update --chrome=0 --standalone --alternate_cdn https://www.artifactrepository.xyz.net/artifactory/api/npm-teamdev/ But i always get this as response: C:\Users\ABCD\Desktop\JSProjects\protractor-cucumber

Angular 2 - protractor(e2e) error “Cannot find name 'protractor'”

巧了我就是萌 提交于 2019-12-24 17:18:51
问题 After enter npm run protractor appera error Cannot find name 'protractor' My package.json { "name": "SMSCAdmin", "version": "0.0.1", "description": "Admin module for SMSC.", "author": "Bulktrade GmbH", "homepage": "https://github.com/bulktrade/SMSC", "license": "Apache-2.0", "scripts": { "build:dev": "webpack --config config/webpack.dev.js --progress --profile", "build:docker": "npm run build:prod && docker build -t angular2-webpack-start:latest .", "build:prod": "webpack --config config

How can we automatically trigger the protractor script at specific time intervals

亡梦爱人 提交于 2019-12-24 15:54:52
问题 I am entering data from the DB to our application through protractor script.So now i am running the protractor script by the command 'protractor conf.js' from the command prompt.But i have to trigger the protractor script automatically instead of doing it manually from the command prompt.Do we have any methods or code for automatically trigger the protractor script in every specific time interval. Thanks in advance. 回答1: Simplest way is to create a batch file with two commands and schedule a

Unable to send Email using nodemailer in protractor.conf.js onComplete: function()

元气小坏坏 提交于 2019-12-24 09:31:54
问题 Unable to send Email using nodemailer in protractor.conf.js onComplete: function(). Used the below code and it does not execute onComplete block onComplete: function() { var nodemailer = require('nodemailer'); var transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 465, secure: true, // use SSL auth: { user: 'email', pass: 'password' } }); var mailOptions = { from: '"TestMail" <>', // sender address (who sends) to: 'receiver's email', // list of receivers (who receives)

How to generate skeleton using cucumber feature file

久未见 提交于 2019-12-24 09:29:40
问题 We have tried below steps: on node command prompt we tried exciting below commands Npm install -g cucumber Also we tried npm install -g protractor-cucumber cucumber --version Above command opening webstorm editor. We have created feature file(feature/testfeature.feature) Now to generate skeleton we tried running below command on cmd prompt. Cucumber.js It is opening webstorm editor We are not able to see skeleton file Could you please suggest if we are missing anything We should be able to

how to check what is causing webdriver-manager to fail

江枫思渺然 提交于 2019-12-24 09:26:05
问题 I am trying to execute this simple protractor example https://coryrylan.com/blog/introduction-to-e2e-testing-with-the-angular-cli-and-protractor and I am getting webpack: Compiled successfully. events.js:182 throw er; // Unhandled 'error' event ^ Error: connect ETIMEDOUT 123.123.123.123:443 at Object._errnoException (util.js:1024:11) at _exceptionWithHostPort (util.js:1046:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1185:14) As far as I could understand, this is an error caused

Protractor takes blank screenshots when “restartBrowserBetweenTests: true” is set

不想你离开。 提交于 2019-12-24 09:22:08
问题 I'm trying to use protractor-jasmine2-html-reporter to take screenshots of my tests as they run, but it appears to be taking them directly after the browser is restarted due to the "restartBrowserBetweenTests" flag in conf.js being set to "true". I need to use that flag to restart the browser because it seems to be the only way to clear the session sufficiently so that subsequent tests can use the sign in page, rather than the application assuming it's the same user and redirecting them to

Protractor Locator Time Out exception for AngularJs application

自古美人都是妖i 提交于 2019-12-24 08:24:38
问题 We are trying to automate a publicly accessible website and click on one of the links, but the test fails with TimeOut Exception while locating the element as below: From: Task: Protractor.waitForAngular() - Locator: By(link text, MY ACCOUNT) Sample conf and spec file below. Requesting help on how to solve this issue. conf.js exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', capabilities: { 'browserName': 'chrome' }, specs: ['test.js'] }; test.js describe('test', function()

function timed out after 5000 milliseconds - Angular 4 - Protractor & cucumber

我怕爱的太早我们不能终老 提交于 2019-12-24 08:20:42
问题 I am automating an angular 4 application with protractor & cucumber framework. Getting error for a simple button click. (Not all the times) 1) Scenario: Scenario 2 - features\Home.feature:9 Step: Then Click on edit button - features\Home.feature:11 Step Definition: stepDefinitions\FirstStep.ts:31 Message: Error: function timed out after 5000 milliseconds at Timeout.<anonymous> (C:\MyWorkspace\protractor-cucumber-final\protractor-cucumber-final\node_modules\cucumber\lib\user_code_runner.js:91

Run ng e2e with --element-explorer not working

故事扮演 提交于 2019-12-24 08:03:05
问题 I'm trying to figure out how I can debug my end to end tests. I'm usage protractor in an angular project and using the protractor-cucumber-framework custom framework. Given('[...]', async () => { await page.goToMeetupsListPage(); const profile: Profile = getMichel(); await page.setProfile(JSON.stringify(profile)); await page.refreshPage(); }); I'm setting a break point in this kind of function. Then I run the command ng e2e --element-explorer which is supposed to look for break points. Then I