
Loading ...
Recently while working with BPT Automation I was trying to implement flexible functions in my library which can be used in both the normal as well as BPT code. Consider the below Login function
Function App_Login(UserName, Password)
Browser("X").Page("X").WebEdit("UserName").Set UserName
Browser("X").Page("X").WebEdit("Password").Set Password
Browser("X").Page("X").WebButton("Login").Click
End Function
Now since BPT supports component parameters I can do away with passing any of the parameters to [...]
Register or Login to read the full article...
Tags used -
Application Area, blank value, BPT, Component, Does not work, function, Library, not loaded, parameters, Scripted Component, value is blank

Loading ...
In this article we will see how to override function using function pointer. Let’s first understand what overriding means. Overriding a function means changing the behavior of an existing function and defines a new behavior. It is different from function overloading. Function overloading allows a method to exhibit different behavior based on method signature while [...]
Register or Login to read the full article...
Tags used -
function, GetRef, overload, overridden, Override, Overriding, pointer, redefine, redefining, Replace, VBScript

Loading ...
At times, there are situations where we need to execute the same operation on multiple objects. Example of such situations is listed below
Checking/Unchecking all Check Boxes on a web page
Setting all the Text Boxes to blank value
Selecting the first possible value for every WebRadioGroup
The usual way to do it in Descriptive Programming (DP) is to [...]
Register or Login to read the full article...
Tags used -
Action, Descriptive Programming, execute, Framework, function, GetTOProperties, multiple, RegisterUserFunc, SI, Smart Identification

Loading ...
Callback is a function which is executed on completion of a registered event. VBScript is not a event driven language, which means we are limited in terms of events for which callback can be implemented.
This article will demonstrate how to implement a callback on finish/terminate event. This finish/terminate event could be one of the following
The [...]
Register or Login to read the full article...
Tags used -
Call, Callback, Class, end, ends, Error, execute, function, script, VBScript

Loading ...
What is variable?
Variable is a named container used to store values
Declaring a variable
There are three possible ways to declare a variable
Dim <variablename>
Public </variablename><variablename>
Private </variablename><variablename></variablename>
Ex –
Dim x, y, z
Dim a
Dim b, c
Variable naming rules
Variable names should following the below rules
Must not exceed 255 characters.
Must be unique in the [...]
Read the full article...
Tags used -
Coding, Const, convention, date, Double, explicit, float, function, int, naming, option, standards, time, VB, VBScript