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

Attach to Electron Webview #1511

Closed
1 task done
DogFoxX opened this issue Jun 11, 2022 · 1 comment
Closed
1 task done

Attach to Electron Webview #1511

DogFoxX opened this issue Jun 11, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@DogFoxX
Copy link

DogFoxX commented Jun 11, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

This is not really a feature request, just a general question to know if what I'm asking is possible.

I'm running an instance of Whats App Web in Electron <webview>. Is there any way I can attach Puppeteer to the webview tag?

Describe the solution you'd like.

Maybe something like:

const webview = document.getElementsByName('webview');
const client = new Client({
    authStrategy: new LocalAuth()
});

client.browser = webview;

or set puppeteer target

const webview = document.getElementsByName('webview');
const client = new Client({
    authStrategy: new LocalAuth(),
    puppeteer: { target: webview }
});

### Describe an alternate solution.

_No response_

### Additional context

_No response_
@DogFoxX DogFoxX added the enhancement New feature or request label Jun 11, 2022
@PurpShell
Copy link
Sponsor Collaborator

Take a look at whatsapp-web-electron.js

@alechkos alechkos mentioned this issue Feb 1, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants