Hello All,
Can anyone help me on ‘How to Upload a File in Headless mode(Chrome)’.
I have tried below step for the same :
1. I have used the upload file keyword which is working fine in ‘Normal’ mode but not in Headless mode.
Keyword :
2. The different way than Custom keyword i have tried is by using a ‘Upload File’ WebUI keyword in script, But it is not working neither in Normal nor in Headless.
3. The third way I have tried by using ‘Send keys’, But same, not working in Normal and Headless.
-
Using second point which is ‘Upload Keyword’, My script is failing and giving error message as below :
-
Using first point which is ‘Upload File’ keyword, script is getting failed and giving error message as ‘Element is not visible’ for the browser popup which will display on the screen to select/browse a file.
Please suggest a resolution for this issue.
Thanks in advance!
Note : ‘Upload File’ custom keyword is getting successfully executed in Normal browser execution