alfa Posted March 5, 2012 Share Posted March 5, 2012 Hello, I am trying to click a link in IE. I have tried _IELinkClickByText ($oIE, "Clarify_Nike") $oSubmit = _IEGetObjByName ($oIE, "Clarify_Nike") _IEAction ($oSubmit, "click") But couldnt manage to do it. <div id="iconViewDiv"> <div class="iconView"> <p> [color=#ff0000] <a id="appLink_0" href="launcher.aspx?NFuse_Application=Citrix.MPS.App.ctxmasd01.Clarify_Nike&NFuse_Token=795ec33dcfa84275bea23389d5a6d3c" target="launchFrameWI_Cczr8jTOLkgC5yOBl" onClick="resetSessionTimeout();clearFeedback();addCurrentTimeToHref(this,'launcher.aspx?NFuse_Application=Citrix.MPS.App.ctxmasd01.Clarify_Nike&NFuse_Token=795ec33dcfa84275bea23389d5a6d3c','LaunchId');" onMouseDown=" addCurrentTimeToHref(this,'launcher.aspx?NFuse_Application=Citrix.MPS.App.ctxmasd01.Clarify_Nike&NFuse_Token=795ec33dcfa84275bea23389d5a6d3c','LaunchId');" class="iconLink" title="Clarify_Nike"[/color] The link i need to click is here. Can anyone advice a way to do it ? Thanks in advance. Link to comment Share on other sites More sharing options...
Mechaflash Posted March 5, 2012 Share Posted March 5, 2012 I think you failed to insert the link Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
alfa Posted March 6, 2012 Author Share Posted March 6, 2012 I meant The link i need to click. I didint give an actual link. Since it is a intraweb link Link to comment Share on other sites More sharing options...
Robjong Posted March 6, 2012 Share Posted March 6, 2012 Try clicking it by ID, but it might well be none of these methods will work correctly due to the onclick and onmousedown events. $oSubmit = _IEGetObjById($oIE, "appLink_0") _IEAction($oSubmit, "click") alfa 1 Link to comment Share on other sites More sharing options...
alfa Posted March 8, 2012 Author Share Posted March 8, 2012 It worked Thank you very much Robjong Link to comment Share on other sites More sharing options...
xeroTechnologiesLLC Posted March 15, 2012 Share Posted March 15, 2012 alfa, just as a suggestion from my own little experience of trying to do anything to IE.... whenever you can reference the object by ID or name - do so. It's far more controllable. Radio buttons and if you ever have to fight with MacShare, it's total hell, but Firefox addon's can help you get all the information about the control you will need to manipulate the IE window. I just spent 2 months building a program for our network outage team to help reduce the time it takes to create outage tickets and a lot of the process involved IE and macshare both. I wrote it where parts of it were visible and parts invisible for specific reasons and the invisible part - to be 100% accurate - obviously has to go by control id or name. hope this helps for future work. i'm working on a lot of intranet applications for my job as well. Link to comment Share on other sites More sharing options...
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