You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code works in Java Playwright version 1.39 but for future version from 1.40 to latest, I still encounter this error :
java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsJsonArray()" because the return value of "com.google.gson.JsonObject.get(String)" is null
StackTrace : 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.ElementHandleImpl.setInputFilesImpl(ElementHandleImpl.java:474) at com.microsoft.playwright.impl.FileChooserImpl.lambda$setFiles$0(FileChooserImpl.java:62) 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.FileChooserImpl.setFiles(FileChooserImpl.java:61) at com.microsoft.playwright.impl.FileChooserImpl.setFiles(FileChooserImpl.java:56) at com.microsoft.playwright.FileChooser.setFiles(FileChooser.java:91)
Additional context
No response
Environment
OS : Fedora Linux 39 (Workstation Edition) x64
Gnome : 45.5 (Wayland)
Linux kernel : 6.8.6-200
AdoptOpenJDK : 17
Browsers :
- chromium : 124.0.6367.29 from (download by Playwright from https://playwright.azureedge.net/builds/chromium/1112/chromium-linux.zip)
The text was updated successfully, but these errors were encountered:
Version
1.43.0
Steps to reproduce
Requirements : Playwright JAVA version > 1.39
Go to this URL (for example to test upload) : [https://www.file.io/]
You will find my java code below :
FileChooser fileChooser = page.waitForFileChooser(() -> page.locator("[for='upload-button']").click()); fileChooser.setFiles(Paths.get("src/test/resources/pictures/media-add-picture.jpg"));
Can you help me please ?
Expected behavior
My file is uploaded with success !
Actual behavior
This code works in Java Playwright version 1.39 but for future version from 1.40 to latest, I still encounter this error :
java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsJsonArray()" because the return value of "com.google.gson.JsonObject.get(String)" is null
StackTrace :
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.ElementHandleImpl.setInputFilesImpl(ElementHandleImpl.java:474) at com.microsoft.playwright.impl.FileChooserImpl.lambda$setFiles$0(FileChooserImpl.java:62) 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.FileChooserImpl.setFiles(FileChooserImpl.java:61) at com.microsoft.playwright.impl.FileChooserImpl.setFiles(FileChooserImpl.java:56) at com.microsoft.playwright.FileChooser.setFiles(FileChooser.java:91)
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: