如何在量角器测试中为select设置值?

时间:2014-11-01 02:58:23

标签: angularjs jasmine protractor

尝试在我的量角器测试中为我的(标题)选择(组合)设置一个新值:

  element(by.model('title')).click().sendKeys('mrs');

但是我收到了这个错误:

 UnknownError: unknown error: Element is not clickable at point (325, 542). Other element would receive the click:..

这是我的选择:

<select name="title" required="" class="form-control ng-pristine ng-valid ng-valid-required" data-ng-model="title" data-ng-options="title.id as title.name for title in titles"><option value="" class=""></option><option value="0">Mr</option><option value="1"> Mrs</option></select>

如何在此测试中设置我的选项?

0 个答案:

没有答案