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

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

    <tr>
    <td>storeEval</td>
    <td>selenium.browserbot.baseUrl</td>
    <td>baseurl</td>
    </tr>
    <tr>
    <td>echo</td>
    <td>${baseurl}</td>
    <td></td>
    </tr>
    
    0 讨论(0)
提交回复
热议问题