Question

Cognizant Technology Solutions India PVT Ltd
IN
Last activity: 12 Jul 2018 1:25 EDT
iframe name are dynamically changing from PegaGadget0Ifr to PegaGadget1Ifr
In automation selenium scripts we used to fetch the iframe name to locate the various components to automate the PEGA application. But some time the iframe name are dynamically changing from PegaGadget0Ifr to PegaGadget1Ifr and back to PegaGadget0Ifr or PegaGadget3Ifr .. on different page navigation.
1. Is there any static attribute can refer from iframe?
2. why the iframe name are changing randomly?
Please guide us to proceed further.
Example:
<iframe name="PegaGadget0Ifr" id="PegaGadget0Ifr" border="0" frameborder="0" src = "not provided the information"></iframe>