Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM example #22

Open
VovaRen opened this issue Dec 9, 2020 · 1 comment
Open

DOM example #22

VovaRen opened this issue Dec 9, 2020 · 1 comment

Comments

@VovaRen
Copy link

VovaRen commented Dec 9, 2020

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!

@VovaRen
Copy link
Author

VovaRen commented Dec 10, 2020

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) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant