0

webdriverio v5 を使用して、sourceLabs で自動化テストを実行しています。msedge にファイルをアップロードするテストを実行したいと考えています。以下は、同じサンプルコードです。

const path = require('path');
const filePath = path.join(__dirname, 'path/to/your/file');
const remoteFilePath = browser.uploadFile(filePath);
$('upload file input selector').setValue(remoteFilePath);

このコードは chrome と firefox で正常に動作しますが、同じものを実行しようとするmsedgeError: The uploadFile command is not available in msedge. browser.uploadFile はクロムでのみ機能するようです。他にもさまざまなことを試しましたが、ソリューションは主にローカルで機能し、sourceLabs のようなリモート サーバーでは機能しません。

msedge ブラウザーでファイルをアップロードするために使用できる代替手段browser.uploadFileまたは回避策はありますか?

4

1 に答える 1