oricoun 4 Posted October 7, 2015 Report Share Posted October 7, 2015 Guys, Girls with exbrowsers plugin. I would like to ask you for helpI am trying to upload pics into a classified ads web: If I navigate herehttp://www.bazar.sk/pridanie-neprihlaseny/Select category, next step subcategory, and after that I am trying to upload pic http://imgur.com/sCFLzVz change file field(<id="uploadPhotoButton">, "pathtopicture.jpg") That opens out dialog window, completely wrong image path. Thanks for help. Quote Link to post Share on other sites
giganut 109 Posted October 7, 2015 Report Share Posted October 7, 2015 I tried to help but everything is not translating correctly, not really willing to give that site all my info either, can the upload be completed without registration? Quote Link to post Share on other sites
oricoun 4 Posted October 7, 2015 Author Report Share Posted October 7, 2015 Yeah upload is possible without regisstration: set(#l, $plugin function("ExBrowser.dll", "$ExBrowser Set Browser Language", "English"), "Global")plugin command("ExBrowser.dll", "ExBrowser CleanUp")plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "")plugin command("ExBrowser.dll", "ExBrowser Navigate", "http://www.bazar.sk/pridanie-neprihlaseny/")plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "<class=\"mainCat\">", "Appear", 2)plugin command("ExBrowser.dll", "ExBrowser Click", "<rel=\"14\">")plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "<onclick=\"setCatId(431)\">", "Appear", 2)plugin command("ExBrowser.dll", "ExBrowser Click", "<onclick=\"setCatId(431)\">")wait(2)plugin command("ExBrowser.dll", "ExBrowser Change File Field", "<id=\"uploadPhotoButton\">", "pathtofile.jpg") If this can help Quote Link to post Share on other sites
Bot-Factory 602 Posted October 8, 2015 Report Share Posted October 8, 2015 Yeah upload is possible without regisstration: set(#l, $plugin function("ExBrowser.dll", "$ExBrowser Set Browser Language", "English"), "Global")plugin command("ExBrowser.dll", "ExBrowser CleanUp")plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "")plugin command("ExBrowser.dll", "ExBrowser Navigate", "http://www.bazar.sk/pridanie-neprihlaseny/")plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "<class=\"mainCat\">", "Appear", 2)plugin command("ExBrowser.dll", "ExBrowser Click", "<rel=\"14\">")plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "<onclick=\"setCatId(431)\">", "Appear", 2)plugin command("ExBrowser.dll", "ExBrowser Click", "<onclick=\"setCatId(431)\">")wait(2)plugin command("ExBrowser.dll", "ExBrowser Change File Field", "<id=\"uploadPhotoButton\">", "pathtofile.jpg") If this can help Hello. I didn't test the code, but three things that jumped out are: 1.The set browser language option is not correct. Please look at the chrome documentation on how to set the browser language via Command Line.The Option for GB Englisch is en_GB for example. 2. There is no path to the JPG file. Without a path, it can't find the file3. You use the id= uploadPhotoButton to set the file path. Is that really the element where the file value is normally stored? This looks like this is the button where you click afterwards. Normally this isn't the correct element to use here. But you see that in the html debugger when you do it manually. Select the file and before you click the upload button, you look where the path to your jpg file is stored. And that's the element you have to change. Dan Quote Link to post Share on other sites
oricoun 4 Posted October 8, 2015 Author Report Share Posted October 8, 2015 Hi, Problem is that after running this code /path to the file is correct/ I ended up with this: http://i.imgur.com/VnXbTE3.png/just opened dialog widow/Bizzare thing is, that even if I change path and I wanna upload different picture, it is still the same path, without grabing that particular file. Problem also is, that there is no upload button. Once you select correct file, it will autoupload it. Without exbrowser plugin change file field works without any problem, but the file keeps spinning and uploading without actually being uploaded. http://i.imgur.com/wkfkSEK.png Quote Link to post Share on other sites
Bot-Factory 602 Posted October 8, 2015 Report Share Posted October 8, 2015 Looks like the site is using a JavaScript uploader for the pictures. I played around with it a bit but wasn't able to get it working. There are so many variations and techniques out there, so that not all techniques are able to solve a problem. It might be that the current version of ExBrowser can't solve this upload problem.At least not on his own. You need something to automate that file upload dialog window.Dan Quote Link to post Share on other sites
oricoun 4 Posted October 10, 2015 Author Report Share Posted October 10, 2015 Thanks for looking into it Dan. Cheers, 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.