I'm using this code for browse (upload) files in dialog:
var uploadPathLogo = "path to file";
var uploadLogo = function() {
browser.driver.sleep(3000).then(function() {
robot.typeStringDelayed(uploadPathLogo, 23000);
robot.keyTap("enter");
browser.driver.sleep(3000);
});
},
The problem is that when I run the test locally everything is fine, but when I run the test on remote machine the path is not written into the dialog. Is there any other library that can be used for this purpose?