What is the process for completing a form with Protractor and TextAngular?

I'm currently attempting to submit a form that utilizes TextAngular for certain input fields.

Despite my efforts, I haven't been successful in finding information on how to fill out these fields. The closest solution I found was this, but when I try something similar, I encounter an error stating: "Element is not clickable at point (240, 249). Other element would receive the click."

Edit:

After some trial and error, I managed to get the following method to work. However, due to the scarcity of search results, I suspect there may be a simpler approach...

element(by.model('activity.description')).element(by.css('.ta-bind')).click();
browser.actions().sendKeys(data.description).perform();

Answer №1

This is an example of using a regular input field

var taInput  = browser.element(by.model('formData.description')).$('div.ta-bind');
taInput.sendKeys('your text');
expect(taInput.getText()).toEqual('your text');

If you prefer working with HTML, you can use the following approach

browser.element(by.model('formData.description')).$('textarea.ta-bind');

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Are there any potential methods for converting HTML to PDF within a Cordova Angular JS and UWP app using jQuery? I encountered an error stating that 'blob:ms-appx-web' is not permitted to load

view image here I encountered this issue: SEC7134: Resource 'blob:ms-appx-web://mysiteurl/3d5c0f51-04e2-4944-bf3e-4ea19185511c' not allowed to load If anyone has a solution, please help us in resolving this problem. Below is my code snippet ...

How can I automate testing with Cucumber using Rails and Capybara to manage an AngularJS dialog box?

Currently, I am developing an application that utilizes AngularJS. There is a flow in the application where clicking a button triggers a dialog box to appear with various fields. I am facing an issue when trying to input values into the fields within the ...

Tips on how to customize/ng-class within a directive containing a template using replace: true functionality

To keep replace: true, how can ng-class be implemented on the directive below without causing conflicts with the template's ng-class? This currently results in an Angular error: Error: Syntax Error: Token '{' is an unexpected token at co ...

The files fail to respond after executing npm and initiating npm starts

I'm completely new to AngularJS. When I run npm start, the server status shows "serving from :. /" but it doesn't seem to pick up the file even though I've specified the file name as index.html. Can someone please assist me in resolving this ...

How can I update a CSS class value by utilizing AngularJS variables?

I am currently facing an issue with making my CSS values dynamic. The code I have tried is not functioning as expected. <style> .panel-primary { background-color:{{myColorPanel}} } </style> I came across a similar query on Ho ...

Retrieve a specific value from an array of objects by searching for a particular object's value

Here is an example of an array of objects I am working with: $scope.SACCodes = [ {'code':'023', 'description':'Spread FTGs', 'group':'footings'}, {'code':'024', ' ...

Adding two headers to a post request in Angular 2 - a step-by-step guide!

Is there a way to combine 2 headers in the following code snippet: appendHeaders(json: PortfolioVO) { var newJson = JSON.stringify(json); var allHeaders = new Headers(); allHeaders.append('Content-type' , 'application/jso ...

ng-click is not triggering my function

I'm really struggling to understand how AngularJS and Typescript can work together efficiently. My main goal is to make a simple method call, but I seem to be stuck due to some constraints in the architecture I have chosen. I must have made a mistake ...

Issues with Angular Material Pagination functionality may be causing unexpected behavior

I'm facing an issue with displaying data in an HTML table using an API. I've tried to implement pagination to show 3 or 6 rows per page, but it's not working as expected. Currently, all the data is being displayed without any pagination, whe ...

Handling NullPointerException in AngularJs and Jersey when using Java

I have been tasked with creating an application using AngularJs, Bootstrap, Java, and Tomcat as the server. Even though I am new to Java EE, I am facing an error that seems simple but I cannot find a solution for it. When I initiate the project, I can see ...

Converting an object of objects into an associative array using Javascript and JSON

Using AngularJS, I am sending this data to my API : $http.post('/api/test', { credits: { value:"100", action:"test" } }); Upon receiving the data in my nodeJS (+Express) backend, it appears as follows : https://i.stack.imgur.com/NurHp.png Why ...

AngularJS - Organize Item Hierarchy with Separate Containers for Each Group

My goal is to incorporate a $scope variable within an AngularJS controller that has the following structure: $scope.hierarchy = { name: 'bob', selected: true, children: [ { name: 'frank' }, { name: 'spike' ...

Utilizing AngularJS to dynamically load content within popups

How can I dynamically load my JSON data in a popup when a specific div is clicked? Here is my code: <div class="col-xs-12 col-sm-6 col-lg-4 checkContent" ng-repeat = "appreciate in CustAppre" ng-click = "openBigDiv()"> <div c ...

What is the best way to store a WAV Blob in MongoDB, fetch it accurately, and serve it using Node

While there are many resources available on saving binary files using the Mongoose Buffer SchemaType, most of them focus on image files. I have encountered difficulties in making it work with a WAV audio file. Currently, I am utilizing Recorder.js to stor ...

Array vs Single Object - Comparing AngularJS / Javascript Data Structures (Basic)

My array is very basic [ { ticketId: 1, name: "John", }, { ticketId: 124, name: "Ads" } ] I have displayed the data in a dropdown menu <ul class="dropdown-menu"> <li ng-repeat="ticket in tickets"> <a h ...

sanitizing user input in an AngularJS application

I created a feature in angular using ng-repeat <ul class="messages"> <li ng-repeat="e in enquiries"> <img src="/img/avatar.jpg" alt=""> <div> ...

Timeout in session - Spring boot and Angular app receives HTTP Status code of -1

Currently, my application utilizes spring boot and angular. I have implemented a session timeout handling in the "ResponseError" function of Angular Interceptor. On the server side, I have included an HTTPSessionListener. In order to test this timeout sce ...

Using angularJS and Regular Expressions to eliminate the "+" symbols in an email address

I have been given the task of disallowing email addresses with a "+" sign from registering. As someone new to regex, my understanding is that it is better to focus on defining what constitutes a valid input rather than listing what should be excluded. I re ...

AngularJS is displaying a blank Galleria when images fail to load

I have a code snippet similar to the following var dummyAlbum = [ {image: 'http://i.imgur.com/7Osllxil.jpg'}, {image: 'http://i.imgur.com/YACmI1G.jpg'}, {image: 'http://i.imgur.com/af4ZDy8.jpg'}, {image: &apos ...

Error encountered when attempting to use the submit button in AngularJS

My goal is to create a simple Angular application that takes input of two numbers (n1 and n2) and then prints their sum. I have integrated Bootstrap for styling, but noticed that nothing was happening upon submission. To troubleshoot, I added an alert() fu ...