Most developers and testers usually takes advantage of Operation System Host File (commonly known as "hosts") to "trick" the S.O. and the browser to load websites and webservices from another server than the real production one. It's a very easy approach to be able to use the production host name of your site or service while pointing your computer to another server (staging, Q&A, etc).
This is acceptable when testing manually, but constrains test automation because I need to manipulate /etc/hosts
file on each test machine and tests running in parallel may be impacted by this change.
Is there a way to create a browser with mapping specific only for this browser instance? Something like WebDriver capabilities? I know there are relevant plugins for Firefox ("Change Hosts"), but this makes my tests browser-specific.