Search Posts

Category: protractor

Protractor hangs at "Selenium standalone server started "

My team recently switched from starting the webdriver-manager manually, to specifying the selenium server in the conf.js file, as specified here: https://github.com/angular/protractor/blob/master/docs/server-setup.md#standalone-selenium-server. I’m trying to run Protractor with the following conf.js, which takes a few arguments and then returns a configuration object: //create-conf.js ‘use strict’; const path = require(‘path’); const globalData = require(‘./globalData’); module.exports = (confLocation, specs, reportDirName, browserName = ‘chrome’) => { // We want the reports to be saved relative to the config, […]

AngularJS- synchronisation within automated testing?

I am developing a suite of automated tests for an AngularJS application using Protractor, and am having a bit of trouble with the test that I am currently writing: The purpose of the test is to click one of the menu items, and check that it redirects the user to the correct page. This particular criteria does currently pass, however, I need this test to perform one other action before it can complete- the page […]

End to end Testing for playFramework , angular and MongoDB

Hi there i am seeking advice on end to end testing for play framework(java), angular 1.5 and mongodDB. I have looked into Using Protractor. Protractor The protractor is a Node.js program and runs end-to-end tests that are also written in JavaScript and run with node. So, is it protractor able to test out my app ? or there is more effective testing framework could help me with testing. my main purpose of the end to […]

When i am testing the application i am getting this error No component factory found for AlertModal

Code: this.modalRef = this.alertService.open(AlertModal,this.logoutScreenOptions); this.modalRef.componentInstance.messageObj = {type : ‘basic’, title: title, message: msg}; this.modalRef.result.then((result) => { }, (reason) => { console.log(“Closed with “+reason); }); @NgModule({ entryComponents: [ AlertModal ] }) Error: Error: No component factory found for AlertModal. Did you add it to @NgModule.entryComponents? at noComponentFactoryError (http://localhost:9876/base/src/test.ts?255649f9a1a6edbb610949c0145114536ad2d17e:3704:34) at _NullComponentFactoryResolver.Array.concat._NullComponentFactoryResolver.resolveComponentFactory (http://localhost:9876/base/src/test.ts?255649f9a1a6edbb610949c0145114536ad2d17e:3722:15) Source: AngularJS

How can I get Protractor v5 to work with JDK 1.7?

Is there a way to run the latest Protractor (v5.1.2) with Java 7? I see the following error when I start up webdriver-manager. I would prefer not to downgrade Protractor, but at this point, I’m desperate. [10:15:04] I/start – java -Dwebdriver.chrome.driver=C:Usersx12345codemy-protractor-appnode_modulesprotractornode_moduleswebdriver-managerseleniumchromed river_2.33.exe -Dwebdriver.gecko.driver=C:Usersx12345codemy-protractor-appnod e_modulesprotractornode_moduleswebdriver-managerseleniumgeckodriver-v0.19.0 .exe -jar C:Usersx12345codemy-protractor-appnode_modulesprotractornode_modu leswebdriver-managerseleniumselenium-server-standalone-3.6.0.jar -port 4444 [10:15:04] I/start – seleniumProcess.pid: 12752 Exception in thread “main” java.lang.UnsupportedClassVersionError: org/openqa/gr id/selenium/GridLauncherV3 : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14 2) […]

Moving Protractor tests to async/await (leaving selenium control flow)

I want to move appart from the selenium control flow in my Protractor tests. Here are the steps and problems I went through so far: 1. Disable it test by test My first idea was to use SELENIUM_PROMISE_MANAGER in order to move from selenium promises to async/await code. Unfortunately, I found no way to put one test to SELENIUM_PROMISE_MANAGER=0 while keeping others to SELENIUM_PROMISE_MANAGER=1 in order to do the migration smoothly. 2. Keep it but […]

ExecuteScript not working with AngularJS form and Protractor

Used below codes to automate a login form. Form is built in AngularJS and I am using Protractor Framework. After filling textbox and clicked submit button; I am getting error that both textbox are empty. Used wait also. sendkeys is working fine, but its taking time to input larger forms; so I am expecting to use executeScript. HTML Code: <input id=”email” class=”form-control ng-pristine ng-valid ng-touched” type=”text” ng-keypress=”logindata($event)” ng-model=”email” placeholder=”Email ID” value=”” name=”email”> <input id=”pass” class=”form-control […]

JavascriptExecutor is not working with AngularJS forms

I am trying to automate a login form by Selenium Webdriver (JavascriptExecutor) which is built in AngularJS. The script is entering data in textbox; but when submit button is clicked error message shows that textbox is not filled. I have also used events like onkeyup(), blur(); but error shows these are not functions. Textbox validation works fine with sendkeys() and it takes time; but facing issue when JavascriptExecutor is used. http://oditek.in/ikomplianzWeb/client/ html code: <input id=”email” […]

Next Page »