Bot-Factory 602 Posted August 26, 2010 Report Share Posted August 26, 2010 Hi. I have a page with 4-20 text entry boxes. The amount of boxes can change every time I use the page.It depends on the amount of paragraphs in my article. Here's my challenge. All entry boxes have the same ID. When I then use "Change chosen attribute" my text get's pasted into all text fields. Here's what I want to do:Even if there are multiple text boxes with the same ID, I would like to tell UBOT, only change the attribute of the first text field with that ID and leave all the others alone on the site. Is that possible? Any other solution for that problem? Thanks a lot for your feedbackDan Quote Link to post Share on other sites
IRobot 43 Posted August 26, 2010 Report Share Posted August 26, 2010 Hi Dan, All entry boxes have the same ID.If you mean that all the text boxes have the same ID attribute value, then choose a another attribute which distinguishes the first text box from the rest (i.e. have different values) and select it. 1 Quote Link to post Share on other sites
Bot-Factory 602 Posted August 26, 2010 Author Report Share Posted August 26, 2010 Hi Dan, If you mean that all the text boxes have the same ID attribute value, then choose a another attribute which distinguishes the first text box from the rest (i.e. have different values) and select it. Thanks IRobot, but if that would be possible, I would do it. The only value where I can see a difference is outerhtml. <TEXTAREA id=ArticleParagraphV2 class=name_input rows=16 name=ArticleParagraphV2 jQuery1282809424927="490"></TEXTAREA> But the first value depends on the amount of text boxes. Something I don't know because it changes everytime. The second value is random. Dan Quote Link to post Share on other sites
Bot-Factory 602 Posted August 27, 2010 Author Report Share Posted August 27, 2010 I'm really at the end with my knowledge here :-(I think I tried everything. So if someone has a smart idea, I would really appreciate that. Thanks in advance for you rhelpDan Quote Link to post Share on other sites
Seth Turin 223 Posted August 27, 2010 Report Share Posted August 27, 2010 what about the name attribute? Quote Link to post Share on other sites
Bot-Factory 602 Posted August 27, 2010 Author Report Share Posted August 27, 2010 what about the name attribute? Seth, thanks for your reply. My problem is, that there are 4-8 text boxes on that page with 100% identical parameters. So it's no problem to select the first one. BUT, when I change the content, it get's changed within all 4-8 boxes. But I only want to add text to the first one on the page. Dan Quote Link to post Share on other sites
Seth Turin 223 Posted August 27, 2010 Report Share Posted August 27, 2010 have you tried choose by position? Quote Link to post Share on other sites
theninjamanz 29 Posted August 27, 2010 Report Share Posted August 27, 2010 <TEXTAREA id=ArticleParagraphV2 class=name_input rows=16 name=ArticleParagraphV2 jQuery1282809424927="490"></TEXTAREA> Man, I am cooked. But I think this is achievable. Load the page.$page scrape 16. Set that into a variable. You can then work with that variable? Or do it for the other bit. Basically you can scrape data from the page into a variable and then use that as a trigger for anther action. ps. but perhaps I missed your point completely. Night! 1 Quote Link to post Share on other sites
Bot-Factory 602 Posted August 27, 2010 Author Report Share Posted August 27, 2010 Hi. The problem with choosing a position is, that the amount of text boxes can change. It's an article submission site I try to automate. The amount of text boxes depends on the article. And how many paragraphs the article has. If I have an article with 5 paragraphs, I submit it and on the next page (the one where I have trouble) I have 5 text boxes on the left. One per paragraph. And on the right site if another 5. They are for rewrites. And that are the fields I try to fill. So if there is a way to count the paragraphs of an article, I could calculate the position of the text box. Thanks a lot for your help so far Dan Quote Link to post Share on other sites
JohnB 255 Posted August 28, 2010 Report Share Posted August 28, 2010 Can You provide the url (either here or in PM)? 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.