jdelaney Posted October 1, 2014 Posted October 1, 2014 (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 October 1, 2014 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.
JohnOne Posted October 1, 2014 Posted October 1, 2014 It doesn't work. What does it mean? It means this... Websites are not stupid and they stop people from automating them. Sometimes they win, sometimes they lose/ AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Mojo123 Posted October 2, 2014 Author Posted October 2, 2014 (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 October 2, 2014 by Mojo123
Mojo123 Posted October 9, 2014 Author Posted October 9, 2014 (edited) My Problem is the dynamic session-ID. This is my URL_Structure: http://bookingboard/(SESSION_ID)/Module/Report.aspx Is it possibile to search for a part of my url with stringbetween and click it? jdelaney suggestion didn't work. Edited October 9, 2014 by Mojo123
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now