tinku 6 Posted April 7, 2017 Report Share Posted April 7, 2017 How to upload a audio,video, ppt or PDF file to a website which have Java script uploader or drag and drop option in file browse option , I am facing problem to uploading these files which have above mentioned extension,i am attaching all files on which I am working please provide a solution to upload file. Below is the code:-ui text box("Email:",#Email)ui text box("Password:",#Password)ui open file("Upload File:",#Upload)clear cookiesnavigate("https://www.4shared.com/","Wait")click($element offset(<login button>,2),"Left Click","No")wait(2)type text(<name="login">,#Email,"Standard")type text(<password field>,#Password,"Standard")wait(1)click($element offset(<login button>,0),"Left Click","No")wait(4)click(<id="arrowUpload">,"Left Click","No")change file field($element offset(<id="tfid1">,1),#Upload) Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted April 8, 2017 Report Share Posted April 8, 2017 Hi, You can tryallow javascript("No") and/orchange the user agent to an older browser versionset header("User Agent","some user agent string") and/oruse browser 21 instead of 49 and use its user agentsset user agent("Internet Explorer 6") http://www.useragentstring.com/pages/useragentstring.php Regards,NIck 1 Quote Link to post Share on other sites
tinku 6 Posted April 13, 2017 Author Report Share Posted April 13, 2017 I have applied all your mentioned method but none is working my problem remains same , if it possible would you like to hint the scripts , or any plugins required ,or code to be change in advance element editor? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.