English 中文(简体)
Cypress - Plugins
  • 时间:2024-03-24 08:55:12

Cypress - Plugins

Previous Page Next Page  

热带风暴有多种金.,可增加其特征。 有许多种金,如认证、部件测试、习俗指挥、开发工具等等。

一些突出的金刚石包括:

perform file upload mission, in Cypress, 我们必须先到install a plugin,以下称呼:


npm install –dev cypress-file-upload

一旦安装完毕,我们就必须在指挥.js档案中增加说明进口气压单上载荷,该档案存放在Cypress项目内的支持夹内。

为了配合框架,首先,我们必须安装Cypress plugin for ,其指挥如下:


npm install –D cypress-iframe

然后,我们必须在《守则》中添加关于进口气压参数的声明。

指明由Xpath 定位器组成的部件,指挥如下:


npm install cypress-xpath

一旦安装完毕,我们就必须在索引.js档案中添加说明要求(“电压-xpath”),该档案位于“Cypress”项目内的支持夹内。

此外,我们必须利用cy子的指挥确定要素。

可使用的主题,我们必须安装一个包含以下所述指挥的假象:


npm install --save-dev cypress-dark

Once the installation is done, we have to add the statement require ("cypress-dark") within the index.js file, which resides inside the support folder within the Cypress project.

Advertisements