Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97797

Upload file via selenium if 3rd party api service is using to upload file

$
0
0

Here is page im trying to upload file with selenium/python

<div class="form-group-inner photo-form-group-inner success icn-item"><span class="label">Photo ID</span><div class="photo-label-wrapper"><div class="photo-label btn_fix-width"><label for="photo" class="btn btn_fix-width btn_block border photo-btn">Upload</label></div></div><input type="file" id="photo" accept=".jpg,.jpeg,.png"></div>

I tried it via sendkeys Tried to change file type to text and apply path as well. In additional upload uses 3rd party service via api request to store images. While writing this post figured out that could try to send api request to get uploaded file code but how to put it to the page field css item in this case?

Thanks.


Viewing all articles
Browse latest Browse all 97797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>