Jump to content

Trying to click a link in a web page


Recommended Posts

Hello Everybody,

I am trying to click a link in a web page in order to automate a boring process, actually it is a IBM web application named DataPower but this is the same thing.

Unfortunately I cannot click this link.

 

I attached the screenshot and the zipped HTML code, may somebody help me?

Marco

 

link.jpg

DataPower XI52 .rar

Edited by JLogan3o13
Removed horrible title
Link to comment
Share on other sites

Woah! We don't know you well enough to download a compressed file. You are new and subject suspect from others.

Furthermore, you just joined 40 minutes ago.

Change that title to something a lot smaller.

Edited by Somerset
Link to comment
Share on other sites

I was in a position where I could download the archive and test the contents in a virtual machine. Its completely harmless.
That said, @Somerset had a fairly reasonable reaction which you can expect from most people. You will want to be careful about stuff like this. Also yeah, the title is a bit much.

To start automating, it would help if you give us the name of the browser that you will be using. That screen shot looks like edge? But I am not completely sure.

Also, do you have access to all the files? Layout is broken with the html file by itself.

EDIT: I almost forgot to ask this... :mad2:
What have you tried so far? Please post any code you have attempted so that we dont end up having to start from scratch right away.

Edited by Draygoes
Forogt to ask for code...
Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
Link to comment
Share on other sites

Hello. If You're using IE UDF you could  get all links then check if innertext=Authentication then click the object.

 

Saludos

Link to comment
Share on other sites

On ‎05‎/‎01‎/‎2018 at 3:54 PM, Somerset said:

Woah! We don't know you well enough to download a compressed file. You are new and subject suspect from others.

Furthermore, you just joined 40 minutes ago.

Change that title to something a lot smaller.

Sorry guys,
I had no idea about this, of course it is more than comprensible. However I am not here to harm anyone, I am just looking for a help.
I am currently scanning all your suggestions.
Thx a lot to everyone.

Link to comment
Share on other sites

On ‎05‎/‎01‎/‎2018 at 4:13 PM, Draygoes said:

I was in a position where I could download the archive and test the contents in a virtual machine. Its completely harmless.
That said, @Somerset had a fairly reasonable reaction which you can expect from most people. You will want to be careful about stuff like this. Also yeah, the title is a bit much.

To start automating, it would help if you give us the name of the browser that you will be using. That screen shot looks like edge? But I am not completely sure.

Also, do you have access to all the files? Layout is broken with the html file by itself.

EDIT: I almost forgot to ask this... :mad2:
What have you tried so far? Please post any code you have attempted so that we dont end up having to start from scratch right away.

I am using IE, an old version actually (11), but I am not in a position where I can decide which browser use,


and yes I have access to all the files, I tried to download the entire site but once I go to open it the page remain on "loading" and IE does not load anything else, I attached the .zip file however with the entire site, it is harmless but I can understand if you had some thoughts about its dangerousness.
I tried all the example on autoit help file, the major problem is that its link is "?navFrame=false#" and there are several of these links on this page, all the links above like, "Identity extraction", "Authentication"," Credential mapping"," Resource extraction", "Resource mapping", they have all the same link, if I click on one of them with right button and choose "copy link" I will get this for everyone:

"https://192.168.40.248:9090/configure/AAAPolicy/TEST-AAA-INPS/?navFrame=false"

Inspecting the link with F12 I get this:
<DIV class="tab tab-active" id=tabs-Authenticate-tab role=link style="LEFT: 196px; Z-INDEX: 12" onclick="tabs.clickTab('Authenticate');"><SPAN class=tab-wrap-1><SPAN class=tab-wrap-2><SPAN class=tab-wrap-3><A href="#">Authentication</A></SPAN></SPAN></SPAN></DIV>

I have a sort of feeling that the mouse click on link just sends a command to a javascript script and this open the tab...

 

Link to comment
Share on other sites

if using the IE UDF you could try _IELinkClickByText() to scroll through the links until it finds one for " Authentication"

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
Share on other sites

@MarcoMonte the simplespy gives you a base script to start with. Run that one and first try highlight actions to see if your elements are indeed highlighting. The cumbersome part in the initial parent tree given is that some can be left out by commenting them out. That part is alittle trial and error. Examplez.zip in uia thread should give you some guidance.

Link to comment
Share on other sites

12 hours ago, junkew said:

@MarcoMonte the simplespy gives you a base script to start with. Run that one and first try highlight actions to see if your elements are indeed highlighting. The cumbersome part in the initial parent tree given is that some can be left out by commenting them out. That part is alittle trial and error. Examplez.zip in uia thread should give you some guidance.

Thanks a lot,

I will try right today.

Marco

Link to comment
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
 Share

  • Recently Browsing   0 members

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