Using getAttribute was just a method of understanding the problem.
I really have to be able to find objects using an attribute set by our AJAX framework.
Is FindAllChildren using the 'attributes' collection to find children?
props = ["TargetName"] isn't working in Firefox.
Javascript "inside" the HTML page is able to read object.TargetName why isn't it possible for TestComplete.
Trying something like:
function readTargetName()
{
//var page = Sys.Process("iexplore").Page("
http://demo10.qlikview.com/QvAJAXZfc/opendoc.htm?document=Online%20Sales.qvw&host=demo10&anonymous=true"); //var Document = page.Application.document;
var page = Sys.Process("firefox").Page("
http://demo10.qlikview.com/QvAJAXZfc/opendoc.htm?document=Online%20Sales.qvw&host=demo10&anonymous=true"); var Document = page.contentDocument;
var QvFrame = Document.getElementById("12");
Log.Message(QvFrame.TargetName);
}
It's working for IE but not Firefox using TestComplete.
If I run Firebug and starts the console:
var QvFrame = document.getElementById("12");
console.log('.TargetName = ' + QvFrame.TargetName);
Will nicely print the expected value of TargetName
Is there any way of getting TectComplete to find/read an attribute that was set by javascript?