Jump to content
Sign in to follow this  
wasimwsm

Unable to send text

Recommended Posts

wasimwsm

Hi i m unable to send in username and password field plz help me

Posted Image

Share this post


Link to post
Share on other sites
water

Have you tried AutoIt's Window Info Tool to get the controls to enter userid and password?

Could you show us the code you have so far? It's easier to help you if we have a s much info as possible.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
wasimwsm

I tried everything using autoit window info also but i m unable to do so

run("C:\Program Files\Internet Explorer\iexplore.exe")
WinWaitActive("Blank Page - Windows Internet Explorer")
send("http://clarity.wdc.bsnl.co.in/")
send("{Enter}")
WinWaitActive("Windows Internet Explorer","The webpage you are viewing is trying to close the window")
send("!y")
WinWaitActive("BSNL CDR PROJECT CLRWPH1 - WebUtil - Windows Internet Explorer")
send("b199105417")

Share this post


Link to post
Share on other sites
water

As everything you do is IE based I would try the Internet Explorer UDF. It's part of AutoIt - help can be found in the helpfile -> User Defined Functions Reference -> IE Management.

Use functions _IECreate and _IEFormElementSetValue.

_IEFormElementSetValue has a good login example and some more can be found on the forum.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
wasimwsm

thanx water for reply

but problem is that i m not getting form details coz right button click is not available on that site

Share this post


Link to post
Share on other sites
water

You could use _IEFormgetCollection to get all forms in the page (see example on how to use).

With _IEFormElementgetCollection you get all elements of a form. The element can then be used with _IEFormELementSetValue.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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  

×