我在 Windows 10 上安装了 nodejs 和 npm。比我尝试通过安装 cypress npm install cypress --save-dev并得到以下错误:
> node index.js --exec install
The command "node" is either misspelled or
could not be found.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cypress@3.8.2 postinstall: `node index.js --exec install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cypress@3.8.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A …Run Code Online (Sandbox Code Playgroud) 我有一个包含 6 列和可变行的表。现在我想让柏树测试删除按钮。所以我在之前的测试中在我的表中创建了一个 testitem 并希望我的程序删除这个 testitem。
如何在第 2 列的表格中搜索、过滤该行并使用 cypress 单击第 6 列中的按钮?
我阅读了 cypress.io 上的文档和指南,但没有找到任何解决方案。
<div class="row">
<div class="top-buffer"></div>
<div class="panel panel-primary">
<div class="panel-heading panel-head">Article</div>
<div class="panel-body">
<div class="btn-group">
<a asp-action="Edit" asp-route-id="@Guid.Empty" class="btn btn-primary"><i class="" glyphicon glyphicon-plus"></i>NEW</a>
</div>
<div class="top-buffer"></div>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
</tr>
</thead>
<tbody>
@foreach (var att in Model)
{
<tr>
<td>@Html.DisplayFor(modelItem => att.1)</td>
<td>@Html.DisplayFor(modelItem => att.2)</td>
<td>@Html.DisplayFor(modelItem => att.3)</td>
<td>@Html.DisplayFor(modelItem => att.4)</td>
<td>@Html.DisplayFor(modelItem => att.5)</td>
<td>
<a …Run Code Online (Sandbox Code Playgroud)