I am using a selenium script to access elements on PDF rendered on MS Edge.
Even though I can see the elements while inspecting the page like
<div id="layout-container" style="opacity: 1; width: 826px; height: 1066px; top: 45px; transform: scale(1) translate(346px, 0px);"><div class="pagerect" id="pagediv_0" style="left: 5px; top: 3px; width: 816px; height: 1056px;"></div></div>
My script is unable to access them using all sorts of ways in selenium, waiting for elements to render etc
I have even tried executing JS snippet to try and access them and the script return no results even though the same script works in Console of dev tools.
Like
document.querySelector("#layout-container")
This works in the Console but not when executing.
I am using Selenium with Python so solutions on that will be preferred.