javascript - Search Page from CSV File and Select Relative Positioned Radio Button -
summary
i using imacros pull data csv file , input data according fields (i.e. username, password, first name, last name, email, etc.)
the page looks this:
http://oi58.tinypic.com/2q3uonc.jpg
problem
my whole problem taking information company name csv file, using search page specific text, , point use relative positioning allow macro check according radio button next table row. table dynamic not same. have macro extract table csv file can search company , use pos number off line in csv file easier radio button checking.(the extraction isn't clean be, that's question in itself. can clean manually now. there unneeded blank spaces in extract makes pos information scrambled , unreliable.)
note: can switch excel, kind of wanted anyways due organization , being able cleanly see data being pulled. kind of stuck because of compatibility firefox.
question
in short question this: best way search page specific keywords csv file , fill corresponding radio button using relative position or similar?
i have discovered pos number each of rows in table same adjacent radio buttons. stuck @ point. feel possibly can't done in csv or basic imacros functions. have enterprise edition, excel , programming language work. presume take javascript need to. being newbie @ programming wont know how each language interacts compared another.
p.s. if @ possible use macro firefox, website has compatibility issues internet explorer chrome. taking can @ point.
here code far:
version build=10022823 tab t=1 tab closeallothers url goto= set !datasource c:\users\blake\downloads\input.csv set !loop 1 set !datasource_line {{!loop}} frame name=detail tag pos=1 type=input:text form=name:form1 attr=name:susername content={{!col1}} set !encryption no tag pos=1 type=input:password form=name:form1 attr=name:spassword content=password1 tag pos=1 type=input:text form=name:form1 attr=name:snamefirst content={{!col3}} tag pos=1 type=input:text form=name:form1 attr=name:snamelast content={{!col4}} tag pos=1 type=input:text form=name:form1 attr=name:semail content={{!col5}} tag pos=1 type=input:text form=name:form1 attr=name:sphonenumber content={{!col6}} tag pos=1 type=input:text form=name:form1 attr=name:sfaxnumber content={{!col7}} tag pos=1 type=input:checkbox form=name:form1 attr=name:bforceusertochangepassword content=yes tag pos=1 type=input:checkbox form=name:form1 attr=name:copyroles content=yes tag pos=1 type=* attr=txt:{{!col10}} extract=txt prompt {{!extract}} tag pos=r1 type=input:radio form=name:form1 attr=name:enterpriseoid content=yes input.csv file
#userid#,#password#,#firstname#,#lastname#,#email#,#phonenumber#,#faxnumber#,#forcedpasschange?(ie.yes;no)#,#copyroles?(ie.yes;no)#,#destination company(ie.malarkey roofing products (malhic))see table of companies.csv# exampleuser,examplepass,examplefirstname,examplelastname,exampleemail@gmail.com,555-555-5555,555-none-none,no,yes,malhic exampleuser,examplepass,examplename,examplelastname,exampleemail@gmail.com,555-555-5555,555-none-none,no,yes,malarkey html table row
<td class="detailbodytableroweven" style="border-width: 0px 0px 1px; border-style: solid; border-color: white;"> <input name="enterpriseoid" type="radio" value="134305050665"> 1000 bulbs (100hic)</td> due information being business intensive had edit pictures apparent usernames , such. upload edited test page if question gets action.
thank reading book of question! didn't know how summarize in better way due nature of question.
figured out! after week of testing different snippets of code , whole lot of trial , error!
tag pos=1 type=td attr=class:detailbodytableroweven&&txt:*{{!col10}}* extract=txt i feel idiot asking question begin now. problem solved :)
Comments
Post a Comment