royd
9 years agoRegular Contributor
GetAttribute not working! Help!
TestComplete 12.2 and IE11
I have a script that isolates security code from email (thanks to Shanker_R). It had worked without any trouble in the past. It stopped working now! The problem stems from not being able to retrieve the massage from email. Here is the code I am using:
var massageCell = Aliases.browser.pageMailinator.panelMsg.mTable.mCell; var massageString = massageCell.GetAttribute("contentText"); Log.Message(massageString);
The Log is empty! I would really appreciate any help I can get.
Thanks
Dave
Okay, I finally figured it out! "getAttribute" works only with native web objects! I used "contentText" and resulted blank log!!
Replaced contentText with innerText and it worked! Lesson learned!
Thank you Shankar and Karthik for your efforts. I really appreciate.
Dave