使用launchOptions设置浏览器启动配置并将对象传递给浏览器示例。
var launchOptions = new BrowserTypeLaunchOptions
{
Headless = false,
Args = new[] { "--disable-web-security" }
};
browser = await browserType.LaunchAsync(launchOptions);
字符串
使用launchOptions设置浏览器启动配置并将对象传递给浏览器示例。
var launchOptions = new BrowserTypeLaunchOptions
{
Headless = false,
Args = new[] { "--disable-web-security" }
};
browser = await browserType.LaunchAsync(launchOptions);
字符串
1条答案
按热度按时间ca1c2owp1#
从playwright.config.ts使用下面的配置,
字符串