Date post: | 17-Jul-2016 |
Category: |
Documents |
Upload: | vvenkat123 |
View: | 14 times |
Download: | 1 times |
document.doc
Table of Contents
Descriptive Programming....................................................2Background......................................................................................................................2Concept of Descriptive Programming.............................................................................2Why Descriptive Programming based scripting framework...........................................2Contents on a Web Page..................................................................................................3
Function Library..................................................................41.) Common Function......................................................................................................4
Use...............................................................................................................................4Arguments....................................................................................................................4Code and Explanation..................................................................................................4
2.) Search Function..........................................................................................................6Use...............................................................................................................................6Arguments....................................................................................................................6Code and Explanation..................................................................................................7
3.) NextScreen Function................................................................................................10Use:............................................................................................................................10Arguments..................................................................................................................10Code and Explanation................................................................................................10
4.) CommonTable Function...........................................................................................11Use:............................................................................................................................11Arguments..................................................................................................................11Code...........................................................................................................................11
5.) SearchTable Function...............................................................................................12Use.............................................................................................................................12Arguments..................................................................................................................12Code...........................................................................................................................13
6.) ClearCell Function...................................................................................................14Use.............................................................................................................................14Arguments..................................................................................................................14
Page 1 4/28/2023
document.doc
Descriptive Programming
Background
Quick Test Professional (QTP) while recording stores all the properties required to define web objects in its object repository. When the script is run the object repository is used to identify the objects in the application.
When an operation is recorded on an object, Quick Test Professional adds the appropriate test object to the object repository along with its properties. Once the object along with its property is added in the object repository, statements can be added in the Expert View of the tool to perform additional methods/functions on the added object.
The statements are added usually by entering the name (not case sensitive) of each of the objects in the object's hierarchy as the object description, and then add the appropriate method.
Concept of Descriptive Programming
Instructing Quick Test Professional to perform methods on objects without referring to the object repository or to the object's name is done using descriptive programming.
By providing Quick Test Professional with a list of properties and values that are required identify the object or objects in an application one can perform any desired method/function using these objects.
Such a programmatic description is very useful while performing an operation on an object that is not stored in the object repository to perform the same operation on several objects with certain identical properties or to perform an operation on an object whose properties change dynamically during every run.
Why Descriptive Programming based scripting framework
Following are the advantages of Descriptive Programming based framework
Script independent of Object Repository makes it more robust. Reduces rework in an environment where object properties change regularly.
Reduces Test Case preparation time after a generic code is created.
Generic code can be used for any kind of Web Application which increases reusability.
Single script is used for test case preparation : single script, multiple usage
Page 2 4/28/2023
document.doc
Application failures can be accurately identified.
Condition based testing – Captures hidden controls on the application which are visible on the fulfillment of certain criteria thereby reducing the count of invalid defects
Contents on a Web Page
A typical Web Page will have the following class objects
WebList – Refers to the dropdown. WebEdit – Refers to the text/edit box.
WebCheckBox – Refers to the check box.
WebRadioGroup – Refers to the radio button.
WebElement – Refers to all the web objects on an HTML page.
Image – Refers to an image on the screen.
Link – Refers to the hyperlink on the screen.
WebTable – Refers to the Web Table on the screen.
Page 3 4/28/2023
document.doc
Function Library
1.) Common Function
UseCommon Function gets all the objects of a screen along with its properties in an Excel sheet.
Arguments Common Function has five arguments
1. excelSheet: The existing sheet in C drive2. snameBrowser: The name of the Browser3. stitlePage: The Title of the Page4. val: The type of control5. val2: The value of Property HTML tag in case of WebElement otherwise Blank
Code and ExplanationContent of Common Function
Set Obj=Description.create() Creates an object of Description Class
If val = "WebElement" ThenObj("micclass").Value = valObj("html tag").Value = val2
Set List=Browser("name:="&snameBrowser).Page("title:="&stitlePage).ChildObjects(Obj)
If the Class is WebElement, the object is defined by two properties, micclass and html tag.List will contain all the childobjects of type WebElement with the mentioned html tag.
objcount=List.count()rowCount = excelSheet.UsedRange.Rows.count
objcount contains the number of childobjects of type WebElement with the mentioned html tag.
Page 4 4/28/2023
document.doc
rowcount contains the number of filled (used) rows of the excel sheet.For j=0 to objcount-1
excelSheet.Cells(rowCount + 1 , "A") = snameBrowserexcelSheet.Cells(rowCount + 1 , "B") = stitlePage
If val2 = "SPAN" Thenarr2=List(j).GetROProperty("html id")excelSheet.Cells(rowCount + 1 , "F") = arr2excelSheet.Cells(rowCount + 1 , "D") = arr2'MyArray = Split(arr2, "_", -1, 1)'No=Ubound(MyArray)'excelSheet.Cells(rowCount + 1 , "D") = MyArray(No)excelSheet.Cells(rowCount + 1 , "C") = valarr1=List(j).GetROProperty("innerText")excelSheet.Cells(rowCount + 1 , "G") = arr1rowCount = rowCount + 1
Elserr2=List(j).GetROProperty("innerhtml")excelSheet.Cells(rowCount + 1 , "F") = arr2excelSheet.Cells(rowCount + 1 , "D") = arr2'MyArray = Split(arr2, ",", -1, 1)'No=Ubound(MyArray)'excelSheet.Cells(rowCount + 1 , "D") = MyArray(No)excelSheet.Cells(rowCount + 1 , "C") = valarr1=List(j).GetROProperty("innerText")excelSheet.Cells(rowCount + 1 , "G") = arr1rowCount = rowCount + 1
End if
Next
Populates the excelSheet with controls, properties value i.e identifier
If the value of Html tag is SPAN then get value of the html id and populate it in excelSheet into column “F”Splitting the html id with ‘_’ as separator and storing the last part of the html id into column “D”
Populate the column “C “with WebElement Populate the column “G” with the value of “innerText”
Otherwise
Get the value of “innerhtml” and populate it in column “F” and column “D”Split the value of “innerhtml” separated by comma and last portion of the value into column”D” Populate the column “C” with WebElement
Page 5 4/28/2023
document.doc
ElseObj("micclass").Value = valSet List =Browser("name:="&snameBrowser).Page("title:="&stitlePage).ChildObjects(Obj)objcount=List.count()rowCount = excelSheet.UsedRange.Rows.countFor j=0 to objcount-1
arr1=List(j).GetROProperty("Name")excelSheet.Cells(rowCount + 1 , "E") = arr1MyArray = Split(arr1, "$", -1, 1)No=Ubound(MyArray)excelSheet.Cells(rowCount + 1 , "D") = MyArray(No)
excelSheet.Cells(rowCount + 1 , "A") = snameBrowser excelSheet.Cells(rowCount + 1 , "B") = stitlePage arr2=List(j).GetROProperty("html id")
excelSheet.Cells(rowCount + 1 , "F") = arr2 excelSheet.Cells(rowCount + 1 , "C") = val
arr3=List(j).GetROProperty("value")excelSheet.Cells(rowCount + 1 , "G") = arr3If val = "Image" Then
arr2=List(j).GetROProperty("html id")excelSheet.Cells(rowCount + 1 , "F") = arr2
End IfIf val = "WebRadioGroup" Then
arr2=List(j).GetROProperty("value")excelSheet.Cells(rowCount + 1 , "G") = arr2
End IfrowCount = rowCount + 1
NextEnd ifEnd Function
For Classes other than WebElement,Set the property of the object Obj as “micclass” and assign it the value which is passed into the functionGet the value of html id and the name of all the child objects of object Obj and populate it into column “F” and “E”Split the name values separated by “$” and populate the column “D” with the last portion of the name valuesIf the “micclass” value of object Obj is WebRadioGroup, populate the column “G” with the value of the Property “value”.
2.) Search Function
UseSearch Function searches the identifier from the Excelsheet
Arguments One argument is passed in this function.
Page 6 4/28/2023
document.doc
excelSheet: The existing sheet in the C: drive
Code and ExplanationFunction Search (excelSheet)
VariablesDim X, XL, Row, iRow , xRow, T, Bname, Ptitle
X: It is used to store the value of field from the datatable
XL: It is used to store the cell value of column “D” from excelSheet
Row: Row contains the count of the used row or filled rows in the excelSheet
iRow: iRow is used for searching the row which contains the specified datatable field in excelSheet
T: T is used for storing the value of the Type column of the datatable
vRow: vRow is used to store the value of the vRow column of the datatable, controls the flow of the script, It acts as a Handler of the script
vRow = DataTable.Value("vRow", dtGlobalSheet)DataTable.SetCurrentRow(vRow+1)
T = Datatable.Value("Type", dtglobalSheet)
Stores the value of Column “Type” of the datatable
If T = "Next" Thenwait 5Call NextScreen(excelSheet)vRow = vRow + 1DataTable.SetCurrentRow(vRow+1)T = Datatable.Value("Type", dtglobalSheet)
End If
Next is used for identifying the navigated screen and populating the excelSheet with all the objects and its properties.
When T = Next, NextScreen(excelSheet) function is called.NextScreen is used for identifying the navigated screen and populating the excelSheet with all the objects and its properties.
NextScreen function has been discussed in detail later.
Page 7 4/28/2023
document.doc
If T = "CheckPoint" ThenDim oinf, infinf = DataTable.Value("Otherinfo", dtglobalSheet)oinf = Split(inf, ",", -1, 1)Call Common (excelSheet, oinf(0), oinf(0), "WebElement", oinf(1))Row = excelSheet.UsedRange.Rows.Count
End If
For T = Checkpoint, Otherinfo field in the datatable of the script provides the browser name and the html tag of the Web Element which needs to be checked.Browser Name and HTML Tag is retrieved using the split command where the delimiter/splitter is “,”This browser name and HTML tag along with the Page Title* is passed in the common function.
*Page Title is same as browser name in the current application. If it changes then Otherinfo will have Browser Name, Page Title, HTML Tag. Arguments in the Common Function will be changed to the following in the above case.Call Common (excelSheet, oinf(0), oinf(1), "WebElement", oinf(2))
XL = excelSheet.Cells(iRow, "D")Do Until (X = XL or iRow = Row)
iRow = iRow + 1XL = excelSheet.Cells(iRow, "D")
Loop
Initially iRow=2Keep iterating, until X=XL or iRow=Row ie keep iterating through the loop until the field value from datatable is matched with that of the excelSheet or iRow is equal to the last row count of the excel sheet.Increment iRow value by one in each iteration.“Exit” from the loop gives the row no containing the fieldDatatable.Value("Browser", dtglobalSheet) = excelSheet.Cells(iRow, "A")
Get the Browser name on the Row Number as iRow
If excelSheet.Cells(iRow, "C") = "WebList" ThenPrp = excelSheet.Cells(iRow, "F")
End If
If the column “C” of iRow is WebList, Store the value of column “F” of iRow into variable Prp
If excelSheet.Cells(iRow, "C") = "WebEdit" ThenIf DataTable.Value("Otherinfo", dtGlobalSheet) = "Check" Then
Prp = excelSheet.Cells(iRow, "G")
Page 8 4/28/2023
document.doc
ElsePrp = excelSheet.Cells(iRow, "F")
End ifEnd If
If the column “C” of iRow is WebEdit Validate the value of Otherinfo in datatable if the value is “Check” then store the value of column “G” of iRow into variable Prp else store the value of column “F” of iRow into variable Prp.
If excelSheet.Cells(iRow, "C") = "Image" ThenPrp = excelSheet.Cells(iRow, "F")
End If
If the column “C” of iRow is “Image”Store the value of column “F” of iRow into variable Prp If excelSheet.Cells(iRow, "C") = "WebRadioGroup" Then
MyString = excelSheet.Cells(iRow, "F")Prp = MyString
End if
If the column “C” of iRow is “WebRadioGroup”Store the value of column “F” of iRow into variable Prp
If excelSheet.Cells(iRow, "C") = "Link" ThenPrp = excelSheet.Cells(iRow, "E")
End If
If excelSheet.Cells(iRow, "C") = "WebElement" ThenPrp = excelSheet.Cells(iRow, "G") Call ClearCell(excelSheet, "WebElement")
End If
If excelSheet.Cells(iRow, "C") = "WebCheckBox" ThenPrp = excelSheet.Cells(iRow, "F")
End If
If excelSheet.Cells(iRow, "C") = "WebTable" ThenPrp = excelSheet.Cells(iRow, "F")
End If
Similarly for other controls
Search = PrpvRow = vRow + 1DataTable.Value("vRow", dtGlobalSheet) = vRow
Page 9 4/28/2023
document.doc
Finally the function returns the value in PrpIncrement the value of vRow
3.) NextScreen Function
Use: NextScreen Function identifies the navigated screen and populates the excelSheet (kept at the local drive) with the objects and its properties.
Arguments excelSheet: The existing excelsheet in C: drive
Code and ExplanationVariablesDim screenval, z, html, Row
screenval = Array("WebList", "WebCheckBox", WebRadioGroup", "WebEdit", "WebButton", "Image", "Link", "WebTable")
Screenval: Screenval is an array containing Web Class.
z = Ubound(screenval)
z: z contains the upperbound of the array Screenval
Bname = DataTable.Value("Browser", dtglobalSheet)Ptitle = DataTable.Value("Browser", dtglobalSheet)
For y = 0 to zhtml = ""Call Common (excelSheet, Bname, Ptitle, screenval(y), html)
Next
For each Web Class in the screenvalFunction common is called to fetch the values of the desired properties of the navigated page.Value of html for all above mentioned class is blank.Arguments of function CommonCall Common (excelSheet object, Browser name, Page title, Class, html tag)
Page 10 4/28/2023
document.doc
4.) CommonTable Function
Use:CommonTable Function has same functionality as function Common except that this function is exclusively used to handle WebTable and its child objects which again can be any of the classes.
ArgumentsCommonTable Function has the following six arguments
1. excelSheet: The existing sheet in C drive2. snameBrowser: The name of the Browser3. stitlePage: The Title of the Page4. val: The html id of WebTable5. val2: micclass6. val3:value of html tag
Code Public Function CommonTable(excelSheet, snameBrowser, stitlePage, val, val2, val3)Dim arr1, var2, tempValue,arr2, arr3Set Obj=Description.create()Dim MyString, MyArray, Msg,NoIf val2 = "WebElement" Then
Obj("micclass").Value = val2Obj("html tag").Value = val3
Set List=Browser("name:="&snameBrowser).Page("title:="&stitlePage).WebTable("html id:="&val).ChildObjects(Obj)
objcount=List.count()rowCount = excelSheet.UsedRange.Rows.countFor j=0 to objcount-1
excelSheet.Cells(rowCount + 1 , "A") = snameBrowserexcelSheet.Cells(rowCount + 1 , "B") = stitlePageIf val3 = "SPAN" Then
arr2=List(j).GetROProperty("html id")excelSheet.Cells(rowCount + 1 , "F") = arr2excelSheet.Cells(rowCount + 1 , "D") = arr2excelSheet.Cells(rowCount + 1 , "C") = val2arr1=List(j).GetROProperty("innerText")excelSheet.Cells(rowCount + 1 , "G") = arr1excelSheet.Cells(rowCount + 1 , "H") = "WebTable"rowCount = rowCount + 1
Elsearr2=List(j).GetROProperty("innerhtml")excelSheet.Cells(rowCount + 1 , "F") = arr2excelSheet.Cells(rowCount + 1 , "D") = arr2excelSheet.Cells(rowCount + 1 , "C") = val2arr1=List(j).GetROProperty("innerText")excelSheet.Cells(rowCount + 1 , "G") = arr1excelSheet.Cells(rowCount + 1 , "H") = "WebTable"rowCount = rowCount + 1
Page 11 4/28/2023
document.doc
End ifNext
ElseObj("micclass").Value = val2
Set List=Browser("name:="&snameBrowser).Page("title:="&stitlePage).WebTable("html id:="&val).ChildObjects(Obj)
objcount=List.count()rowCount = excelSheet.UsedRange.Rows.countFor j=0 to objcount-1
arr1=List(j).GetROProperty("Name")excelSheet.Cells(rowCount + 1 , "E") = arr1MyArray = Split(arr1, "$", -1, 1)No=Ubound(MyArray)excelSheet.Cells(rowCount + 1 , "D") = MyArray(No)excelSheet.Cells(rowCount + 1 , "A") = snameBrowserexcelSheet.Cells(rowCount + 1 , "B") = stitlePagearr2=List(j).GetROProperty("html id")excelSheet.Cells(rowCount + 1 , "F") = arr2excelSheet.Cells(rowCount + 1 , "C") = val2arr3=List(j).GetROProperty("value")excelSheet.Cells(rowCount + 1 , "G") = arr3excelSheet.Cells(rowCount + 1 , "H") = "WebTable"If val2 = "Image" Then
arr2=List(j).GetROProperty("alt")excelSheet.Cells(rowCount + 1 , "F") = arr2
End IfIf val2 = "WebRadioGroup" Then
arr2=List(j).GetROProperty("value")excelSheet.Cells(rowCount + 1 , "G") = arr2
End IfrowCount = rowCount + 1
NextEnd if
End Function
5.) SearchTable Function
UseSearchTable Function has similar functionality as that of Search function except that the function is exclusively used to search child objects within a WebTable, which can contain any Class.
ArgumentsSearch Table as 2 arguments namely
1. excelSheet: The existing Excelsheet in C:drive2. htmlid_Table: The html id of the WebTable
Page 12 4/28/2023
document.doc
CodeFunction SearchTable (excelSheet, htmlid_Table)Dim X, XL, Row, iRow , xRow, T, Bname, Ptitle, YLvRow = DataTable.Value("vRow", dtGlobalSheet)DataTable.SetCurrentRow(vRow+1)T = Datatable.Value("Type", dtglobalSheet) X = Datatable.Value("Field", dtglobalSheet) Row = excelSheet.UsedRange.Rows.CountiRow = 2If T = "CheckPoint" Then
Dim oinf, infinf = DataTable.Value("Otherinfo", dtglobalSheet)oinf = Split(inf, ",", -1, 1)
Call CommonTable (excelSheet, oinf(0), oinf(0), htmlid_Table, "WebElement", oinf(1))Row = excelSheet.UsedRange.Rows.Count
End IfXL = excelSheet.Cells(iRow, "D")YL = excelSheet.Cells(iRow, "H")Do Until ((X = XL and YL = "WebTable") or iRow = Row)
iRow = iRow + 1XL = excelSheet.Cells(iRow, "D")YL = excelSheet.Cells(iRow, "H")
LoopDatatable.Value("Browser", dtglobalSheet) = excelSheet.Cells(iRow, "A")If excelSheet.Cells(iRow, "C") = "WebList" Then
Prp = excelSheet.Cells(iRow, "F") End IfIf excelSheet.Cells(iRow, "C") = "WebEdit" Then
If DataTable.Value("Otherinfo", dtGlobalSheet) = "Check" ThenPrp = excelSheet.Cells(iRow, "G")
ElsePrp = excelSheet.Cells(iRow, "F")
End ifEnd IfIf excelSheet.Cells(iRow, "C") = "Image" Then
Prp = excelSheet.Cells(iRow, "F") End IfIf excelSheet.Cells(iRow, "C") = "WebRadioGroup" Then
MyString = excelSheet.Cells(iRow, "F")
'Keeping the code for future use
' dim MyArray, Msg,No' MyArray = Split(MyString, "_", -1, 1)' No=Ubound(MyArray)' Msg= MyArray(No)' result=""' For i=0 to No - 1' If i=No-1 Then' result = result +MyArray(i) +".*"' else' result = result +MyArray(i)+"_"' End If' Next' Prp=result
Page 13 4/28/2023
document.doc
Prp = MyStringEnd IfIf excelSheet.Cells(iRow, "C") = "Link" Then
Prp = excelSheet.Cells(iRow, "E") End IfIf excelSheet.Cells(iRow, "C") = "WebElement" Then
Prp = excelSheet.Cells(iRow, "G") Call ClearCell(excelSheet, "WebElement")
End IfIf excelSheet.Cells(iRow, "C") = "WebCheckBox" Then
Prp = excelSheet.Cells(iRow, "F") End If
SearchTable = PrpvRow = vRow + 1DataTable.Value("vRow", dtGlobalSheet) = vRow
End Function
6.) ClearCell Function
UseClearCell function clears the added row in the excelSheet where class is WebElements
ArgumentsexcelSheet: The existing Excelsheet in C:drive
Code Function ClearCell (excelSheet, val) Dim Row, iRow Row = excelSheet.UsedRange.Rows.Count For iRow = Row to 2 Step -1 If excelSheet.Cells(iRow, "C") = val Then excelSheet.Cells(iRow, "C").EntireRow.Delete End If Next End Function
Page 14 4/28/2023
document.doc
Main Script
Dim excelSheet Set ExcelApp = CreateObject("Excel.Application") Set NewWorkbook = ExcelApp.Workbooks.Open("C:/CaptureProperties_page.xls")Set OpenWorkbook = NewWorkbookExcelApp.Visible = TrueSet excelSheet = ExcelApp.ActiveSheetExcelApp.Visible = True
Dim cnt, iter, i, bname, pnamecnt = DataTable.GetRowCount
For iter = 1 to cnt +1
If (DataTable.Value("Type", dtGlobalSheet) = "Static" or DataTable.Value("Type", dtGlobalSheet) = "Capture") Then
If DataTable.Value("Type", dtGlobalSheet) = "Static" Thenbname = DataTable.Value("Browser", dtglobalSheet)pname = DataTable.Value("Browser", dtglobalSheet)DataTable.Value("vRow", dtGlobalSheet) = ivRow = DataTable.Value("vRow", dtGlobalSheet)DataTable.SetCurrentRow(vRow+1)Datatable.Value("Value", dtglobalSheet) = Browser("name:=Home Insurance
Quote").Dialog("text:=Microsoft Internet Explorer").WinRadioButton("text:=OK").GetROProperty("attached text")
Browser("name:="&bname).Dialog("text:=Microsoft Internet Explorer").WinRadioButton("text:=OK").Click
vRow = vRow + 1DataTable.Value("vRow", dtGlobalSheet) = vRowDataTable.SetCurrentRow(vRow+1)DataTable.Value("vRow", dtGlobalSheet) = vRow
End IfIf DataTable.Value("Type", dtGlobalSheet) = "Capture" Then
DataTable.Value("vRow", dtGlobalSheet) = ivRow = DataTable.Value("vRow", dtGlobalSheet)DataTable.SetCurrentRow(vRow)temp = DataTable.Value("Value", dtGlobalSheet)DataTable.SetCurrentRow(1)DataTable.Value("Value", dtGlobalSheet) = tempvRow = vRow + 1DataTable.Value("vRow", dtGlobalSheet) = vRowDataTable.SetCurrentRow(vRow+1)DataTable.Value("vRow", dtGlobalSheet) = vRow
End If Else
i = Search(excelSheet)bname = DataTable.Value("Browser", dtglobalSheet)pname = DataTable.Value("Browser", dtglobalSheet)
If DataTable.Value("Type", dtGlobalSheet) = "CheckPoint" Then Datatable.Value("Value", dtglobalSheet) = i
End if If DataTable.Value("Type", dtGlobalSheet) = "WebList" Then
Page 15 4/28/2023
document.doc
Browser("name:="&bname).Page("title:="&pname).WebList("html id:="&i).Select Datatable.Value("Value", dtGlobalSheet) End If
If DataTable.Value("Type", dtGlobalSheet) = "WebEdit" ThenIf DataTable.Value("Otherinfo", dtGlobalSheet) = "Check" Then
Datatable.Value("Value", dtGlobalSheet) = iElse
Browser("name:="&bname).Page("title:="&pname).WebEdit("html id:="&i).Set Datatable.Value("Value", dtGlobalSheet)
End if End if If DataTable.Value("Type", dtGlobalSheet) = "Image" Then
Browser("name:="&bname).Page("title:="&pname).Image("html id:="&i).clickwait 10
End ifIf DataTable.Value("Type", dtGlobalSheet) = "WebRadioGroup" Then
Browser("name:="&bname).Page("title:="&pname).WebRadioGroup("html id:="&i).Select Datatable.Value("Value", dtGlobalSheet) End if
If DataTable.Value("Type", dtGlobalSheet) = "Link" ThenBrowser("name:="&bname).Page("title:="&pname).Link("name:="&i).Click
End ifIf DataTable.Value("Type", dtGlobalSheet) = "WebCheckBox" Then
Browser("name:="&bname).Page("title:="&pname).WebCheckBox("html id:="&i).Set Datatable.Value("Value", dtGlobalSheet) End if
If DataTable.Value("Type", dtGlobalSheet) = "WebTable" ThenDim oinf1, inf1inf1 = DataTable.Value("Otherinfo", dtglobalSheet)oinf1 = Split(inf1, ",", -1, 1)Call CommonTable(excelSheet, bname, pname, i, oinf1(0),oinf1(1))j = SearchTable(excelSheet, i)
If DataTable.Value("Type", dtGlobalSheet) = "CheckPoint" ThenDatatable.Value("Value", dtglobalSheet) = j
End if If DataTable.Value("Type", dtGlobalSheet) = "WebList" Then
Browser("name:="&bname).Page("title:="&pname).WebTable("html id:="&i).WebList("html id:="&j).Select Datatable.Value("Value", dtGlobalSheet)
End IfIf DataTable.Value("Type", dtGlobalSheet) = "WebEdit" Then
If DataTable.Value("Otherinfo", dtGlobalSheet) = "Check" ThenDatatable.Value("Value", dtGlobalSheet) = j
Else
Browser("name:="&bname).Page("title:="&pname).WebTable("html id:="&i).WebEdit("html id:="&j).Set Datatable.Value("Value", dtGlobalSheet)
End ifEnd ifIf DataTable.Value("Type", dtGlobalSheet) = "Image" Then
Browser("name:="&bname).Page("title:="&pname).WebTable("html id:="&i).Image("alt:="&j).click
wait 10
Page 16 4/28/2023
document.doc
End ifIf DataTable.Value("Type", dtGlobalSheet) = "WebRadioGroup" Then
Browser("name:="&bname).Page("title:="&pname).WebTable("html id:="&i).WebRadioGroup("html id:="&j).Select Datatable.Value("Value", dtGlobalSheet)
End ifIf DataTable.Value("Type", dtGlobalSheet) = "Link" Then
Browser("name:="&bname).Page("title:="&pname).Link("name:="&j).ClickEnd ifIf DataTable.Value("Type", dtGlobalSheet) = "WebCheckBox" Then
Browser("name:="&bname).Page("title:="&pname).WebTable("html id:="&i).WebCheckBox("html id:="&j).Set Datatable.Value("Value", dtGlobalSheet)
End if End ifEnd if Next
Page 17 4/28/2023