Search Posts

Category: automated-tests

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” […]

How to test Handsontable with virtual scrolling in Angular App using Protractor?

We use Handsontable in a hybrid AngularJS / Angular app that we test using Protractor. As far as I know we don’t use the available Angular wrapper for Handsontable but instead use it directly. Typical actions we would like to do in a fast way: Expand all collapsed columns in the table Read value of cell (x,y) Read all values in row y Change the value in cell (x,y) Currently we have two approaches to […]

browser.wait() does not work when there is no spinner in ProtratorJs Test

I am facing very weird behaviour of browser.wait(). In my test website sometime Spinner appear and sometime it does not appear to handle this situation I am using browser.wait(). But when there is no spinner appears in the page in that condition my code is not working and throwing exception. Can you please help me to resolve this issue. How I can make sure that if there is no spinner execution will continue if there […]