c# selenium to browse and upload a file

后端 未结 2 994
Happy的楠姐
Happy的楠姐 2021-01-12 17:57

In my selenium c# windows forms application, I have a scenario like uploading a doc/docx file. I have already done uploading in some another case.since it has some text box

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 18:45

    Since its a OS dialog box you cannot handle it with selenium , you can use java script executor check this link Webdriver: File Upload

提交回复
热议问题