M
M
Mykyta_M2017-11-21 12:33:10
Python
Mykyta_M, 2017-11-21 12:33:10

How to drag (hold left click) an image to another page using Python, Selenium Webdriver Firefox + other libraries?

Good afternoon!
Please tell me how to do the following:
There are two pages. The first one contains only the image (this is not a website page, but a link to the image). How can I write the next action - click on the image and hold down the left mouse button and drag it to another page in the text editor field. You need to use Python, Selenium Webdriver for Firefox + any other Python libraries if needed. And how, at the same time, to open both pages in selenium, or can this be done somehow sequentially?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Eremin, 2017-11-21
@Mykyta_M

look
at the task, in fact, it’s complicated and confusing,
I would have done it a little differently
1. remember the address of the image on the Internet in a variable
2. go to the page where you want to conduct actions
3. next to the input, insert a picture with src="your link into the page "
for this you need to execute on the js page - like here, for example https://stackoverflow.com/questions/5585343/gettin...
google how to insert a picture with js (it's easy) and execute this script
4. when the picture is added , make it drag'n'drop to input (something like this https://stackoverflow.com/questions/8833835/python...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question