【发布时间】:2018-05-16 16:06:35
【问题描述】:
我是 cypress/html 的新手,我正在尝试在以下地址框中输入地址
<input type="text" title="Street Address 1" name="billing[street][]" id="billing:street1" value="" class="input-text " autocomplete="address-line1">
所以我想做的是在这个框中输入一些东西,然后我就写了
cy.get('#billing:street1').type('1322 the gulag archipelago')
但是我在 cypress 中收到以下错误:
预计会找到“#billing:street1”,但从未找到。
所以我的问题是为什么这不起作用,因为我以前做过这个 .get by id 并且它已经起作用了。
编辑: 是不是我需要使用'billing:street1'或类似的东西来指定 : 的含义。我专门试过这个,它没有用。
提前谢谢你。
【问题讨论】:
标签: javascript html cypress