問題タブ [protractor-net]
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.
angularjs - angularアプリケーションのラジオボタンを選択する方法
上記の HTML では、ラジオ ボタンの値に基づいてラジオ ボタンを選択しようとしています。分度器 NuGet パッケージをセレン Web ドライバーと共に使用しています。
の定義は含まれていIList<NgWebElement>
ませんElementAt
。
支払いモードに基づいてラジオボタンを選択する方法はありますか?
protractor - afterEach ブロックにアサーションを配置するのは良い習慣ですか?
環境: 分度器、ジャスミン、タイプスクリプト
セットアップが異なり、アサーションが同じであるいくつかのテストがあります。it
a の内部describe
とexpect
afterEach ブロックのアサーションにそれぞれ異なるステップを入力するのは良い習慣ですか?
例: フォームにはphoneNumberField
とsubmitBtn
;が含まれます。
テスト 1: に短すぎる数字を入力phoneNumberField
=>submitBtn
無効になることを期待。
テスト 2: Enter text into phoneNumberField
=>submitBtn
無効になると予想される コード例: