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

Fix return type of ExecuteScript for Playwright; Add generic overload #233

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

adiel
Copy link
Member

@adiel adiel commented Feb 24, 2024

Use Playwrights generic API to evaluate javascript, this has the same behaviour as Selenium in that the return value is of the inferred type, e.g. string, int, DateTime etc

Added a generic overload to the Coypu Driver API to make this a bit more friendly for all drivers.

Part of #232

@bjowes
Copy link

bjowes commented Feb 27, 2024

Looks good to me!
I'm curios which types Playwright actually supports in EvaluateAsync, but it is not documented. Either way this is a good improvement.

@adiel adiel merged commit 4f77292 into master Feb 27, 2024
@sbowler sbowler deleted the execute-script-return-type branch April 8, 2024 16:13
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

Successfully merging this pull request may close these issues.

2 participants