getLocationAbsUrl vs getCurrentUrl

后端 未结 4 1647
既然无缘
既然无缘 2021-02-18 22:36

In protractor, globally available browser object has two methods:

  • getLocationAbsUrl()

Returns the current absolute url f

4条回答
  •  一向
    一向 (楼主)
    2021-02-18 23:11

    Note that getLocationAbsUrl() is now deprecated, and should not be use anymore. You should use getCurrentUrl() instead.

    Here is the related Github commit by Protractor.

提交回复
热议问题