How to get the current URL in Robot framework?

前端 未结 3 1147
我在风中等你
我在风中等你 2021-01-20 02:04

When the \'apply\' link is clicked, it opens a new browser in Robot framework. How to get current url of that page? Here is the code:

Open Server     
Set Br         


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-20 02:45

    getting the current URL is easy using the Execute Javascript SeleniumLibrary keyword:

    ${url} =  Execute Javascript  return window.location.href;
    

提交回复
热议问题