简体   繁体   中英

How to upload selected file with Selenium in Python?

I want to upload files to Google Drive, but the < input type = "file"> tag does not exist in HTML. File selection window opens How can I select the file I want in this section?

Pyautogui like so,

hover over your position You want to click

get coordinates

Import pyautogui

Pyautogui.position() Use those coordinates to click Pyautogui.click(x,y)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM