Find a component from a folder in Component modules through OTA
I want to find a component from a path . for ex like in test plan and Test lab we have a method called FindTest and FindTestInstnace.Like wise do we have for components referred OTA reference library but it is not helping me.
Re: Find a component from a folder in Component modules through OTA
"Find" methods don't exist for Components in the OTA API. You will have to do it the "long" way by navigating through the ComponentFolderFactory object and using the FolderByPath method. That will give you a ComponentFolder object pointing to the Component Folder for the path you specified. Then you can get the ComponentFactory for that ComponentFolder object and use the Filter and NewList methods/properties to get the specific Component.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]
(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)