2016-10-13 9 views
0

私は絵を追加するダイアログウィンドウを開き、要素、クリックを持っている:カピバラ:ファイルを添付する方法は?

<div layout="column" class="uploadPhotoActionBlock layout-align-center-center layout-column" layout-align="center center" ngf-select="vm.addPhotos($file)" accept="image/*" ng-hide="vm.product.images.length == 3" aria-hidden="false"> <div flex="" class="plus flex"> + </div> <div flex="" class="text ng-binding flex"> add photo </div> </div>

私は私のテストにこれらのステップを実行する必要があります。

私が試した:

  1. attach_file find.set
  2. クリックボタンを+

何も機能しません(ウィンドウ内をクリック)でクリックしてください。 ブラウザはChromeです。 enter image description here

ありがとう

答えて

1

AddPhotoウィジェットに関連付けられている実際の<input type="file">要素を表示する必要があります(実際の入力はHTMLに表示されません)。その上でattach_fileを呼び出します。通常は、execute_scriptを使用して、入力要素のCSSを調整して見えるようにすることを意味します。

関連する問題