Sign in to follow this  
Followers 0
venkin81

Navigate thru website

9 posts in this topic

Hi,

I want to test a web application.

I am able to open the web application and provide userid and password and submit the page.

After submitting the page i want to click on any button/hyperlink and proceed further.

Anyone kindly help me.

Thanks in advance

Venkin81

Share this post


Link to post
Share on other sites



What browser are you using? It makes a difference as to how the problem is tackled.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Dear venkin81,

Firstly I would recommend you read "Learning to Script with AutoIt V3" and download SciTE for AutoIt. Press F1 and look at everything in the Index that starts with "_IE" for example "_IECreate" and experiment from there.

If you've done this and have more questions please post.

Kind regards,

icu

Edited by icu

Share this post


Link to post
Share on other sites

What browser are you using? It makes a difference as to how the problem is tackled.

IE 6

Share this post


Link to post
Share on other sites

Dear venkin81,

Firstly I would recommend you read "Learning to Script with AutoIt V3" and download SciTE for AutoIt. Press F1 and look at everything in the Index that starts with "_IE" for example "_IECreate" and experiment from there.

If you've done this and have more questions please post.

Kind regards,

icu

Thank you icu,

I have basic knowledge on auto it.

Developed script to do health check-up of all our web application.

It will open ie using _iecreate and read form object and give user id and password and click submit.

then I will check with form title with winactive. Till this point my script is working fine.

I want to click on the hyper link/button in the page that comes after login

Thanks in advance

Venkin81

Share this post


Link to post
Share on other sites

IE 6

That's your problem. Upgrade. IE 6 should be burnt on a funeral pyre.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Please find the code that i used, i will use correct login id and password for

Local $sUser = "my login id"

Local $sPass = "my password"

My requirement is after login to gmail i want click on any of the button/hyper link(Ex: check Mail/Compose), some could you please help with me code sample.

Thanks in advance

#include<IE.au3>

Local $oUser, $oPass, $oSubmit

Local $sUser = "my login id"

Local $sPass = "my password"

Local $url = "www.gmail.com"

Local $oIE = _IECreate($url, 1)

_IELoadWait($oIE)

$oInputs = _IETagNameGetCollection($oIE, "input")

for $oInput in $oInputs

if $oInput.type = "text" And $oInput.name = "Email" Then $oUser = $oInput

if $oInput.type = "password" And $oInput.name = "Passwd" Then $oPass = $oInput

if $oInput.type = "submit" And $oInput.name = "signIn" Then $oSubmit = $oInput

if isObj($oUser) And isObj($oPass) And isObj($oSubmit) then exitloop

Next

$oUser.value = $sUser

$oPass.value = $sPass

_IEAction($oSubmit, "click")

_IELoadWait($oIE)

Share this post


Link to post
Share on other sites

Do not discuss any of the following:

SPAM tools including instant messenger or forum auto-posters. This includes forum or site auto-login methods.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0