Hi,
Below is the code generated for the total premium cell while recording. Can you provide us code to the find and retreive total premium cell value from the infra grid as shown in screenshot.
' Window: WorkstationCoordinator.exe: Policy - USA Manufacturing Company - USA123456-2 - (7/21/2009 - 7/21/2010) - [Property]' Window: WorkstationCoordinator.exe: PropertyGrdProperty_PropPremInfo_PropS().Click(AtList(AtCell( _ AtRow(AtRowHeader(AtList( _ AtLocation("PropertyNestedPremiseInfo!sps_cprembylobidcovgroupformulti"), _ AtText("$4,000.00")))), _ AtColumn("Premium"))))
We tried using Data verification point, however it doesn't capture the total premium cell value.
Our target validation is to get the Total Premium value shown in screnn shot.
Thanks & Regards,Vijay Jadi
Please create new thread for new questions
Hi Ammar,
Thanks for your support and quick reply.
The code snippet you have provided is working fine and more usefull for us.
Can you please provide clarification for the below two Issues:
Issue1:
How to know whether the the child grid((Toogle Tree(+)) is expanded or not(When grid is having Parent Nested Grids). I am able to get the status of the Parent grid expandable status using the below code snippet:
'Verify Toggle row is Expanded or Not
Dim strToogleStatus AS String
strToogleStatus = AMS_Globalvariables.objUltra.GetNAProperty("Rows[0].Expanded")
If AMS_Globalvariables.strresult = "True" Then
LogTestResult("Successfully Expanded the Parent grid Premises Row", True)
Else
LogTestResult("First row of Premises grid is not Expanded", False)
End If
In the above code i am verifying the expandable property of the parent grid row only. However i need to verify the status for Expanded property for the child grid rows (We have multiple Nested child grids in the winform). Please provide the sample code snippet to get the nested child grid rows(Toogle Tree(+)) expanded property.
Issue2:
How to Get the selected value from the UltraDropDown list using GetNAproperty().
Our requirement is as Below:
Step1: Click on Subjcet of Insurance Drop Down and Type in Coverage 'Golf Course'.
Expected: You will see the list scroll to that Typed Coverage.
We need to verify that the typed coverage is selected in the Drop Down.
Thanks & Regards,
Vijay Jadi.
Vijay,
The Premium total is not a cell. it is a Summary Value. YOu can access it by using GetNAProperty as follow:
MsgBox(
"Summary Text: " + GrdProperty_PropPremInfo_PropS().GetNAProperty("Rows.SummaryValues[0].SummaryText"))
"Summary Value: " + GrdProperty_PropPremInfo_PropS().GetNAProperty("Rows.SummaryValues[0].Value").ToString())
You can access Summaries value by Index (as used above) or by keys (you can contact the application developer for Summaries value keys)
I hope this will work for you. Please Verify this as an answer if it does work.
Regards,
Ammar