Grumman 0 Posted February 14, 2012 Report Share Posted February 14, 2012 Just picked up the UBot standard edition yesterday in order to automate filling the same form multiple times a day with different information taken from a .csv file. I've run in to a few problems so far. First, the phone number field that I need to fill in separates the area code, first 3, and last 4 digits into separate boxes, but my data is found all in the same box. Second, at the end of the form there is a signature box similar to the one that can be found here: http://www.surveygizmo.com/s3/683306/Signature-Demo-in-MarketplaceI need to be able to take a signature from my site that I receive in the form of html code and plug it in to that sort of box. Below there's a sample of how I receive signatures. And no, it's not a real signature, just squiggles. Here's hoping it shows up as code and not just the image. Any suggestions? <img class=""signature-response"" src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACbCAYAAABMD827AAAUl0lEQVR4Xu2dSe42NxGHv4RA5gGUIASswk3YIC4DOxAcAAQ7uAxiw0mQWCABIhFIGZmhK99bxHG622W77Hbbz196FSXxVE+V/fPU3c884Q8CEIAABCBQQOCZgjxkgQAEIAABCDxBQAgCCEAAAhAoIoCAFGEjEwQgAAEIICDEAAQgAAEIFBFAQIqwkQkCEIAABBAQYgACEIAABIoIICBF2MgEAQhAAAIICDEAARuB/zySyT+fs2UhFQTmJoCAzO1frPMh8O+tGOkrYX+h7/iwpZQbE6AT3Nh5NL0bgf9uNcnK4wuPGkVQno0EpVtjqAgCoxBAQEbxBO0YlcC/HsKx11dEWOhDo3qOdjUnQPA3R0wFNycQrz5icxCRmzuY5pcTQEDK2ZFzfgJnq4/QekRk/ljAwh0CCAhhAYFjAqnVh+a0Cg2sITAVAQRkKndijCOBXFGwio1jEykKAtcSQECu5U/t4xLIFYRcwRnXcloGASMBBMQIimRLESgVg1zRWQoqxs5HAAGZz6dYVE9AhEB+8qxHzl+p8OTUQVoIDEMAARnGFTRkIAI1K4mavAMhoCkQSBNAQNKMSLEeARGBD7ffKwWmyxPr8WtPCoohCwTGJ4CAjO8jWtiXwAdbdS8/RKCk5r9tmZ6vyF9SJ3kgcAkBBOQS7FQ6MAGPcwxZwfzjISQDm0rTIFBHAAGp40fu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RsQeG9ro36BLzzQD5t+NAboFdaa767cAFF1E73fSnCr8yUEpDp+KAACwxMIX1YZN1aviVq/0zK8sRc0MH4rQenW1q3Ew3vp1cpvRzOnVvVRLgQgAIFRCAw9yR+6caN4kHZAAAIQyCRgff3MrW+2ISCZUUFyCEAAAkYCqc8e5LxzzVhl32QISF/e1AYBCKxH4OjVNre/2YaArBfMWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhQAC4oKRQiAAAQisRwABWc/nWAwBCEDAhcD/AP++3Mn/6d64AAAAAElFTkSuQmCC' /> Quote Link to post Share on other sites
JohnB 255 Posted February 14, 2012 Report Share Posted February 14, 2012 Ok, the phone number part is easy (see attached)...as far as the signature...well, it's not looking good at this point. I am trying different things to see if I can get something to work, but so far nothing... Johnphone number.ubot Quote Link to post Share on other sites
Grumman 0 Posted February 14, 2012 Author Report Share Posted February 14, 2012 For anyone looking in to the signature problem, I've realized that I can also get it in .pdf form and change it to whatever else I'll need. Kind of a hassle, but better than nothing. Still can't figure out how to get it into the signature form though regardless of its format. Quote Link to post Share on other sites
JohnB 255 Posted February 14, 2012 Report Share Posted February 14, 2012 We are still looking into a possible solution. It's a first for us (haven't come across those in Ubot until now). John Quote Link to post Share on other sites
odeesuba 24 Posted February 15, 2012 Report Share Posted February 15, 2012 There is something strange in the code, but you can always target the outerhtml set(#sig, $scrape attribute(<outerhtml=w"<img*signature-response*>">, "outerhtml"), "Global") Quote Link to post Share on other sites
Grumman 0 Posted February 16, 2012 Author Report Share Posted February 16, 2012 I've talked with a couple other automation services and the general consensus is that it can be done, it's just that no one knows HOW. I've built 80% of the bot I need now through UBot and it's by far my favorite of the services I've tried. Anyone offer some insight into this? Quote Link to post Share on other sites
JohnB 255 Posted February 16, 2012 Report Share Posted February 16, 2012 Eddie thinks it can be done as well...he needs to dig into the javascript and see exactly what he can do...I'll update here if or when he comes up with something. John Quote Link to post Share on other sites
k1lv9h 76 Posted February 18, 2012 Report Share Posted February 18, 2012 Hi, Working with the test page I came up with this:sig-thing-001.ubot Saved your sample signature from the other post to file: sig-sample.html Regards,Kevin Quote Link to post Share on other sites
Grumman 0 Posted February 22, 2012 Author Report Share Posted February 22, 2012 I have to admit that I'm having trouble with the signature on the site itself, but I've only had time to give it a quick try. I've run in to another issue. Now, I know I can do this, but the WAY I'm writing the logic seems unnecessarily convoluted. Here's the issue: I have all the previous employment data on a csv, same with all the other information. That data is getting plugged in to the form one cell at a time. The form is set up like Job 1 (employed/unemployed, questiona1, questionb1, questionc1). Add a new job and it's now Job 2(employed/unemployed, questiona2, questionb2, questionc2) etc. etc. You can add 8 unemployed and 8 employed sections, totaling 16 possible entries, each with their accompanying questions. The issue is that I can get 1-8 employed and 1-8 unemployed. I tried writing logic that looks like this: 1 Employment 12 If Employment 2 exists Then Employment 2 Else <blank>3 If Employment 3 exists Then Employment 3 Else <blank>...9 Unemployment 110 If Unemployment 2 exists Then Unemployment 2 Else <blank>No go. Suppose there were only 2 employment fields that needed filling and then on to the unemployment fields. Currently, Unemployment 1's data is referencing field questiona9 when it needs to reference field questiona3. So my logic currently looks something like this: 1 Employment 12 If Employment 2 exists Then Employment 2 Else Unemployment 13 If Employment 3 exists Then Employment 3 Else If Employment 2 Exists Then Unemployment 1 Else Unemployment 2...7 if Employment 7 exists Then Employment 7 Else If Employment 6 exists Then Unemployment 1 Else If Employment 5 exists Then Unemployment 2 Else If Employment 4 exists Then Unemployment 3 Else If Employment 3 exists Then Unemployment 4 Else If Employment 2 exists Then Unemployment 5 For 18 possible different outcomes, that's a LOT of code. So I turn to U' for help. 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.