Jump to content
UBot Underground

Select by Atribute


Recommended Posts

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 feedback

Dan

Link to post
Share on other sites

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.
  • Like 1
Link to post
Share on other sites

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

Link to post
Share on other sites

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 rhelp

Dan

Link to post
Share on other sites

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

Link to post
Share on other sites

<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.

 

:P

 

ps. but perhaps I missed your point completely. Night!

  • Like 1
Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...