Getting the URL of the current page using Selenium WebDriver

后端 未结 1 566
渐次进展
渐次进展 2020-12-24 10:59

I\'m attempting to get the URL of the currently open page. I am using Selenium WebDriver and Java.

I am accessing the current URL via:

WebDriver dri         


        
相关标签:
1条回答
  • 2020-12-24 11:19

    Put sleep. It will work. I have tried. The reason is that the page wasn't loaded yet. Check this question to know how to wait for load - Wait for page load in Selenium

    0 讨论(0)
提交回复
热议问题