Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

seeInField with radio buttons

未关闭
#64 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
php
领域
testing

调研方向

从 WebDriver 模块的 seeInField 入口点和链接的 seeInField 文档开始。在确定范围之前,先审查单选按钮、select、复选框、label 以及 null 或空值的要求行为;issue 中没有指定实现文件或测试。

由索引模型根据 Issue 内容生成。

描述

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?

  2. 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');
    
  3. 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.

主要语言
PHP
星标
39
派生
25
PR 合并指标
30 天内没有已合并 PR

贡献指南

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

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Codeception/module-webdriver 的其他 Issue

查看 Codeception/module-webdriver 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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