I need to retrieve an ID based on a specific logic in Nifi using Angular/jQuery. In this scenario, there may be multiple IDs with the same name due to the nature of Nifi.
Logic Outline
#connection-configuration-tabs-content
#connection-settings-tab-content
.settings-left
.setting(2nd child)
.setting-field
#connection-id (**GRAB**)
#connection-details-tab-content
#processor-source-name[title="ARCH_convertCSVToAvro"] (**if exist in this location**)
#processor-destination-name[title="ARCH_convertAvroToORC"] (**and if exist in this location**)
The goal is to obtain the "connection-id" by referencing the locators of #processor-source-name[title="ARCH_convertCSVToAvro"] and #processor-destination-name[title="ARCH_convertAvroToORC"]. Although the connection-id varies for different processor names, I specifically want to target it based on the source/destination names.
How can I extract #connection-id under these conditions? Is there a way to achieve this when using Selenium in Java?
Purpose: To uniquely capture the "connnection" id in Nifi without relying on unique names from previous or subsequent processors (which are distinct in the workflow).