Automate testing how protractor closes the system pop-up box

In the

selenium+protractor automated test, when the attachment is uploaded, the pop-up box for the selected file uploaded by the attachment is opened, but there is no way to close the system pop-up box. How to solve this problem?

var path = require("path");
var absolutePath = path.resolve("C:\filename.txt");
element(by.css("input[type="file"]")).sendKeys(absolutePath);
Mar.11,2021

'input [type = "file"]', it should be possible to upload the sendKeys file path directly with selenium, without having to operate the Windows control.

in addition, the system pop-up box selenium cannot be operated, so you can try it with autoit. Have no contact with protractor

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36af5-2c026.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36af5-2c026.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?