- [error] isNewPageLoaded found an old pageLoadError: Error: Current window or frame is closed!
- [warn] Stack is: SeleniumError@chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js:782:17BrowserBot.prototype._handleClosedSubFrame@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1266:27BrowserBot.prototype.getCurrentWindow@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1229:18BrowserBot.prototype.pollForLoad@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:961:38BrowserBot.prototype.reschedulePoller/pollerFunction@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1099:9BrowserBot.prototype.runScheduledPollers@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1109:9TestLoop.prototype.continueTestWhenConditionIsTrue@chrome://selenium-ide/content/selenium-core/scripts/selenium-executionloop.js:142:9.continueTestWhenConditionIsTrue@chrome://selenium-ide/content/selenium-runner.js:210:7fnBind/retval@chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js:60:12
- [error] Current window or frame is closed!
- 在用Selenium IDE录制的时候,老是报该错,查阅很多之后,解决方法如下:
- 需要增加在这个错误语句之前增加command selectWindow其值为null.
- 英文好的话,可以看看http://www.markhneedham.com/blog/2008/10/25/selenium-selecting-the-original-window/
[error] isNewPageLoaded found an old pageLoadError: Error: Current window or frame is closed!
最新推荐文章于 2022-08-20 10:40:15 发布