TA的每日心情 | 郁闷 2019-6-25 16:57 |
---|
签到天数: 6 天 连续签到: 1 天 [LV.2]测试排长
|
问题求助
问题描述及重现步骤: |
执行测试用例时报Unable to find element on closed window
测试用例实现一个登录,现在能打开登录页面,但是到输入用户这一步就出错了,使用ie11 |
问题类型: |
Web测试 |
TW版本: |
|
被测应用的名称和版本: |
测试公司内部网站的登录,估计外网登录不了 |
本帖最后由 TestWriter 于 2017-4-6 11:20 编辑
测试用例实现一个登录,现在能打开登录页面,但是到输入用户这一步就出错了,使用ie11
部分错误日志如下,请问有哪位大侠知道为什么吗?
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByXPath(String xpath)
at TestWriter.Web.SeleniumEmulator.CommandBase.?????????????????????????????????????????(RemoteWebDriver , String )
at TestWriter.Web.SeleniumEmulator.CommandBase.FindElement(SeleniumBrowser browser, CommandInfo cmdInfo, Boolean forceExceptionWhenNotFound)
at TestWriter.Web.SeleniumEmulator.CommandHandler.Type.DoExecuteCommand(SeleniumBrowser browser, CommandInfo cmdInfo)
at TestWriter.Web.SeleniumEmulator.CommandBase.Execute(SeleniumBrowser browser, CommandInfo cmdInfo)
2017-04-05 17:13:35,179 [23240] ERROR TestWriter.Common.Log4net.Log4netLoggingService - OpenQA.Selenium.NoSuchWindowException: Unable to find element on closed window
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByXPath(String xpath)
at TestWriter.Web.SeleniumEmulator.CommandBase.?????????????????????????????????????????(RemoteWebDriver , String )
at TestWriter.Web.SeleniumEmulator.CommandBase.FindElement(SeleniumBrowser browser, CommandInfo cmdInfo, Boolean forceExceptionWhenNotFound)
at TestWriter.Web.SeleniumEmulator.CommandHandler.Type.DoExecuteCommand(SeleniumBrowser browser, CommandInfo cmdInfo)
at TestWriter.Web.SeleniumEmulator.CommandBase.Execute(SeleniumBrowser browser, CommandInfo cmdInfo)
at TestWriter.Web.SeleniumEmulator.SeleniumEmulator.InternalExecute(CommandInfo cmdInfo)
at TestWriter.Web.SeleniumEmulator.SeleniumEmulator.Execute(ExecuteTestStep step, ICommandResult& message)
at TestWriter.EmulatorServices.CommonExecuteHelper.ExecuteOperation(CommonEmulator emulator, ExecuteTestStep step, ExecuteTestItem testcase, ExecuteTest test, ICommandResult& message) |
|