Upload file to Google Drive

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
techimac
Posts: 318
Joined: Fri Feb 20, 2015 9:27 pm

Upload file to Google Drive

Post by techimac » Sun Mar 29, 2020 1:42 pm

want to upload file to Google Drive and then right click on uploaded file and open with Google Doc

Code to upload
Can't close dialog box

Code: Select all

EVENT TYPE=CLICK SELECTOR="#drive_main_page>DIV:nth-of-type(2)>DIV>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>BUTTON" BUTTON=0
EVENT TYPE=CLICK SELECTOR="#\\:5f>DIV>SPAN:nth-of-type(2)>SPAN>DIV" BUTTON=0
TAG POS=1 TYPE=INPUT:FILE ATTR=* CONTENT=C:\Users\a\Downloads\File.png
and can anyone write code to right click on uploaded file and open with Google Doc

Image

Firefox 56
iMacros 8.9.7
Windows 8.1
techimac
Posts: 318
Joined: Fri Feb 20, 2015 9:27 pm

Re: Upload file to Google Drive

Post by techimac » Sun Mar 29, 2020 9:36 pm

Need code to click Open or send shortcut ctrl + o

Code: Select all

EVENT TYPE=CLICK SELECTOR="#docs-file-menu" BUTTON=0
WAIT SECONDS=1
EVENT TYPE=CLICK SELECTOR="#\\:7t>DIV>SPAN" BUTTON=0
7t is changing and I cant access HTML to source to extract that number

Image

Code: Select all

EVENT TYPE=KEYPRESS SELECTOR="#docs-menubar" Char="O" MODIFIERS="ctrl"
This doesnt works
Post Reply