MarcoMonte Posted January 5, 2018 Share Posted January 5, 2018 (edited) 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 DataPower XI52 .rar Edited January 5, 2018 by JLogan3o13 Removed horrible title Link to comment Share on other sites More sharing options...
Somerset Posted January 5, 2018 Share Posted January 5, 2018 (edited) 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 January 5, 2018 by Somerset Link to comment Share on other sites More sharing options...
Draygoes Posted January 5, 2018 Share Posted January 5, 2018 (edited) 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... 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 January 5, 2018 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 More sharing options...
junkew Posted January 6, 2018 Share Posted January 6, 2018 https://www.autoitscript.com/wiki/FAQ 31 and 40 will get you started. Uia automation works fine with edge browser. MarcoMonte 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Danyfirex Posted January 6, 2018 Share Posted January 6, 2018 Hello. If You're using IE UDF you could get all links then check if innertext=Authentication then click the object. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
jdelaney Posted January 7, 2018 Share Posted January 7, 2018 While in IE, send F12, and then there is a tool to focus on the link...that will provide you with the data you need to identify it. 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. Link to comment Share on other sites More sharing options...
MarcoMonte Posted January 8, 2018 Author Share Posted January 8, 2018 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 More sharing options...
MarcoMonte Posted January 8, 2018 Author Share Posted January 8, 2018 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... 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 More sharing options...
MarcoMonte Posted January 8, 2018 Author Share Posted January 8, 2018 On 06/01/2018 at 3:11 PM, junkew said: https://www.autoitscript.com/wiki/FAQ 31 and 40 will get you started. Uia automation works fine with edge browser. Thx, this kind of stuff was unknown to me, I wil give a look for sure, thx again. Link to comment Share on other sites More sharing options...
MarcoMonte Posted January 8, 2018 Author Share Posted January 8, 2018 On 06/01/2018 at 3:11 PM, junkew said: https://www.autoitscript.com/wiki/FAQ 31 and 40 will get you started. Uia automation works fine with edge browser. Hello Junkew, I used your script but I did not get how to use it to be able to click on the link above-mentioned, may you help me please? Report.txt Link to comment Share on other sites More sharing options...
alienclone Posted January 8, 2018 Share Posted January 8, 2018 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 More sharing options...
junkew Posted January 8, 2018 Share Posted January 8, 2018 @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. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
MarcoMonte Posted January 9, 2018 Author Share Posted January 9, 2018 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 More sharing options...
MarcoMonte Posted January 9, 2018 Author Share Posted January 9, 2018 @junkew THX MAN!!! It just works fine!!! I am happy!!! 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