HyperionGray/python-chrome-devtools-protocol

DOM example

VovaRen opened this issue · 1 comments

Hi. My task is to get the Dom of the chrome tab(like on this page 'chrome://accessibility/' ). Do you have an example of how to do this?
This is my first time working with the browser and chrome devtools, so it's still difficult to understand without an example. I can't even figure out how to connect to the browser :с
Thank you in advance for your help!

Now my code looks like this, what should I do next?

import time
from pywinauto import Application
import cdp


chrome_dir = r"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
chrome = Application(backend='uia')
chrome.start(chrome_dir + ' -—force-renderer-accessibility')
time.sleep(3)