Sign in to follow this  
Followers 0
Patil

Is there any way to Login/Do some operation on web page which does not showing objectid/object name

10 posts in this topic

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

Share this post


Link to post
Share on other sites



 

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

At least use controlsend, but I would stay away from both.

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

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  
Followers 0