赛普拉斯-TypeError:无法读取未定义的属性“ KeyboardEvent”(赛普拉斯版本-5.5.0)

时间:2020-11-02 11:24:36

标签: cypress ui-automation

在执行代码时,它会为-cy.get('css')。type('pqr.com')抛出TypeError。

在Keyboard.simulatedKeydown({{URL}} / __ cypress / runner / cypress_runner.js:162679处的Keyboard.fireSimulatedEvent({{URL}} / __ cypress / runner / cypress_runner.js:162534:29)中

''': 59)在Keyboard.typeSimulatedKey({{URL}} / __ cypress / runner / cypress_runner.js:162719:11)处({{URL}} / __ cypress / runner / cypress_runner.js:162396:15)在上一个事件中: ({{URL}} / __ cypress / runner / cypress_runner.js:162405:66)来自上一个事件:在Keyboard.type({{URL}} / __ cypress / runner / cypress_runner.js:162404:61)在({{ {URL}上的{URL}} / __ cypress / runner / cypress_runner.js:153804:24)/ __ cypress / runner / cypress_runner.js:153999:21)来自上一个事件:onReady({{URL}} /在runAllChecks({{URL}} / __ cypress / runner / cypress_runner.js:150154:15)处在retryActionability({{URL}} / __ cypress / runner / cypress_runner.js处的__cypress / runner / cypress_runner.js:153975:15): 150163:17)来自上一个事件:在whenStable({{上的tryFn({{URL}} / __ cypress / runner / cypress_runner.js:165407:22 URL}} / __ cypress / runner / cypress_runner.js:165445:13,网址为({{{URL}} / __ cypress / runner / cypress_runner.js:164960:17),来自先前活动:at $ Cy.retry({{URL} } / __ cypress / runner / cypress_runner.js:164940:39),网址为retryActionability({{URL}} / __ cypress / runner / cypress_runner.js:150166:20),网址为({{URL}} / __ cypress / runner / cypress_runner.js :150168:8)来自上一个事件:在Object.verify({{URL}} / __ cypress / runner / cypress_runner.js:150095:22)在handleFocused({{URL}} / __ cypress / runner / cypress_runner.js:153947 :30),位于Context.type({{URL}} / __ cypress / runner / cypress_runner.js:154006:13)。 ({{URL}} / __ cypress / runner / cypress_runner.js:169891:22)在({{URL}} / __ cypress / runner / cypress_runner.js:169315:16)来自上一个事件:在runCommand({{URL} } / __ cypress / runner / cypress_runner.js:169294:9),然后在({{URL}} / __ cypress / runner / cypress_runner.js({{URL}} / __ cypress / runner / cypress_runner.js:169440:15) :169468:17)来自上一个事件:在下一个({{URL}} / __ cypress / runner / cypress_runner.js:169440:35)来自上一个事件:在Promise.catch.err.name({{URL}} / __ cypress /runner/cypress_runner.js:169481:38)来自上一个事件:运行时($ {Cy.cy)({{URL}} / __ cypress / runner / cypress_runner.js:169474:22)。 [在Context.runnable.fn({{URL}} / __ cypress / runner / cypress_runner.js:170155:22)上[获得]({{URL}} / __ cypress / runner / cypress_runner.js:169931:12) ({{URL}} / __ cypress / runner / cypress_runner.js:104227:22)在测试... / driver / node_modules / mocha / lib / runnable.js.Runnable.run({{URL}} / __ cypress / runner /cypress_runner.js:104214:8),位于({{URL}} / __ cypress / runner / cypress_runner.js:175754:29)来自上一个事件:Object.onRunnableRun({{URL}} / __ cypress / runner / cypress_runner。 js:175742:18)在$ Cypress.action({{URL}} / __ cypress / runner / cypress_runner.js:166291:29)在Test.Runnable.run({{URL}} / __ cypress / runner / cypress_runner.js :174128:14)位于Runner ... / driver / node_modules / mocha / lib / runner.js.Runner.runTest({{URL}} / __ cypress / runner / cypress_runner.js:104886:11)位于({{URL }} / __ cypress / runner / cypress_runner.js:105012:13),下一个({{URL}} / __ cypress / runner / cypress_runner.js:104795:15)位于({{URL}} / __ cypress / runner / cypress_runner。 js:104805:8)接下来({{UR L}} / __ cypress / runner / cypress_runner.js:104707:15)在时间片({{URL}} / __ cypress / runner / cypress_runner的({{URL}} / __ cypress / runner / cypress_runner.js:104773:6) .js:98699:28)'''

0 个答案:

没有答案