khenzel
9 years agoNew Contributor
Solved
Under VB.NET code, how would i locate the value of an ID tag field on a HTML page?
I have a page with this context: <tr><td> <b>Balance</b> <span class="dxeBase_dummy" id="P_L_V_v17w2_t1_DueDateInsLabel" style="font-weight:bold;">Due on 9/4/2015</span> <...
- 9 years ago
Here is the solution you are after bozo:
Function GetBalanceInfo()
Dim browser, page, Obj
Set browser = Sys.Browser("*")
Set page = browser.Page("*")
GetBalanceInfo = "*" ' Note that we used the * wildcards to specify the search pattern
Set obj = Aliases.browser.pagePersonableEmployeeWebPortal.formForm1.panelMpage.textnodePLVV11w2T1Currentbalance
GetBalanceInfo = obj.contentText
' Checks the result
If obj.Exists Then
Call Log.Message("Object containing text '" & GetBalanceInfo & "' is found", obj.FullName)
Else
Call Log.Warning("Object containing text '" & GetBalanceInfo & "' was not found.")
End If
End Function