Selenium openWindow в IE9 приводит к ошибке «Ожидается объект» - PullRequest
1 голос
/ 18 марта 2012

Команда openWindow (url, ID) в Selenium содержит ошибки в IE9.Прекрасно работает в Firefox 9.

Вот мой упрощенный тестовый пример Selenium:

  1. Откройте главную страницу на localhost: 8080 / myPage / index.html.
  2. Удерживая эту страницу открытой, откройте дополнительное окно браузера, которое указывает на localhost: 8181.

Базовый URL-адрес для моего теста: 'http://localhost:8080/'. Тестовый случай:

 <br><br>open | /myPage/index.html | |
 <br>openWindow | http://localhost:8181 | A |

Это работает без проблем в Selenium IDE 1.7.1 и в Selenium RC 2.12 и 2.19 для Firefox 9. Запуск его с IE9 через RC 2.12 и 2.19 приводит к следующей ошибке:

info: Executing: |openWindow | http://localhost:8181 | A |<br>
error: Unexpected Exception: Object expected<br>
error: Exception details: message -> Object expected, description -> Object expected, number -> -2146823281, name -> TypeError<br>
warn: currentTest.recordFailure: Command execution failure.<br>
Please search the user group at groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Object expected
...