Example Scenarios of GetRoProperty in UFT – User friendly Tech help

1. How to fetch the title of opened browser using UFT? n Variable DeclarationDim sTitle , objDesc ,objBrowser’Creating Description ObjectSet objDesc = Description.Create’Description object is pointing to BrowserobjDesc(“micclass”).value = “Browser”‘Fetching all the opened BrowserSet objBrowser = Desktop.ChildObjects(objDesc)’Taking the tile of the opened browser using GetROPropertyFor iCounter = 0 to objBrowser.Count -1 MsgBox “Title of opened…

How to download a file from ALM in UFT using OTA? – User friendly Tech help

Requirement:-nHow we can download a give file from ALM (“Test Resources” Tab) using OTA?nn n n n n n Test Resources Tab n n n nnSolution:-nWe will utilize “QCUtil” , a utility object available in UFT, to leverage the methods and properties of OTA(Open Test Architecture) for downloading the user given file.nnLogic:-nOur approach is to…

Running Selenium test case in Google Chrome? – User friendly Tech help

We have already learned to execute selenium test case in Firefox browser . Now we thought of running the same test on “Google Chrome”.nnRequirement:- Executing selenium webdriver test case in Google chrome for the first time.nnSolution:-nWe simply tried to change the previous code and passed the reference of “chromedriver”.nnBefore :-n  WebDriver driver = new FirefoxDriver();nAfter:-n …

Real meaning of Regular Expression’s(RG’s) – User friendly Tech help

n It is a way of representing data using symbols, which are in the form of special characters like ‘*’,’ +’, ’.’,  ’’.nn Further these characters are used for search of particular pattern in strings. n RG’s in UFT: n These are used in UFT to identify objects and text strings with varying values very useful…

Getting started with Sass (Installation) – User friendly Tech help

Requirement:-nnInstalling Sass on Windows/Linux/Mac platform.nnWhat is Sass?nSass(Syntactically Awesome StyleSheets) is an extension of CSS that adds power and elegance to the basic language. It allows you to use variables, nested rules, mixins, inline imports, and more, all with fully CSS-compatible syntax and adds features to combat shortcomings. Sass helps keep large stylesheets well-organized, and get…

Using Prettier with Apex Salesforce in VSCode – User friendly Tech help

Prerequisite:- VSCode is fully configured to work with Salesforce n n Select the existing Salesforce Project. At the root level run the below command in the Terminaln npm init //this will create package.json file to track npm dependencies n Run the below code to install the prettier apex npm plugin, as a local dependency to…

How to close all browsers other than ALM in UFT using Descriptive Programming. – User friendly Tech help

Requirement:– Close all browsers other than Application life cycle (ALM/QC) nn n n n n n Kill browser other than ALM  n n n Solution:– We followed the concept of Descriptive Programming in UFT to achieve the result.nnApproach:– Very simple and straight flow,look for all the opened browsers (Creating DP object ). Incase browser is not…

Prerequisites for starting with selenium webdriver? – User friendly Tech help

Whole automation fraternity is crazy about the emerging demand of selenium.Today we are sharing our 1st post on selenium.We are not doing something out-of-box, however we tend to start a basic step towards helping people learn Selenium.Hope our this initiative can guide and mentor our budding automation coders.nnRequirement:- What is required to execute and get…