Answers for "block url selenium python"

0

block url selenium python

from selenium import webdriver

profile = webdriver.FirefoxProfile()
# 1 - Allow all images
# 2 - Block all images
# 3 - Block 3rd party images 
profile.set_preference("permissions.default.image", 2)

driver = webdriver.Firefox(firefox_profile=profile)
Posted by: Guest on May-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language