How to deal with file uploading in test automation using selenium or webdriver

前端 未结 6 1342
谎友^
谎友^ 2020-12-03 03:09

I think that everybody who uses Webdriver for test automation must be aware of its great advantages for web development.

But there is a huge issue if file uploading i

6条回答
  •  死守一世寂寞
    2020-12-03 03:47

    If you have your are using a grid, you could make the folder of the testfiles open for sharing.

    This way you could select the upload input field and set its value to \\pc-name\myTestFiles

    If you're not, you should go with local files on each system.

提交回复
热议问题