Unable to find the object in script loop after first time thru loop
To ensure I can in fact see the object, I put in a msgbox if an 'if' condition can identify it just ahead of the line that tries to set a panel to that object.
My script fires off the msgbox because the if condition is true, but the very next line produces this error.
Here is my code snippet inside the loop:
if (Sys.Process("iexplore", 2).Page("http://stage.XXX.local/outdoor/rain-chains_169132").Panel("HN_HNMC").Panel("HN_HNMC_Cont").Panel(1).Panel(0).Panel(0).Panel(2).Panel(1).Panel("dump_content").Panel(0).Panel(1).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel("MII026_AC_Purchase").Panel("MII026_AC_AddToCart").ImageButton("rlMainATC_MII026_AC_addToCartBtn").Exists) then
msgbox("Looks good to me!")
end if
Set panel = page.Panel("HN_HNMC").Panel("HN_HNMC_Cont").Panel(1).Panel(0).Panel(0) _
.Panel(2).Panel(1).Panel("dump_content").Panel(sku_row).Panel(sku_col) _
.Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0) _
.Panel(sku_item + "_AC_Purchase") _
.Panel(sku_item + "_AC_AddToCart") _
.ImageButton("rlMainATC_" + sku_item + "_AC_addToCartBtn")
XXX is my local address.
Any assistance would be greatly appreciated. I've spent far too much time on the issue already.
Thanks
rjamison