0

I want when executing the following command:

playwright codegen demo.playwright.dev/todomvc

I open the browser with the arguments of --disable-web-security --user-data-dir=“...”.

Can this be done? I have searched in several places, making a .bat to .exe and I have not succeeded.

1 Answer 1

0

You can use the following line of code in your script to disable web security.

new BrowserWindow({webPreferences: {webSecurity: false}});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.