Content check: Failed to attach the window
I have made a content check for a web based application. This is to check the content of a table in this.
1. I get error "Failed to attach the window" and hence the check fails. What does that means for this check?
2. Data of the table is generated on runtime. Can i specify data in the content check in terms of variable.
Re: Content check: Failed to attach the window
Look at the attach name for you profile check. You likely have a dynamic property to specify your attach. Ususally InnerText is a good property to use, as this is more static than Index.
You can not use live data in a check. Usually the best option is to utilize the Element ID to get into cells. ie.
MyCol ! theData1 ! theData2 ! theData3
If you want to get the value of the cell represented by theData2, you can do this...
theID = HTMLTD("InnerText='MyCol').ElementID
theID = (theID + 2) 'use Identify to determine the number of IDs to incriment by
theCellText = HTMLTD("ElementID=" & theID & " ").InnerText
If theCellText <> myExpectedText then
UserCheck "myCheckname", False, "This check failed"