Block request URL selenium firefox python

白昼怎懂夜的黑 提交于 2020-05-14 07:45:11

问题


Im trying to block certain URLs while acessing a website. Meaning i only make the requests required to proceed. There is one url automatically loading a 5mb code i cant block disabling css by firefox profiles. I read selenium doesnt allow that amount of control but im unshure if there is some way to set it using an addon. However im unable to control block url addon using python. Is there any way apart from modifying the hosts file? I sucessfully blocked the urls using network monitor programs but they arent user friendly at all.

来源:https://stackoverflow.com/questions/59415504/block-request-url-selenium-firefox-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!