open url's having “# ” in them (Selenium webdriver)

有些话、适合烂在心里 提交于 2021-02-11 13:37:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!