There was a problem when I uploaded a file use type command

Source :
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[5]/div/div/div[2]/div[2]/input”,
“Value”: “D:\testPic\main.jpg”,
“Description”: “”
}

log:

  • [error]

[Line 11]: $el.className.split is not a function

But works fine on Selenium IDE