Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown when trying to upload a file with pw version > 1.39 #8

Open
hamza-amami opened this issue Apr 24, 2024 · 0 comments
Open

Comments

@hamza-amami
Copy link

Here's the exception thrown whenever I try to upload a file using a version of playwright > 1.39

java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsJsonArray()" because the return value of "com.google.gson.JsonObject.get(String)" is null

at io.github.uchagani.allure.playwright.ChannelOwnerAspect.getStepNameForSetInputFiles(ChannelOwnerAspect.java:138)
at io.github.uchagani.allure.playwright.ChannelOwnerAspect.getStepName(ChannelOwnerAspect.java:172)
at io.github.uchagani.allure.playwright.ChannelOwnerAspect.beforeActionMethods(ChannelOwnerAspect.java:79)
at com.microsoft.playwright.impl.ChannelOwner.sendMessage(ChannelOwner.java:105)
at com.microsoft.playwright.impl.FrameImpl.setInputFilesImpl(FrameImpl.java:770)
at com.microsoft.playwright.impl.FrameImpl.lambda$setInputFiles$35(FrameImpl.java:760)
at com.microsoft.playwright.impl.LoggingSupport.lambda$withLogging$0(LoggingSupport.java:36)
at com.microsoft.playwright.impl.LoggingSupport.withLogging(LoggingSupport.java:47)
at com.microsoft.playwright.impl.ChannelOwner.withLogging(ChannelOwner.java:89)
at com.microsoft.playwright.impl.LoggingSupport.withLogging(LoggingSupport.java:35)
at com.microsoft.playwright.impl.FrameImpl.setInputFiles(FrameImpl.java:760)
at com.microsoft.playwright.impl.FrameImpl.setInputFiles(FrameImpl.java:746)
at com.microsoft.playwright.impl.LocatorImpl.setInputFiles(LocatorImpl.java:551)
at com.microsoft.playwright.Locator.setInputFiles(Locator.java:4904)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant