Jump to content
UBot Underground

Selecting a month in SELECT element


Guest pr0n1x

Recommended Posts

http://forums.bellaonline.com/ubbthreads.php/ubb/newuser

 

I need to select a month like August, to do this?

 

That is, should I choose in the list, not least, the VALUE of a value which lies in the element OPTION

 

have you tried selecting the month manually then drag and drop it in the build node area?

or are you wanting a random selection?

Link to post
Share on other sites

have you tried selecting the month manually then drag and drop it in the build node area?

or are you wanting a random selection?

 

just when I take it and drag, then the choice can only be done from the list below

1

2

3

4

5

6

7

8

9

10

11

12

 

and I need to choose the name of the month

Link to post
Share on other sites

Ok, back up for a minute. HOW do you want to choose the month? From a list box, etc? The number is the value assigned to the name and can be used in place of the name to choose the month, but we first need to know what method you plan on using. Thanks.

 

John

Link to post
Share on other sites

I have a cvs file, where data is stored on the user, I go to the web site (not one) and in a field where I need to select a month, I compare what month I have found in the file and the appropriate month should be selected list. The problem is that, at different sites in the list of months, they may be numbered differently, such as 1.2.3.4.5, or jan.feb.mar.apr.may.jun or another.

Link to post
Share on other sites

That's correct, and unfortunately you will have to code each and every site accordingly. The good news is you can use the same 12 if/then statements as a base and from there just change the "change chosen attribute" to whatever it is on that site. The other issue you may encounter is whether or not each month is entered in the csv file in the same manner every time. Remember, "august" is not the same as "August" in UBot.

 

John

Link to post
Share on other sites

can you understand me wrong. but I want to see if you can make the following script. SELECT selects an item at a time to review every value in it, and if one of the values coincide with my value to be stored in a file, then choose this month?

Link to post
Share on other sites

I understand what you want to do. Unfortunately, there is no easy way to do it. You can scrape everything within the <select> tags to a variable and then see if your table cell entry matches anything in that text, but again, to find a universal way of handling this across various sites and different scripting is a daunting task. Also scraping the dropdown becomes more complex when there is more than one dropdown on a page. It's not that it can't be done, but you have a lot of coding ahead of you to accomplish it.

 

John

Link to post
Share on other sites

Try this

 

Thank you. This works only when I need to pick a random value. And if I want to add articles to article directories, such as losing weight, I can not choose a random value, I need to find the appropriate category.

Link to post
Share on other sites

Select the month like you would any other element, then in the next node use 'send keys field chosen' and when asked to supply a string use the visible month name exactly as it is shown in the dropdown.

WoW

Thanks

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