Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by tarunlalwani.com #
 
PREVIOUS NEXT
Tagged: #block #url #selenium #python
ADD COMMENT
Topic
Name
9+8 =