Home > Automation Testing (Page 7)

Protractor: Add data in excel sheet using exceljs in node

Prerequisite:To perform write operation on excel sheet we need node application and exceljs library installed. Below is the code for different write action on excel file. Add sheet to new excel file [crayon-6767d4bc3af93193986033/] Add row in new sheet [crayon-6767d4bc3af9a317781934/] Edit Existing Excel File [crayon-6767d4bc3af9c230296433/]

This Article is TAGGED in , , , , . Read more

Read PDF File using Protractor

Pre-requisite: To read pdf file, first we need to install pdf2json library. Step to install pdf2json Prerequisite : System should have nodejs Installed. Open COMMAND prompt and go to directory . Write npm i pdf2json  and press enter. Once library is installed you will see below screen   Below is the code which shows how to read PDF

This Article is TAGGED in , , , , . Read more

Protractor is better than Selenium for Angular Applications.

The selection between selenium or protractor is based on what type of web application we are automating. If your application is angular based then it is feasible to select protractor. In this post you will learn why to use protractor for web based application. Protractor runs on top of selenium webdriver

This Article is TAGGED in , , . Read more

Advantages and disadvantages of protractor

Advantages of Protractor: Protractor runs on top of the selenium webdriver. Hence all the capabilities of webdriver are supported in protractor. It has extra locators compared to selenium webdriver those are model,repeater, binding etc. It has default waits which waits for angular which is not present in selenium webdriver. Easy to write and manage

This Article is TAGGED in . Read more

Protractor locators

Protractor locators: Protractor is wrapper of Selenium Javascript Webdriver. All the locators of selenium webdriver is supported in protractor along with these locators protractor supports angularJS specific attributes ng-model, ng-repeat, ng-options, ng-binding. Here are the list of locators supported by protractor: buttonText partialButtonText binding exactBinding model cssContainingText options deepCss repeater exactRepeater className css id linkText js name partialLinkText tagName Xpath Syntax of Model locator: element(by.model('modelName')); Syntax of binding locator: element(by.binding('bindingName')); Syntax of repeater locator: element.all(by.repeater('RepeaterName')).get(index); Above syntax in

This Article is TAGGED in . Read more

Identify dynamic link or webElement using Protractor

If the text of link/webElement is continuously changing then we call it as dynamic link or web element. We have two scenarios, first scenario is text of link may completely change second scenario is text of link may partially change. If it is partially changing we can use locator partailLinkText

This Article is TAGGED in , , . Read more

Open URL in different browser using batch file.

To Launch same url in multiple browser then copy below code in notepad and save file as "launch.bat" [crayon-6767d4bc3b755066269063/] Double click on launch.bat file. It will open set url in internet explorer,chrome,firefox and in Microsoft EDGE. Let us know if you want more information about batch file commands.

This Article is TAGGED in . Read more

Read data from excel sheet using Katalon Studio

It it very easy to get data from excel using Katalon Studio. For Data driven test cases we need excel sheet. In this article will see how to use excel sheet in KATALON studio by using findTestData method. Select Menu File -> New -> Test Data (Katalon studio will show "New

This Article is TAGGED in , . Read more

Katalon studio : Dynamic object / link Identification by modifyObjectProperty

Dynamic object Identification using KATALON Studio. When object location is changing every time then it is not good practice to update the reference of object in Object Repository. For this it is better to identify the object location dynamically by using method like modifyObjectProperty Below is sample code which will give you idea

This Article is TAGGED in , . Read more