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?
usually frame has attribute called 'title' , you can use the title attribute to identify the frame, or you can also use 'sart-with' and 'end-with' functions inside xpath logic , or you can try 'src' also inside xpath to identify the required frame