I am facing an unusual issue accessing web element inside a web page. When I try to inspect second time only using chrome devtool I am able to view the element which is under a iframe that i need to access.
But the first time I inspect I don’t see the iframe but there are other iframes which is not relevant to me.
I tried to display the iframe elements using selenium java code. However, I don’t see the specific iframe which I need to switch to and access the web element.
I tried to forcibly switch with the iframe name, it fails as the iframe is not found. I have given enough sleep time and implicit wait so that the web page is fully loaded, with no much help.
I tried to print the elements from seleinium java code. But it doesn’t display the iframe I require. Hence I cannot switch to the iframe.