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

后端 未结 7 1611
栀梦
栀梦 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:19

    The above solutions cause issues with my development environment being on a non-standard port. This solution may also help with https. If you truly want the base url:

    
    storeEval
    selenium.browserbot.baseUrl
    baseurl
    
    
    echo
    ${baseurl}
    
    
    

提交回复
热议问题