D
D
Dmitry Loginov2019-08-11 23:53:32
Python
Dmitry Loginov, 2019-08-11 23:53:32

Is it possible to send a link to several files to the input element using send_key?

There is a task: to upload several photos to the site.

self.driver.find_element_by_xpath('//*[@id="form-group-photo"]/div/div/div[4]/div/input').send_keys("C:\\Python37\\"+str(t)+"\\"+str(1)+".jpg")

One file loads fine. But when you send the second one next, the first one is loaded with it again.
Maybe it's possible to pass all the files to the input element at once, as is done through the dialog box?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-08-12
@Gusik1984

there are no such vershyns who would have been taken

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question