问题
I have a URL like https://abc.xyz.net/#/abcdef/1-2-3.
String url = "https://abc.xyz.net/#/abcdef/1-2-3"
When trying to open it using driver.get(url)
, its opening only till "https://abc.xyz.net/#/"
and the remaining part is not evaluated or getting truncated.
Can someone please help me how to resolve it. I am using Java + Selenium WebDriver.
回答1:
thanks Prany for your time. The issue is due to the fragment identifier "#" in the url. I am able to resolve it by using JavascriptExecutor.
来源:https://stackoverflow.com/questions/51031620/open-urls-having-in-them-selenium-webdriver