SWFUpload to upload files to website using PowerShell -


i trying use powershell automate process of loading files website.

the process has 4 steps. have automated first 3 steps of process using getelementbyid fill values of textboxes , click buttons. fourth step uploads files. website uses swfupload upload files. cannot figure out how trigger (fire event) swfupload in powershell. can trigger other buttons using .click() method, not work upload button. suspect because isn't button, swfupload utility (type=application/x-shockwave-flash).

does know how trigger in powershell? can provide html coding , powershell script. have referenced website below, seems show how create swfupload in javascript, not powershell.

https://www.chem.umn.edu/groups/gladfelter/blade_packs/system_ckeditor/plugins/pgrfilemanager/swfupload%20v2.2.0.1%20core/documentation/#swfupload

i did not find way work swfupload in powershell, able find 3 work-arounds.

1.) sendkeys 2.) mouse-click function via power shell : how send middle mouse click? 3.) wasp https://wasp.codeplex.com/

i chose use sendkeys because use mouse click, must move mouse. possible, easy nudge mouse re-posisiton mouse off of button.

sendkeys allows user send keyboard keys computer without user acutally doing anything. used sendkeys tab "upload button", click it, navigate thru open file dialog box select files, , click open button complete upload.

there drawbacks sendkeys, however. sendkeys send key(s) window in foreground. if running script , computer sends pop-up message in middle of it, sendkeys send keystrokes pop-up message.

sendkeys syntax: http://blogs.technet.com/b/heyscriptingguy/archive/2011/01/10/provide-input-to-applications-with-powershell.aspx


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -