Need to click a link with no ID.

Recommended Posts

I've been getting help in this forum without ever creating an account but this time I'm lost. I am using Remedy via Web Browser (Firefox) Internet explorer gets crash too often. And I have tried different methods of clicking on a link called (Email System) with no luck. I have used FF.au3, some scripts I have searched here, etc.

As you can see the href= its a javascript. Any help would be appreciated I am running out of pages to look at Ive search (firefox autoit control f and paste; ff.au3 search; ff.au3 click hyperlink.. etc. Below some of the codes I have tried with no luck..

Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Share this post

Link to post

Share on other sites

Both actually change the status but I think that Remedy wants a mouse click instead of replacing the text. If i do it by mouseClick it works. I did an inspect and nothing change if I do it by autoit or manually so it must be a javascript. Is there any function I could use to manipulate the click by mouse? Or any other solution using greasemonkey or anything like that? Thanks a lot!

Share this post

Link to post

Share on other sites

One of my favorites crossbrowser is bookmarklets-javascript thru the addressbar. That way you can reach full HTML DOM in all browsers in the same way and use any property you see in chrome, ie, ff development tools to match your element and do click, read, save etc. with the element (all you can do with javascript is reachable)

See for example below link where I gave an answer on how to click on an image

Share this post

Link to post

Share on other sites

Okay Thanks! I'll test some of those examples to see what I can come up with.

I have another issue and I've been searching for hours. Pretty much what I want is a array of names to assign tickets round robin to technicians. If 3 technicians are on critical incidents then assign the next 3 incidents to one of then I run this with a function call pending(). I will post the whole script of what I have at the end. I have search for "random array no repeat" "array count loop" and different kinds for this site with no luck. Maybe the solution is in front of me but can't find it.. I'm stuck into this as you can see I have a big crazy code but it seems to be working but can't find a way to make a loop work stopping at next ticket and the array issue. If you guys have any ideas please let me know. Thanks!