kamran 0 Posted March 10, 2010 Report Share Posted March 10, 2010 Hey guys,i ran across a problem i need help. I am trying to choose a form field by attribute and have it do it in the same way for several websites running the same script. The problem is, the attribute is different from website to website. For example, the first website would have the "First Name" field attribute as "ht_field_id_8", the next website would have it as "ht_field_id_1". I cant use wildcards because that chooses all the fields first name,last name, username etc...all of them have the attribute as "ht_field_id_*" where * is some number. I cant choose by any other attributes as they are same for all the fields. I cant choose by position as that changes from website to website.What do I do? Any solution would be very much appreciated. More info: This is how source code of the first name part of the form looks like: <TR><TD style="WIDTH: 45%" class=tableCellTwo><DIV class=defaultBold><SPAN class=highlight>*</SPAN> First Name</DIV></TD><TD style="WIDTH: 55%" class=tableCellOne><INPUT style="WIDTH: 300px" class=input maxLength=100 size=40 name=ht_field_id_8></TD></TR> Quote Link to post Share on other sites
crazyflx 22 Posted March 10, 2010 Report Share Posted March 10, 2010 If all the sites have the first name field labeled as "First Name" and the source code is all pretty much the same with the exception of the id field being labeled a different number, you could always do this: outerhtmlchoose attribute by*First Name* Quote Link to post Share on other sites
kamran 0 Posted March 12, 2010 Author Report Share Posted March 12, 2010 If all the sites have the first name field labeled as "First Name" and the source code is all pretty much the same with the exception of the id field being labeled a different number, you could always do this: outerhtmlchoose attribute by*First Name* Thanks for taking the time to reply. However, it still did not work. The outer HTML contains only <INPUT style="WIDTH: 300px" class=input maxLength=100 size=40 name=ht_field_id_8> and if i click on <INPUT> and choose TR the outer HTML can be chosen but that doesnt work. Any other suggestions? Quote Link to post Share on other sites
crazyflx 22 Posted March 12, 2010 Report Share Posted March 12, 2010 I could probably be of more help if you gave me two (or more) different sites to check out. That way I could compare the two and see what common ground they have (if any). Quote Link to post Share on other sites
kamran 0 Posted March 12, 2010 Author Report Share Posted March 12, 2010 Here are three example webisteshttp://www.hottopicshotserials.com/index.php/member/register/http://www.pluslicens.ru/index.php/site/sign_up_for_access/http://www.agncn.org/index.php/member/register/ Quote Link to post Share on other sites
kamran 0 Posted March 13, 2010 Author Report Share Posted March 13, 2010 I am getting desperate, cant ubot fill in the box using the attributes of the circled part?....even roboform can do this, so ubot must be having this capacity, its just that i cant figure it out...someone please help me...I have gotten tired of trying http://img638.imageshack.us/img638/2764/firstname.png Quote Link to post Share on other sites
crazyflx 22 Posted March 13, 2010 Report Share Posted March 13, 2010 After looking this over pretty extensively, I'm afraid I couldn't come up with a way that you could make one script and have it work for all the sites. The good news is, that uBot doesn't have any problem filling these fields. You just have to make an individual script or sub for each site. Quote Link to post Share on other sites
kamran 0 Posted March 14, 2010 Author Report Share Posted March 14, 2010 Thanks for taking the time crazyflx. I appreciate it very much 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.