I'm using the Browser library in Robot Framework. For the file upload, I use Upload File By Selector keyword. It opens the popup window where I need to choose the settings and then click save and finish the upload, but it seems like it immediately uploads my image to the website My code:
Images Upload
[Documentation] Click the Image Upload button and choose the image
... In the Image Upload window, choose the corresponding Image Type and Sensor
... Click Save
[Arguments] ${image} ${image_type}
Upload File By Selector ${image_upload_button_loc} ${image_path}
Select Options By ${second_img_type_loc} text ${image_type}
Select Options By ${sensor_loc} text ${sensor_type}
Click ${save_img_loc}
I tried also Promise To Upload File but I don't think it serves like this
${promise}= Promise To Upload File ${image_path}
Click ${image_upload_button_loc}
Select Options By ${second_img_type_loc} text ${image_type}
Select Options By ${sensor_loc} text ${sensor_type}
${body}= Wait For ${promise}
how can i process this script? looking at the log it doesn't let me choose the options popup