Jump to content
Sign in to follow this  

Check for first 28 chars of a url string then click url

Recommended Posts

Hi there! N00b here so if anyone can help that would be awesome!

This is I'm looking for

Script that checks for the first 28 chars or a URL on a page, then clicks the URL and proceeds to the next

something like

go to page (www.thisisit.com)

if left(url,28)="http://www.test.com/test.php"


click (url)


If you need more info just lmk

thanks a million!


Share this post

Link to post
Share on other sites

  • _IE* functions
  • StringInStr
  • StringLeft

thanks but I did try before I posted

I got the sample script but it only works with text ON the site not with URLs, did also try inner outer html couldnt get it to work

Any ideas?

Used this script but cant get it to work...

$sMyString = "http://www.qwerty.com/qwerty"

$oLinks = _IELinkGetCollection($oIE)

For $oLink in $oLinks

$sLinkText = _IEPropertyGet($oLink, "outerhtml")

If StringInStr($sLinkText, $sMyString) Then

_IEAction($oLink, "click")




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...