mithileshmaurya
11 years agoOccasional Contributor
not able to cast Var.delegate to var object
Hello,
one of my C# code i have below code:
one of my C# code i have below code:
Browserparent = Connect.Aliases["browser"]["pagePreDealChecking"];
FrameParent = Browserparent["frameMainframe"]["frameExposures"];
var availabilityparent = FrameParent["Table_Availability"];
which is working fine, that is, I get an object in availabilityparent , but it is of type var.delegate.
Question: How can i get the rowcount of the availabilityparent ?
code im using :
var temp = new var((availabilityparent["RowCount"]));
(after compiling this code I get the error:
Error 1 The call is ambiguous between the following methods or properties: 'AutomatedQA.script.var.var(short)' and 'AutomatedQA.script.var.var(string)'
how do I get the integer row count?
Please help
- This should work:
int rowCount = (int) availabilityparent["RowCount"];