In Selenium IDE, how to get the value of the base url

后端 未结 7 1531
栀梦
栀梦 2021-02-04 01:19

Is it possible to retrieve the value of the base url from inside a Selenium script (a plain HTML-saved script from Selenium IDE)?

What I\'m trying to do

7条回答
  •  庸人自扰
    2021-02-04 02:15

    Try this

    storeEval|window.document.domain|host
    assertLocation|http://${host}/some-page|
    

提交回复
热议问题