How to retreive the child's property for a single row using parent.findchild
page.NativeWebObject.Find("innerHTML","ApproverRules4","A").Click();
report = page.NativeWebObject.Find("innerText","ABC3 ","A");
status = report.parent.FindChild("title","rejected");
if (!(status.Exists))
Log.Message("The report stays in the action items with rejected status","",pmNormal,Attr); //Verify the rejected status
else
Log.Error("There is some error","",pmNormal,Attr);
In the screenshot,two reports are there.ABC3 with approved status(the symbol in red circle) and PQ3 with rejected status(the symbol in green circle). I need to verify if ABC3 report's status is not rejected but when I use the above code using parent.findchild,it looks in all the reports.How can I made to look only for the children in first row having report ABC3 ?
I am looking to verify the status for the report ABC3 that it is not "Rejected" but it sees the rejected status for the other report "PQ3" and returns the result as if the ABC3 's status is rejected.
When I use the code below,it looks in all the reports for the status but I just want it to look on the status of the report ABC3 which is not rejected.
status = report.parent.FindChild("title","rejected");
Thanks,
Sumedha