我正在使用量角器browser.manage()。timeouts()。implicitlyWait(5000);但它显示以下错误

时间:2019-12-26 21:16:08

标签: javascript protractor

堆栈:     ScriptTimeoutError:脚本超时       (会议信息:chrome = 79.0.3945.88)     构建信息:版本:'3.141.59',修订版本:'e82be7d358',时间:'2018-11-14T08:25:53'     系统信息:主机:'DESKTOP-NI656HG',ip:'192.168.1.63',操作系统名称:'Windows 10',os.arch:'amd64',os.version:'10 .0',java.version:'13 .0 .1'     驱动程序信息:driver.version:未知         在Object.checkLegacyResponse(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ error.js:546:15)         在parseHttpResponse(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ http.js:509:13)         在C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ http.js:441:30         在processTicksAndRejections(内部/进程/task_queues.js:97:5)     来自:任务:Protractor.waitForAngular()-定位器:通过(css选择器,输入[formcontrolname ='odometer'])         在thenableWebDriverProxy.schedule(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ webdriver.js:807:17)         在ProtractorBrowser.executeAsyncScript_(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ built \ browser.js:425:28)         在C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ built \ browser.js:456:33         在ManagedPromise.invokeCallback_(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ promise.js:1376:14)         在TaskQueue.execute_(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ promise.js:3084:14)         在TaskQueue.executeNext_(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ promise.js:3067:27)         在C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ promise.js:2927:27         在C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ promise.js:668:7         在processTicksAndRejections(内部/进程/task_queues.js:97:5)发生错误         在ElementArrayFinder.applyAction_(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ built \ element.js:459:27)         在ElementArrayFinder中。 [单击](C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ built \ element.js:91:29)         在ElementFinder中。 [单击](C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ built \ element.js:831:22)         达到里程数(C:\ Users \ Ankit Giri \ Desktop \ AccuTrade \ Pages \ lowMileage.js:22:17)         在UserContext上。 (C:\ Users \ Ankit Giri \ Desktop \ AccuTrade \ Specs \ lowMileageSpec.js:30:23)         在processTicksAndRejections(内部/进程/task_queues.js:97:5)     来自:任务:在控制流中运行它(“低里程”)         在UserContext上。 (C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasminewd2 \ index.js:94:19)         在C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasminewd2 \ index.js:64:48         在ControlFlow.emit(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ events.js:62:21)         在ControlFlow.shutdown_(C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ promise.js:2674:10)         在C:\ Users \ Ankit Giri \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ promise.js:2599:53     通过异步测试:     错误         在套房。 (C:\ Users \ Ankit Giri \ Desktop \ AccuTrade \ Specs \ lowMileageSpec.js:25:5)         在对象。 (C:\ Users \ Ankit Giri \ Desktop \ AccuTrade \ Specs \ lowMileageSpec.js:1:1)         在Module._compile(internal / modules / cjs / loader.js:1139:30)         在Object.Module._extensions..js(内部/模块/cjs/loader.js:1159:10)         在Module.load(internal / modules / cjs / loader.js:988:32)         在Function.Module._load(internal / modules / cjs / loader.js:896:14)

2个规格,1个故障

0 个答案:

没有答案