2

Im am using Firefox Plugin Selenium IDE for testing (not Webdriver or else). Some areas of my webapplication are only accessible after basic authentication:

basic auth window

At the moment, I have to stop the test and type the login-data manually. When I pass my login-data via url: http://username:password@mydomain.com/, there appears a windows, where I cannot press the OK-Button via Selenium IDE:

basic auth url warning

Is there any way to login via Selenium IDE automatically?

4

2 に答える 2

-2

サイトが基本認証を使用しているときにユーザーを切り替えるには、IDE の open コマンドに渡す URL でユーザー名とパスワードを指定できます。

IDE でソース コードを表示すると、最初に「user1」、次に「user2」にする場合、次のようになります。

<tr>
    <td>open</td>
    <td>http://user1:pwd1@site.my/</td>
    <td></td>
</tr>
<tr>
    <td>open</td>
    <td>http://user2:pwd3@site.my/</td>
    <td></td>
</tr>
于 2015-01-12T08:23:08.700 に答える