Questions tagged [angular]

AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–* (MVW, MVVM, MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.

Filter by
Sorted by
Tagged with
3
votes
3answers
522 views

AngularJS - Testing User Permissions/ User Access Levels

In our web-application(built on Bootstrap and Angular), certain tabs in the navbar are displayed only to particular users. Certain input boxes/ buttons are enabled only to certain users. I want to ...
1
vote
1answer
27 views

Hooks not getting executed in protractor cucumber

I new to protractor, and trying to implement hooks. But the hooks are not getting executed. Following is my code: Hook.js: const { Before } = require('cucumber'); const {AfterAll} = require('...
0
votes
1answer
546 views

Element not interactable in a non Angular site

For my test, I am using protractor. The test first opens an Angular page, do some actions and then open a nonangular site. For the nonangular site I did the following: it('should login on BC', ...
3
votes
1answer
1k views

Protractor- in same page how to switch from non angular to angular, its clicking on non angular elements but not on angular?

In the same page how to switch from non-angular to angular, it is clicking on non-angular elements but not on angular, when clicking on non-angular lookup then angular window(Popup) will open
0
votes
1answer
26 views

Getting undefined when I define {string} parameter in the when section in the step definition in protractor cucumber

I am new to protractor with cucumber. I have to automate a flow wherein on entering first name, last name, and postcode, a new user is created. I am trying to add the data to be entered in the feature ...
2
votes
3answers
5k views

Scrolling to Bottom of the Text Area using Protractor

I have a text field that I need to scroll to the bottom of in order for the Next button to be activated to click. This project is using Angular 6 my tests are end to end test running on the protractor/...
0
votes
0answers
15 views

Testing with select2 dropdown

Hi I am pretty new to select a select2 dropdown using Rselenium. (Normal select dropdown is ok but when it comes to AngularJS framework I have been struggling a lot.) The field I want to click for ...
5
votes
0answers
772 views

Karma/ Jasmine testing framework - tests don't appear to be executed

I am looking to implement the Karma/ Jasmine test suite/ framework for use with my AngularJS app. Having never used a testing framework previously, I have followed the tutorial - to give it a go, ...
5
votes
4answers
1k views

What to ask programmers before automating with Selenium

What points should I discuss with frontend programmers when preparing a product on which, as a tester, I will use Selenium to automate? I am referring to things like no dynamic ids for elements etc. ...
14
votes
8answers
58k views

Why can't we use Selenium Webdriver to test Angular JS sites?

If we look at the Protractor architecture, Protractor uses WebDriver JS to call Selenium Webdriver which ultimately calls browser driver and then browser. Now since Selenium is passing commands to ...
3
votes
1answer
387 views

How to interact with ngx-monaco-editor

I have a web page that has the ngx-monaco-editor implemented in angular. But i am not able send any data to the editor using sendKeys() . I tried replacing textContent of the div element but it just ...
0
votes
1answer
535 views

unable to run test cases in IE browser in protractor, selenium framework for angular.js web application

I was trying to execute test cases in IE, and I am facing errors as shown in error picture, my config file is shown below. using IE 11.09 with selenium webdriver-4.0.0 in windows server 2012 R2 ...
0
votes
2answers
57 views

User Acceptance Tests with mouse/keyboard capture and picture compare

We have several Angular applications (Micro UIs) and they are all 100% covered by our UATs (User Acceptance Tests) written with Protractor (Angular Test Framework based on Selenium). There are ...
0
votes
1answer
58 views

Is it possible to use Microsoft UIA to automate sites designed in Angular?

I am trying to automate UI for a site designed in Angular and when I inspect the browser (Chrome) with UISpy.exe, I find that certain controls do not exist in the tree at all, even though I can see ...
1
vote
1answer
34 views

E2E Test application flow on multiple devices

Our applications flow start on desktop. At later phase there are some scenarios where the processes require an approval on a touch device. The user waits at a page on desktop. If the user opens the ...
1
vote
1answer
33 views

GUI Testing Angular SPA?

Developer here. Our QA team is researching new strategies for E2E testing for a new product. To start, it will be an Angular SPA, and eventually a PWA. They are leaning towards using Quantum / ...
-1
votes
2answers
78 views

I am unable to identify element of edit text in table

I am unable to identify element. please find my below code. WebElement editorFrame = dr.findElement(By.id("1536219451331-0-uiGrid-000L-cell"));
0
votes
2answers
579 views

How to tell protractor to wait for each command for 3 seconds

I am running angular e2e scripts. I am adding explicit wait for every element. Instead, is it possible to tell protractor to delay 3 seconds for every command?
0
votes
1answer
279 views

Protractor- switch from non- angular to angular

Login page is non- angular. So I set browser.ignoreSynchronization = true; Then after passing the login screen, I have set browser.ignoreSynchronization = false. Also, I have used browser.refresh(). ...
0
votes
2answers
51 views

Is there a better way of carrying out basic text and form validation instead of doing it at E2E?

My understanding of E2E tests is that we should be carrying out tests that run through the whole system to check if everything works together via Selenium (for a web application). However, I've seen ...
1
vote
1answer
547 views

How do I store a value in a global variable and then use it in subsequent steps of a scenario in protractor cucumber typescript based project

I want to retrieve a value in 'Given' function and then store it in a global variable so that the value is accessible in subsequent steps of a scenario in protractor cucumber typescript based ...
1
vote
1answer
150 views

Writing different tests for different environments

We didn't implement automated deployment yet to our Angular 7 project, so environment-based variables (e.g baseUrl) are changed manually, causing the application to crash after deployment a lot due to ...
0
votes
1answer
249 views

Verify and Assert functions does not work as expected in Selenium IDE?

I'm using Selenium IDE to record steps. Web system has developed using Angular.js I tried to use verify text and assert text functions through IDE. For target elements, xpath is given. Same xpath is ...
0
votes
1answer
303 views

How to deal with ui-sref in Selenium

The Context: I'm using selenium in java to click on a link to navigate to the other page of the application. The Problem: The application is made in angular-js wherein I tried to click on the Link,...
0
votes
1answer
48 views

Before entering entire text completely, Selenium is saving data

There is a form having only two field name and Code. Code validation criteria is minimum 2 and max six character. As soon as you enter 2 character save button become enable. Now, problem is when ...
0
votes
1answer
379 views

Appium + Protractor : element not intractable

I am using Appium and Protractor for e2e testing of my Ionic 4 application. The application Starts from the login page. Currently, I have implemented my spec.ts file as below import {browser, by, ...
2
votes
1answer
4k views

Can Selenium handle Angular 7 applications?

Our application is using Angular7. Now we can thinking to automate out application with Selenium Can Selenium handle our application?
0
votes
1answer
114 views

Get value from element of type <a>

So this is the HTML <ul class="has-status sub-menu"> <!-- ngRepeat: subItem in item.subMenuItems track by subItem.name --> <li ng-repeat="subItem in item.subMenuItems track by ...
1
vote
1answer
976 views

How to find radio button value and ID with xpath

<rhr-radio-button element-id="tenderValidType" model="$ctrl.additionalData.procProcedure.tenderValidType" value="UNTIL_DATE" label="additionalData.tenderValidUntil" required="::$ctrl.requiredFields[...
3
votes
2answers
733 views

Should I use Jasmine/FrisbyJS or Mocha/Chai for testing of live API with Angular?

What I'm looking for in an answer Concrete relevant(newer?) examples of why one choice is better than the other OR, a concrete suggestion of why using a different language is the better choice over ...
3
votes
2answers
3k views

Selenium for angular - How to install and run Selenium for Angular E2E testing?

The question seems to be asked in some other Postings here, but I'am relative new to testing with selenium. I would like to use it for testing an angular app - E2E. I have been reading few postings ...
1
vote
3answers
3k views

Element not found error in protractor

I'm new to protractor and trying write a script. But every time I try to locate an element "The Element not found" error is coming. These are the error messages I'm getting. Failed: No element found ...
1
vote
2answers
1k views

What to change in protractor configuration if moving to vue.js?

My company is going to slowly transition from angular.js to vue.js. I have protractor tests set up and running successfully. Aside from the page objects specific to angular, is there anything that ...
2
votes
1answer
380 views

Migrating from AngularJS to ReactJS or what to do with existing e2e tests

The Story We have a mission critical AngularJS application which we extensively test with e2e tests using Protractor/WebdriverJS. At the current state, we have ~30000 lines of existing e2e tests which ...
4
votes
1answer
280 views

What to use for user acceptance testing for a single page application?

The app uses a javascript framework to update the single page. Ajax is used for data updates How I can automate user acceptance testing for it? Usually I use selenium through through the capybara ...
1
vote
1answer
3k views

Unable to run automated tests on the Vue version of the site

We are re-writing our Angular1 platform in Vue. I am trying to run a simple test but the test is failing because Protractor is trying to sync with the page but cannot because it is not in Angular. Any ...
1
vote
0answers
107 views

(Visual) testing of the geographic/GIS maps functionality using Protractor

I'm preparing an automated system/end2end tests for the AngularJS application using Protractor. One part of the application, that I'm going to test, displays geographical maps. I need to verify for ...
0
votes
2answers
849 views

Protractor or Selenide for automation testing Angular6?

We began automation testing of our new project, which is implemented on Angular6. We decided to split the testing of the front-end, back-end and user-scenarios. To automate the testing of the back-...
8
votes
3answers
6k views

Cypress vs Protractor for end-to-end testing

I've recently stumbled upon a modern end-to-end testing framework called Cypress which is going to be released in public beta this year. It really looks awesome at the first glance - there are ...
-2
votes
2answers
48 views

How to test a system developed using Angular, java and API's? [closed]

If a system is developed using Angular for front-end and java for back-end. Front and back ends are interacting using API's. My questions are: (Please answer using relevant number before the answer) 1)...
0
votes
1answer
534 views

Unable to run protractor test in browserstack on ios device

I am trying to run protractor test(ios-11, iPhoneX)in browserstack. I am getting "Error: Error while running testForAngular: Unable to communicate to node" error and some time I am getting the error ...
2
votes
1answer
587 views

Jmeter Scripting for body data having “Info”

Out site is using lots of angular Js. now when I record script for login it has some 5-6 requests recorded. out of those 3 requests are having endcoded key in body data as below. {"Info":"V8P+Pq/...
0
votes
0answers
2k views

How to import and use Angular Environment variables in `protractor.config`?

I would like to save some credentials in the angular environment.prod file and pass them to protractor.config.js Is it possible to import and use env variables from the Angular app environments files....
0
votes
1answer
50 views

How different it is to manually test a web application which is developed using MEAN stack?

Are there any specific details to be taken care of, when manually testing a Web Application developed using Angular JS,Node.js? As these two frameworks are javascript based,what are the features to ...
1
vote
2answers
4k views

How to setup a Headless-Browser Unit-Test for Angular application?`

I do have an angular Application where I also run a test ng test --sm=false. It works fine and I get the result in Chrome Browser. The issue is to be able to run a headless test because the App will ...
0
votes
1answer
3k views

Angular 4 automation using Selenium

I am trying to automate Angular 4 using Selenium, Just wanted to check if there are any good frameworks available? This info will give me a good start.
6
votes
1answer
352 views

Exception thrown: Keeping the Selenium server alive

I am doing protractor test, and I am using ExpectedConditions as below. var EC = protractor.ExpectedConditions; var el = element(by.css('[class="loader-class ng-scope"]')); browser.wait(EC.not(EC....
3
votes
3answers
3k views

E2E test - Why does selenium shut down automatically after running the test?

I'am running an E2E test for an angular app. I did edit the protractor.conf.js in order to use SeleniumStandalone. It looks good, and I can run the test using: ng e2e. protractor.conf.js: const { ...
1
vote
0answers
43 views

Mobile performance testing for Android [closed]

What tools can be used to test a mobile app in Android that was built using Angular 2? Is there any tool for testing performance like load, speed etc. for mobile apps?
1
vote
0answers
2k views

Selenium and AngularJS 2 select (dropdown), Cannot get selected value in c# [closed]

I am looking to find out how to get the value for a dropdown from an angularjs dropdown (for country). I found the special handling needed for basic text fields: Driver.Instance.FindElement(By.XPath(...