Hi, I’m having issues with this field where I have to upload a file
I suppose to click on bot choose the file and soon as I click on it sends
the problem is choose file does not allow that to happen, I do see that the file is attached on the field but it keeps waiting for the action on click
here is what I got
> <div class="row marginTop">
> <div class="form-group">
> <div class="form-group col-md-4 text-center">
> <span class="file-input-wrapper btn btn-info btn-block" id="btnAnexarNotaTecnica">
> Anexar Nota Técnica
> <input type="file" id="anexarNotaTecnica" name="anexarNotaTecnica" data-url="/ecm/upload" onclick="formController.controlarBotoesAnexo(this, AcaoAnexo.ANEXAR, 'notaTecnica');" style="height: 100%; width: 100%;" value="">
> </span>
> </div>
> <div class="form-group col-md-4 text-center">
> <button type="button" id="visualizarNotaTecnica" onclick="formController.controlarBotoesAnexo(this, AcaoAnexo.VISUALIZAR, 'notaTecnica')" class="btn btn-block btn-success" disabled="">Visualizar
> Nota Técnica</button>
> </div>
> <div class="form-group col-md-4 text-center">
> <button type="button" id="excluirNotaTecnica" onclick="formController.controlarBotoesAnexo(this, AcaoAnexo.EXCLUIR, 'notaTecnica')" class="btn btn-block btn-danger" disabled="">Excluir
> Nota Técnica</button>
> </div>
> </div>
> </div>
and here is the robot part where I tried to deal with this field
# #Wait Until Element Is Visible ${CLICAR_NOTA} # # Click Element ${CLICAR_NOTA} # # Press Keys ${CLICAR_NOTA} ${CURDIR}/teste.pdf # #Execute Javascript formController.controlarBotoesAnexo(this, AcaoAnexo.ANEXAR, 'notaTecnica'); # Execute JavaScript formController.controlarBotoesAnexo(this, AcaoAnexo.ANEXAR, 'notaTecnica'); document.getElementById("anexarNotaTecnica").onclick() # Click Element ${CLICAR_NOTA} # Execute JavaScript arguments[0].style.display='block'; ${CLICAR_NOTA} Choose File ${CLICAR_NOTA} ${CURDIR}/teste.pdf Submit Form css:form[name="form"] Wait Until Element Is Visible ${CLICAR_NOTA_TECNICA} Click Element ${CLICAR_NOTA_TECNICA}