playwright-java icon indicating copy to clipboard operation
playwright-java copied to clipboard

[Bug]: Caret Screenshot

Open erdemgurell opened this issue 1 year ago • 6 comments

Version

1.43.0

Steps to reproduce

  1. Java 11 Maven project in IntelliJ IDEA 2024.1
  2. Clone my repo: https://github.com/erdemgurell/Playwright_LearningProject.git
  3. Go to src/test/java/LambdaTest/day4/Screenshots.java and run the file.

Expected behavior

Take a screenshot of the input element with the caret hidden and save it to a fil

Actual behavior

It gives this error:

com.microsoft.playwright.PlaywrightException: Error message='caret: expected one of (hide|initial) name='Error stack='Error: caret: expected one of (hide|initial)

Additional context

I think it's about enums in ScreenshotCaret class

Environment

  • Operating System: [Windows 10]
  • Browser: [Chromium]
  • IDE: [IntelliJ IDEA 2024.1 (Community Edition)]
  • Java Version: [Java 11]
  • Playwright Version: [1.43.0]
  • Maven Version: [4.0.0]

erdemgurell avatar Jun 10 '24 14:06 erdemgurell