これはoi.selectのテンプレートhtmlです。分度器とoi.selectオプションをクリックしてください。
<oi-select class="oi-select"
oi-options="group.name for group in groups track by group._id"
multiple placeholder="" ng-model="selectedGroups">
</oi-select>
私はそれが唯一のオプションをクリックtest.js
element(by.model('selectedGroups')).click().then(function() {
element.all(by.repeater("(group, options) in groups"))
.then(function (guests) {
guests[0].click();
});
});
に次のコードを試してみました。 guests[0].getText()
はすべてのグループ名ラベルを付与します。あなたがそれを前に解決してくれたら助けてください。私はselectの多くの例を試しましたが、特定したoi.selectはありません。ありがとう。
。 – wswebcreation
利用可能なすべてのオプションをクリックしますか? –
@wswebcreationはい、私は1つのオプションしか選択できません。それは無作為のようです。 –