I am trying to use a proxy of LocalHost and port 8080. I have written the following code in Robot Framework but the IP is not changing once the browser opens:
*** Settings ***
Documentation This is a simple test with Robot Framework
Library Selenium2Library
*** Variables ***
${SERVER} http:/demo.testfire.net
${BROWSER} firefox
${DELAY} 0
*** Keywords ***
Open Browser To Demo
${proxy}= Evaluate sys.modules['selenium.webdriver'].Proxy() sys, selenium.webdriver
${proxy.http_proxy}= Set Variable localhost:8080
Create Webdriver Firefox proxy=${proxy}
Go To ${Server}
*** Test Cases ***
Valid Login
Open Browser To Demo
Can anyone give me a fix to this so that IP address in Firefox changes to 127.0.0.1 without using Firefox Profiles?