How to send an http RequestHeader using Selenium 2?

后端 未结 4 1300
误落风尘
误落风尘 2020-12-09 22:25

I needed to send an Http request with a few modified headers. After several hours trying to find an equivalent method to that of Selenium RC Selenium.addCustomRequestH

4条回答
  •  盖世英雄少女心
    2020-12-09 22:51

    Unfortunately you can not change headers with Selenium 2. This has been a conscious decision on the teams part as we are trying to create a browser automation framework that emulates what a user can do.

提交回复
热议问题