Forum Discussion
HKosova
Alumni
13 years agoHi Ron,
Glad to hear you've solved the problem!
In your case, I'd actually recommend locating target objects using search functions, such as FindChild, Page.NativeWebObject.Find or Page.EvaluateXPath. That will help you avoid issues with changes in the intermediate object hierarchy and also significantly shorten the syntax for accessing web page elements.
For example:
Alternatively, you can go to your forum profile and manage thread subscriptions on the Forum Subscriptions tab.
I've attached screenshots for your reference. :)
Glad to hear you've solved the problem!
In your case, I'd actually recommend locating target objects using search functions, such as FindChild, Page.NativeWebObject.Find or Page.EvaluateXPath. That will help you avoid issues with changes in the intermediate object hierarchy and also significantly shorten the syntax for accessing web page elements.
For example:
' Using FindChild and search depth
Set panel = page.FindChild( _
Array("ObjectType", "ObjectIdentifier"), _
Array("ImageButton", "rlMainATC_" & sku_item & "_AC_addToCartBtn"), _
100)
' Using NativeWebObject.Find
Set panel = page.NativeWebObject.Find("ObjectIdentifier", "rlMainATC_" & sku_item & "_AC_addToCartBtn", "input")
' Using XPath
Set panel = page.EvaluateXPath("//INPUT[@id='rlMainATC_" & sku_item & "_AC_addToCartBtn']")(0)
Just click the "Unsubscribe" link in the top right of this page, above your original post.
I am new to forums, so should I now unsubscribe from this thread?
Alternatively, you can go to your forum profile and manage thread subscriptions on the Forum Subscriptions tab.
I've attached screenshots for your reference. :)