Jump to content
Sign in to follow this  
alfa

Trying to click a link in IE.

Recommended Posts

alfa

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&amp;NFuse_Token=795ec33dcfa84275bea23389d5a6d3c" target="launchFrameWI_Cczr8jTOLkgC5yOBl" onClick="resetSessionTimeout();clearFeedback();addCurrentTimeToHref(this,'launcher.aspx?NFuse_Application=Citrix.MPS.App.ctxmasd01.Clarify_Nike&amp;NFuse_Token=795ec33dcfa84275bea23389d5a6d3c','LaunchId');" onMouseDown=" addCurrentTimeToHref(this,'launcher.aspx?NFuse_Application=Citrix.MPS.App.ctxmasd01.Clarify_Nike&amp;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.

Share this post


Link to post
Share on other sites
Mechaflash

I think you failed to insert the link :oops:


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.”

 

Share this post


Link to post
Share on other sites
alfa

I meant The link i need to click. I didint give an actual link. Since it is a intraweb link :oops:

Share this post


Link to post
Share on other sites
Robjong

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")
  • Like 1

Share this post


Link to post
Share on other sites
alfa

It worked :oops: Thank you very much Robjong :bye:

Share this post


Link to post
Share on other sites
xeroTechnologiesLLC

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.

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  

×