Press f12 on a webpage and search for some text and extract the complete attribute of matching text

my scenarion is navigate the webpage and press f12 and then search with iframe and find the iframe which has attribute of scrolling=yes if matches then copy entire attribue <iframe scrolling=“yes”… /iframe>

  1. Send Hot Key Activity with F12.
  2. Use Get Text activity to get the data from the window.
  3. Find the index of <iframe scrolling=“yes”
  4. Find the index of after the index of below one.

problem here is we need to keep on hitting enter until we find the <iframe scrolling=“yes”… after that i can use get Text activity.
but how do i do this with uipath?