i'm experimenting with selenium web-driver and would like to use something similar to the below code:

WebDriver driver = new FirefoxDriver();driver.get("http:\\awebsite.com?th at%20has%20x");unfortunately when i execute the code, in the browser appears:

http:\\awebsite.com?that has xwhat do i need to do so that the %20 is not replaced by a "space"?
Thank you in advance!

Check Solution