Por*_*ris 1 variables url robotframework
我需要将当前窗口的url变为变量.我在尝试:
$ {attribute} =执行Javascript window.location.href;
当我记录并尝试查看值时,它仅返回"None".(15:56:00.536 INFO $ {attribute} =无)
有什么建议?
假设您使用的是SeleniumLibrary(或较旧的Selenium2Library),您可以使用Get Location关键字:
${href}= Get Location
Run Code Online (Sandbox Code Playgroud)