Codeception / Codeception/module-webdriver

seeInField with radio buttons

オープン
#64 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。