nem
15 years agoOccasional Contributor
Problem with FindChild method
Hi,
Does anyone have any ideas why I have problems with FindChild method described below:
Full Item name is the following:
Sys.Process("iexplore").Page("*EdProf*").Form("aspnetForm").Table("Outermost").Cell(1, 0).Table("ctl00_PageArea_RecordTable1_tblData").Cell(1, 0).Textbox("ctl00_PageArea_RecordTable1_Search1")
I try to verify whether the object exists with the following code:
if (this.oCurrentTable.FindChild("idStr","*_Search"+(iColsNumber+1)+"", 3).Exists)
where
this.oCurrentTable == Sys.Process("iexplore").Page("*EdProf*").Form("aspnetForm").Table("Outermost").Cell(1,
0).Table("ctl00_PageArea_RecordTable1_tblData")
iColsNumber = 0
The object does actually exist; but condition returns false. All necessary TC settings were applied.
I guess the code became unworkable after we moved to TC8
Thanks,
Aliaksei
Does anyone have any ideas why I have problems with FindChild method described below:
Full Item name is the following:
Sys.Process("iexplore").Page("*EdProf*").Form("aspnetForm").Table("Outermost").Cell(1, 0).Table("ctl00_PageArea_RecordTable1_tblData").Cell(1, 0).Textbox("ctl00_PageArea_RecordTable1_Search1")
I try to verify whether the object exists with the following code:
if (this.oCurrentTable.FindChild("idStr","*_Search"+(iColsNumber+1)+"", 3).Exists)
where
this.oCurrentTable == Sys.Process("iexplore").Page("*EdProf*").Form("aspnetForm").Table("Outermost").Cell(1,
0).Table("ctl00_PageArea_RecordTable1_tblData")
iColsNumber = 0
The object does actually exist; but condition returns false. All necessary TC settings were applied.
I guess the code became unworkable after we moved to TC8
Thanks,
Aliaksei