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

Need to pass only args to evaluate callback #2687

Open
Iamsomasundaram opened this issue Feb 7, 2023 · 1 comment
Open

Need to pass only args to evaluate callback #2687

Iamsomasundaram opened this issue Feb 7, 2023 · 1 comment

Comments

@Iamsomasundaram
Copy link

Hi Team - In the current version of the evaluate API, there is no provision to send only args to the callback, we need to pass an element along with the args param, is there any way where we can pass only arguments to the callback function?

Example:
await evaluate( (args) => { }, options)

@mzissa
Copy link
Contributor

mzissa commented Feb 23, 2023

I agree with you. I faced this issue as well. The way I got around it is by passing a dummy select like this:

const dummyDiv = $("div");
await evaluate(dummyDiv, function (x) { });

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

No branches or pull requests

2 participants