I'm trying to write code for testing purposes to simulate file uploading. I'm using for this purposes Selenium/Webdriver framework WebdriverIO which is also running in Browserstack.
It's working perfectly in Win & Mac
with Chrome/Firefox/IE10/IE11
. But NOT working in Win10 EDGE
& Mac Sierra\El Capitan\Yosemite\Mavaricks with Safari
. In some browsers like Opera, Safari on Win are stopping work. But above mentioned browsers are proceed with even not selecting file but as a result I'm getting an failed test results.
Here's fragment of code:
browser
.chooseFile("#qunit-fixture-visible input[type=file]", test_file_path, function (err) {
assert.isNull(err, "Error, selecting file");
})
.click('button#upload-button', function(err){
assert.isNull(err, "File upload button can't be clicked");
});
Here is similar question I could found for Safari. As I could understood it wasn't be able to upload file for 4-March-2016 with selenium-webdriver https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/4220