What's new

"Clicking"

  • Thread starter Col2eight
  • Start date
  • Views 302
C

Col2eight

Enthusiast
Messages
74
Reaction score
1
Sooo...I'm making a program (personal use) that goes to a web page and the web page has a list of links.

I want to make the browser (on the click of a button) navigate the first link, check the page for a certain line of text, goes back, navigates to the second link, and repeats the process....

If you didn't understand that...

It will do this (in order):
1. Navigate to the first link
2. Check the page that it was just directed to for a certain line of text
3. Go back
4. Go to the next link down the page
5. Repeat from step one on up to four

Make sense now?


I know it will need timers. Mostly what I need to know is how to get the browser to click the link for me. I'll just let the timers do the rest.
 
D

dschu012

Enthusiast
Frame In Gold Seasoned Veteran
Messages
757
Reaction score
380
Use a regular expression to find all of the links on the page.

Example: C# Scraping HTML Links

Once you have all of the links navigate to them and then check if the page has the line of text your looking for.
 
C

Col2eight

Enthusiast
Messages
74
Reaction score
1
they are links with hash endings. And I want to make the program find them itself because new links are constantly being added.
 
Top Bottom