Codeception / Codeception/module-webdriver

seeInField with radio buttons

未关闭
#64 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
39
派生
25
PR 合并指标
30 天内没有已合并 PR

描述

Some suggestions/questions for `seeInField`:

1. Even if not explicitly mentioned at http://codeception.com/docs/modules/WebDriver#seeInField it works for radio buttons too? And probably select's and checkbox'es too?

1. For radio buttons, you need to pass the *value* as second argument:
````
$I->seeInField('.gender', 1);
````
...which isn't very readable ;-) So I'm suggesting a method to assert a radio button's value by its *label* - something like:
````
$I->seeRadioSelected('.gender', 'female');
````

1. How can you assert that no radio button is selected? I tried `seeInField` with `null` or `''` as second argument - both didn't work. So I'm suggesting to include that too.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。