Jump to content

Recommended Posts

Posted (edited)

You can loop through the links, and use a regexp to validate the url, while skipping the sessionID.

When matched, that's your link.

Or, you can use my signture, and use an xpath that 'contains' the stale part of your href...on second though, not sure if I handle frames in my sig.  Would be a good enhancment to it...I'll give it a look, later.

But try this for now:

$aLink = BGe_IEGetDOMObjByXPathWithAttributes($oFrame,"//a[contains(@href,'/Report/Report.aspx')])"
_IEAction($aLink[0],"click")
Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Posted (edited)

 

You can loop through the links, and use a regexp to validate the url, while skipping the sessionID.

When matched, that's your link.

Or, you can use my signture, and use an xpath that 'contains' the stale part of your href...on second though, not sure if I handle frames in my sig.  Would be a good enhancment to it...I'll give it a look, later.

But try this for now:

$aLink = BGe_IEGetDOMObjByXPathWithAttributes($oFrame,"//a[contains(@href,'/Report/Report.aspx')])"
_IEAction($aLink[0],"click")

 

Thanks but it doesn't works. 

MissionImpossible... :(

Edited by Mojo123

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...