Hi, I have encountered issue which when I wanted to upload file using chrome browser, it will pop up the open windows twice (in red box) but this issue is not happening when using firefox:
I have set this file path in my test data:
Column Name: DocumentPath
DocumentPath = C:\Users\Jess\Pictures\Saved Pictures\17394.jpg
And in the test case, I have added the following code:
CustomKeywords.‘com.javascript.handling.utilities.uploadFiles.uploadFile’(findTestObject(‘Patient Registration/Page_Emergency Visit Registration/btn_UploadDocument’),
DocumentPath.replaceAll(’\\\\’, ‘\\’))
Below is what I have added in custom keywords:
Appreciate if anyone can help on this.