问题标签 [mink]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1438 浏览

php - 阻止在 PHP Composer 中安装包以使用包的分支

我正在与 Behat 和 Composer 合作开展一个项目。我必须为 Mink 和 Mink Selenium 2 驱动程序创建一个分支和补丁来处理弹出窗口。目前,管理我分叉的存储库的人员仍在审查这些补丁。因此,与此同时,我想改用我的 fork 版本。

我已将我的存储库添加到作曲家,它们正在被拉入。但是“behat/mink”包仍在安装,因为“behat/mink-extension”需要它。问题是它也可以使用我的 fork。所以我想让它只拉我的而不是“behat/mink”包。

我可以这样做吗?我可以阻止一个包的必需包以支持我的分叉吗?

谢谢!

0 投票
0 回答
422 浏览

selenium - Behat 处理花式框弹出窗口

我在fancybox弹出窗口中有表格。当我尝试填写表单详细信息时,出现以下错误。我无法访问fancybox 弹出窗口中的表单元素。

我正在使用来自http://fancybox.net/的jQuery FancyBox 插件,并查看以下函数定义和场景

测试场景:

函数定义:

你可以在这里看到我的fancybox html代码http://pastebin.com/zeZDXhm9

0 投票
1 回答
1846 浏览

php - behat undefined step 虽然它应该被定义

我在 windows7 上使用 behat ..这是我今天挣扎的第四天...我写了一个功能

和定义的步骤

它还向我展示了 147 个未定义的场景和 878 个未定义的默认步骤,而其中一些步骤在 FeatureContext.php 中定义

请帮忙!!!

0 投票
1 回答
768 浏览

selenium-webdriver - :nth-of-type(N) doesn't work in behat+mink+selenium2

I am using Behat+Mink+Selenium2 to find an element using CSS selectors using tr.product:nth-of-type(N)

I have also tried

but none of them work. Is there any other alternative to selecting every nth row with a class of product?

0 投票
2 回答
839 浏览

php - 无法在 Behat 中用法语写功能

我正在尝试用法语中的几句话来编写我的功能,我遵循了 behat 教程并正确添加了评论

#语言:fr

在文件的开头

我还将文件保存为 utf-8 格式....

但 behat 仍然没有成功运行我的功能并给出错误

预期的评论或场景或大纲或步骤标记,但在线获得文本:1

是否允许用部分法语部分英语编写功能

如果是这样,为什么它在我的情况下不起作用。

谢谢,

0 投票
2 回答
191 浏览

php - How to specify this XPATH?

Given this is my DOM, and it doesn't belong to me so I may not modify it in any way, how do I select the correct "click here" link based on the product-id inner text? Note that there are 3 products in this code and the link can appear at any place in the page so I must be able to select solely based on product-id. This is for a behat/mink functional test for PHP and so far every attempt I have made to select based on product id has failed.

This xpath, for example, has failed:

I've tried using ancestor and other things but nothing yet. I'm not even sure if I am using the correct characters. Any ideas?

0 投票
1 回答
537 浏览

testing - Behat 的“当我按下...”不适用于 Selenium 2.33

我需要登录我的本地网站进行测试。这是 Behat 的测试功能:

我正在使用 Selenium Driver v2.33 进行测试。我总是从驱动程序中得到一个错误,下面是控制台日志:

这是硒的日志:

这是我不明白的。它询问标题“singin”或相同的 id 等,并告诉我没有这样的按钮。但它是,这是我的那个按钮的 HTML 代码块:

0 投票
2 回答
1094 浏览

javascript - 带有 Behat 和 Mink 的 Zombie.js

我一直在让 Behat 与 Zombie.js 一起工作时遇到问题。我现在遇到的问题实际上是在 Zombie.js 模块中(之前,错误出现在两者之间的链接中)。

错误看起来像这样。

我发现在 中history.coffee,该resolve函数试图使用一个不存在的数组元素。

该引用@_stack[@_index]解析为未定义,然后将其传递给URL.resolve,然后导致错误。

知道为什么会发生这种情况吗?

更新

我注意到那@_stack是空的,并且@_index-1. 这应该是不可能的吧?

0 投票
0 回答
70 浏览

selenium - 创建新的“按下按钮”步骤

我需要帮助来创建自己的 Behat 步骤,类似于“当我按下时”。我这样做是因为原来的印刷方法似乎不能正常工作。

我想称之为“当我按下提交按钮时......”

所以,这是FeatureContext.php的代码块的开始:

问题是 - 我应该在这些括号内写什么?

0 投票
4 回答
691 浏览

bdd - Behat with Mink unexpected step error

I am implementing Behat with Mink, using the following feature:

I have used the Goutte and Sahi, and the error is consistent. I get the error on "Then I should see "agile software development"

How to fix this issue.