Hello Guys I'm having problem on my code.
from selenium import webdriver
import time
profile = webdriver.FirefoxProfile()
profile.set_preference('network.proxy_type',1)
profile.set_preference('network.proxy.http',"91.xx.xxx.xx")
profile.set_preference('network.proxy.http_port',xxxx)
# profile.update_preference() ---> this code letter giving the error.
driver = webdriver.Firefox(firefox_profile=profile)
driver.get('http://whatismyipaddress.com')
time.sleep(3)
driver.close()
Here Is The Error I'm Getting:
AttributeError: 'FirefoxProfile' object has no attribute 'update'
I cant figure out the problem i just want to save the profile settings to use.
I Think You Need To Change This
profile.update_preference()
With This:
profile.update_preferences()