Webdriver: File Upload

后端 未结 7 1212
日久生厌
日久生厌 2020-11-27 18:16

Is there a way to interact with a File Upload box in webdriver? The form field where the path gets put in is read only so I can\'t write to that.

7条回答
  •  清酒与你
    2020-11-27 18:33

    in my case i can upload file like solution that write hear but dialog window stuck the process, the driver cant reference to close this window, so i kill him manually:

     foreach (var p in Process.GetProcessesByName("chrome"))
            if (p.MainWindowTitle.ToLower().Contains("open"))
                   p.Kill();
    

提交回复
热议问题