Skip to content

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

@hamza-amami

Description

@hamza-amami

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions