Patil Posted June 21, 2013 Share Posted June 21, 2013 Hi, I trying to automate some of the operations of https web page, but unfortunately i am not able to view any objectID/object name of that web page, as it been developed/showing java script in view source. Please let me know how can i use Auto IT do the operation on these pages ? First page is Login page which is having User Name & Password field with the Login buton enabled but in view source it shows only java scripts <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> </title> <script src="RoboHelp_CSH.js" language="javascript"></script> <script src="AC_OETags.js" language="javascript"></script> <style> body { margin: 0px; overflow:hidden } </style> <script language="JavaScript" type="text/javascript"> and rest other same codes... Please help me out on this thanks in Advance... Santosh Link to comment Share on other sites More sharing options...
bogQ Posted June 21, 2013 Share Posted June 21, 2013 Please let me know how can i use Auto IT do the operation on these pages ? Probably with _IE* funcs from help file, but for more specific answer on "how" you whud need to post page link. TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted June 21, 2013 Moderators Share Posted June 21, 2013 You need to use a DOM Inspector to view the structure of the webpage. If you are using IE8+ then you can press F12 or you can download DebugBar. Link to comment Share on other sites More sharing options...
Patil Posted June 24, 2013 Author Share Posted June 24, 2013 Thanks for all of ur replies... I tried using F12 i can see only java script details not the HTML tags in it. hi big_daddy is there any specific operation do i need to get the html tags after pressing F12 on IE8 To bogQ - This i wanted to automate some of the operations using autoIt3 script there is no need of specific method to post it. Problem here i am facing is when i see view source/F12 Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted June 24, 2013 Moderators Share Posted June 24, 2013 Are you getting the Developer Tools pane when you press F12? If you are you can then press Ctrl+B and click the web element you are wanting more information on. Link to comment Share on other sites More sharing options...
Patil Posted June 24, 2013 Author Share Posted June 24, 2013 Yes i am getting Developer Tools pane but still in that pane i can see only java script not the HTML elements... Please help me or provide some more steps to see HTML elements Link to comment Share on other sites More sharing options...
jdelaney Posted June 24, 2013 Share Posted June 24, 2013 Try something like this, just to see what you are dealing with: #include <ie.au3> $oIE = _IEAttach("your website") $oInputs = _IETagNameGetCollection($oIE, "input") For $oInput In $oInputs ConsoleWrite($oInput.outerhtml & @CRLF) Next ConsoleWrite(@CRLF & @CRLF) $oSpans = _IETagNameGetCollection($oIE, "span") For $oSpan In $oSpans ConsoleWrite($oSpan.outerhtml & @CRLF) Next 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...
Patil Posted June 25, 2013 Author Share Posted June 25, 2013 I managed to login using the following code Local $oIE = _IECreate("website") _IELoadWait($oIE) Local $oDiv = _IEGetObjById($oIE, "overridelink") _IEAction($oDiv, "click") Sleep(1000); Send('Administrator') Send('{TAB}') Send('admin12345') Send('{ENTER}') Now main chanllenging for me to validate the login is successfull or not and click on a button which is presnet after login to the page Link to comment Share on other sites More sharing options...
jdelaney Posted June 25, 2013 Share Posted June 25, 2013 (edited) At least use controlsend, but I would stay away from both. Edited June 25, 2013 by jdelaney 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...
Bert Posted June 25, 2013 Share Posted June 25, 2013 Can you pass your ID and password in the URL string? I do this with SFDC and it works like a champ. The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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