Getting Invalid argument error while using the uploaded file in the VM in selenium test? I am using selenium 4

Getting Invalid argument error while using the uploaded file in the VM in Selenium test? I am using Selenium 4.

Hi Noah, If you are using Selenium 4 you need to pass the capability to get the uploaded file in side LT:Options.

var capabilities = { . LT:Options: {

. . “lambda:userFiles” : [ “test.pdf” ] }  }