I'm trying to get a url using selenium-java 3.3.1 and when I do the following:
driver.get(url.toString())
Where the URL looks like this:
https://hello.world.io/@snapshot/web/1.23.207-1-gc2b81d1/?referrer=/beta
Selenium only enters everything after the @ into the url of my ChromeBrowser. I've tried URLEncoding the entire URL and only the portion after and containing the @ but that gives me an invalid url error.
Would appreciate and help trying to force selenium-java to navigate to that url.
EDIT
I tried doing
driver.get("https://hello.world.io/@snapshot/web/1.23.207-1-gc2b81d1/?referrer=/beta");
and that works.
But I need to pass in the URL as a variable which I'm doing and then calling .toString(). I've printed the result to toString() out to the console and it looks fine so there must be something very odd happening that I can put my finger on.
driver.get("https://hello.world.io/@snapshot/web/1.23.207-1-gc2b81d1/?referrer=/beta");I am guessing there is an issue with yourtoString()method