Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Possible to reach into a new tab? #157

Open
msencenb opened this issue Aug 3, 2017 · 4 comments
Open

Possible to reach into a new tab? #157

msencenb opened this issue Aug 3, 2017 · 4 comments

Comments

@msencenb
Copy link

msencenb commented Aug 3, 2017

Hey! So far I'm loving this project. I'm working on a script to automate the pulling of some reports.

Sometimes when I click the submit button with chromeless the report opens in a new tab. At this point I want to reach into that new tab and click the 'download' button.

Is that currently, or theoretically, possible with chromeless?

@joelgriffith
Copy link
Contributor

Definitely possible, but not something that is functioning inside chromeless at the moment. The protocol that chromeless consumes has the ability to do this, but it'll probably be some time before any of us can add this feature :(

@msencenb
Copy link
Author

msencenb commented Aug 3, 2017

Is that protocol CDP? https://github.com/cyrus-and/chrome-remote-interface

@joelgriffith
Copy link
Contributor

Yup! Alternatively you could (if possible) grab the link that that button/anchor produces and use it to finish your report scraping. Anyways, for what it's worth

@msencenb
Copy link
Author

msencenb commented Aug 3, 2017

Thanks - good thought as well on grabbing the link. I might be able to intercept the link with evaluate which I'll try, if not I'll look into cdp (no promises! depends on how much my requirements change at the job).

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

No branches or pull requests

3 participants