Results 1 to 2 of 2

Thread: Can I use VB to do search in Chrome?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2018
    Posts
    12

    Can I use VB to do search in Chrome?

    If I want to use VB to control Chrome to do a local search "Ctrl + F" type of search to find out the location of the specific words in a webpage. How to do that?

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,989

    Re: Can I use VB to do search in Chrome?

    Well, you could, but it may not be advisable. Anything that involves scraping web pages runs into loads of problems. Web pages keep changing. You might have to jump through a lot of hoops to get it to work right, only to find that it doesn't work the next day because what you were looking at is no longer what it was. A web page is fundamentally text, so searching it would be kind of like searching a string. There was a time when that was all there was to it. That time has been long gone. What remains is a bunch of dynamically loaded, and dynamically changeable stuff. For this reason, web scraping should be considered an absolute last resort.

    If you tell us more about what you are trying to ultimately accomplish, we might be able to suggest a more reliable way to approach it.
    My usual boring signature: Nothing

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width