vimac
vimac copied to clipboard
Children of <iframe>s within a Safari web page are not fetched
iframes are represented as AXWebAreas.
Using search predicates + search keys to fetch the element tree of a Safari web page will fetch the AXScrollArea that is the parent of the iframe:
AXWebArea (representing the web content)
AXButton
AXButton
...
AXScrollArea (have to fetch its children to get to the iframe)
AXWebArea (representing iframe)
From my testing, the iframe AXWebArea does not support search predicates. I had to recursively fetch its children which has performance implications when there are many layers of elements.
iframes and their children are fetched by Chrome though.
As a stopgap, would it be possible to give AXWebAreas a single, centered hint?