Playwright is awesome!!.. trying to setup for the first time
Context:
- Playwright Version: [what Playwright version do you use?] 1.20.0, fails in 1.17
- Operating System: [e.g. Windows, Linux or Mac] Mac
- Node.js version: [e.g. 12.22, 14.6] Java 17
- Browser: [e.g. All, Chromium, Firefox, WebKit] Chromium
- Extra: [any specific details about your environment]
Code Snippet
Browser browser = playwright.chromium().launch(new BrowserType.LaunchOptions()
.setHeadless(false));
BrowserContext context = browser.newContext();
context.tracing().start(new Tracing.StartOptions()
.setScreenshots(true)
.setSnapshots(true)
.setSources(true));
Describe the bug
java.lang.Error:
Unresolved compilation problems:
The method setSources(boolean) is undefined for the type Tracing.StartOptions
Paths cannot be resolved
at com.automation.AppTest.LogintestWithTrace(AppTest.java:54)
Add any other details about the problem here.
Removing the line seems to work.