Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
333 views
in Technique[技术] by (71.8m points)

Selenium Webdriver Python - how do I drag and drop a photo that is in my mac to a web photo upload interface?

How can I drag and drop a photo that in my finder(mac) to a web upload interface (droppable). I attached below the screenshots of the scenarios I want to do and the source code of droppable interface.

I used action chain but I I'm not sure I understand the parameters (source, target)

from selenium.webdriver import ActionChains

action = ActionChains(driver)
action.drag_and_drop('source','target').perform()

Screenshot_1

screenshot_2


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...