Posted on 2012-08-24
Last Modified: 2012-08-30
Hi, I have a list of items that are randomly generated by the server each time the page is accessed.


      <li><a href="">MAINCAT1</a></li>
         <li><a href="">SUBCAT1 OF MAINCAT</a></li>
            <li><a href="">Subitem 1 of SUBCAT1 of MAINCAT1</a></li>
            <li><a href="">Subitem 2 of SUBCAT1 of MAINCAT1</a></li>
            <li><a href="">Subitem 3 of SUBCAT1 of MAINCAT1</a></li>
         <li><a href="">SUBCAT2 OF MAINCAT</a></li>
            <li><a href="">Subitem 1 of SUBCAT2 of MAINCAT1</a></li>
            <li><a href="">Subitem 2 of SUBCAT2 of MAINCAT1</a></li>
         <li><a href="">SUBCAT3 OF MAINCAT1</a></li>
      <li><a href="">MAINCAT2</a></li>
         <li><a href="">SUBCAT1 OF MAINCAT2</a></li>
         <li><a href="">SUBCAT2 OF MAINCAT2</a></li>
         <li><a href="">SUBCAT3 OF MAINCAT2</a></li>
            <li><a href="">Subitem 1 of SUBCAT3 of MAINCAT2</a></li>
            <li><a href="">Subitem 2 of SUBCAT3 of MAINCAT2</a></li>

Open in new window

So, now I need the program to:

Remember main category (for example: MAINCAT1), then go to url

Once it's done, it then has to search for stuff within that category.

It should then got to: OF MAIN CAT1&maincat=MAINCAT1

Then, it should find sub cats of "SUBCAT1 OF MAINCAT" if there are any and go to: 1 of SUBCAT1 of MAINCAT1&subcat=SUBCAT1 OF MAINCAT&maincat=MAINCAT

Thank you.
Question by:VAL1N
    1 Comment
    LVL 96

    Accepted Solution

    If you need to parse HTML, then I would look at the HTML Agility Pack.

    Html Agility Pack

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now