Public Sub CheckProcessLog(sWorkflowName)
Dim oWorkflowTable
Set oWorkflowTable = Browser("Oracle Demantra Workflow").Page("Processes log").WebTable("PID")
Dim iRow
iRow = FindLastRowWithCellText(oWorkflowTable, sWorkflowName)
Call DisplayRow(oWorkflowTable, iRow)
Dim oLastStep
Set oLastStep = oWorkflowTable.ChildItem(iRow, 7, "WebElement", 0)
oLastStep.CheckProperty "innerText", sWorkflowName
Dim oStatus
Set oStatus = oWorkflowTable.ChildItem(iRow, 8, "WebElement", 0)
oStatus.CheckProperty "innerText", "Completed"
End Sub
ASKER
ASKER
Sub ChildObjects_Example(oObject)
'The following example retrieves the collection of
'WebElement objects
Dim oObjCollection, NumberOfObjects, oDesc
'Create a description object to help retrieve all WebElement objects in a specific page.
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebElement"
'Retrieve all WebElement objects in this page
Set oObjCollection = oObject.ChildObjects(oDesc)
NumberOfObjects = oObjCollection.Count
Dim i
For i = 0 To NumberOfObjects - 1
Print i & ": " & oObjCollection(i).GetROProperty("name") & " - " & oObjCollection(i).GetROProperty("micclass") & " - " & oObjCollection(i).GetROProperty("innerText")
oObjCollection(i).CaptureBitmap "C:\capture" & i & ".bmp", True
Next
End Sub
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.
TRUSTED BY
Set oWorkflowTable = Browser("Oracle Demantra Workflow").Page("Processes
it cannot find the Browser object.
The Browser object need to have been defined outside the Sub globally for this procedure to be able to use it.
Rob.