Uploading Data Files - Executing JAVA Script
One of our suppliers have made changes and we are struggling with what appears to be a Java script routine that is executed after a edi data file is uploaded. The session seems to sucessfully upload the data file but the site requires you to click a button to verify the contents of the upload.
The verification code is below:
<a href='?r=y'><img src='https://xxxxx.com//images/buttons/removeFile.png' border='0' /></a>&nbsp;&nbsp;&nbsp;<a href='javascript:doNothing()' onclick='sleepUpload()'><img src='https://xxxxxxx//images/buttons/createOrders.png' border='0' /></a></div>
Is there a way to handle this java script verification step in screen scraper?
Thanks for any help or comments.
have you proxied the button click?
Hi florida_sun,
First, have you opened the screen-scraper workbench and proxied the button click? Most often it will submit an HTTP request which you can find in the proxy and imitate. You would then build an extractor pattern looking for that button and when you find it (after each pattern match - should only match 1 time) submit your own HTTP request which imitates the request of the button using a new scrapable file. Once that new request is processed in the scrapable file it should return the results you are looking for to that new file's request.
I hope that helps
scraper
Problem Fixed
I was finally able to get it to work. I was unable to click the button using the proxy session. The button did not show-up in the proxy session so I was unable to click it to get it to log the http request.
I was able to figure out the http request from the Live HTTP Headers tool. I learned about the tools from reading forum posts here. This is a really handy plug in tool for Firefox.
Here is the link if any body else has a similar problem or wants it to supplement the proxy tool -
http://livehttpheaders.mozdev.org/
Thanks for your help. Screen Scraper is a wonderful tool. I am not sure what I would do without it.
Tim
Tool added to list
Thanks Tim, and I'm glad you got it working.
I've added a link to that tool on our tools page. You can find it here:
community.screen-scraper.com/tools
Thanks
scraper