Jump to content

Navigate thru website


venkin81
 Share

Recommended Posts

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

Link to comment
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

Edited by icu
Link to comment
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

Link to comment
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)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...