From the example given on smartbear's official website,
# The following routine checks the width and height attributes of
# IMG elements located on a web page.
def Test():
# Obtains the page object
url = "****";
Browsers.Item[btChrome].Run(url);
page = Sys.Browser("*").Page("*");
# Obtains the page's images
images = page.contentDocument.images;
Log.Message(images.length)
for img in images: # <<<<<<<This is the error
# other calculating stuff
When I executed this code snippet in testcomplete, I got an error,
- RuntimeError The specified object is not indexable.
Log.Message(images.length) gives me a result of 9, which is expected.
I also attempted to get the type, Log.Message(type(images)) gives me a blank output.
Any suggestions?