lordqyxz / playwright_nodejs

This is a simple tool to use the Node.js environment in the playwright package to execute your js script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

There is a Node.js environment in playwright, why not just use it?

example

from pathlib import Path

from playwright_nodejs import Nodejs

source = Path('test.js')
js = "console.log(result)"
re = Nodejs(source=source).call(js).exec()
print(re)

About

This is a simple tool to use the Node.js environment in the playwright package to execute your js script.

License:MIT License


Languages

Language:Python 98.8%Language:JavaScript 1.2%