WebPagetest Forums
HomePage Test - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: HomePage Test (/showthread.php?tid=13186)

HomePage Test - Ankita Pradhan - 08-21-2014 09:30 PM

Hi Team,
I want to test a page (WelComeHome.aspx) immediate load after the successful login(Login.aspx).

Can any one suggest me how can we write a script for the same.


RE: HomePage Test - pmeenan - 08-26-2014 05:34 AM

It's hard to say without seeing the exact page but the script would look something like this:

logdata    0
navigate    https://<server>/Login.aspx
setValue    id=loginId    something
setValue    id=password    some password
logdata    1
submitForm    id=loginform

Instead of the setValue commands you can also use javascript with the exec command and instead of submit you can use execAndWait. The actual form fields and values will depend on the site you are testing.

RE: HomePage Test - Ankita Pradhan - 08-26-2014 07:38 PM

Thanks Patrick for the reply

We tried the script given below, but we are not getting the desired result.
Can you please tell that loginid and password field in id=loginId, do we have to enter text label of that field. Also, is loginform name of login page or the text label for the same?


RE: HomePage Test - pmeenan - 08-30-2014 01:20 AM

You need to open the page you are trying to test with dev tools and see what the form field names are for the form you are trying to automate. I can't tell you what they are because I have no idea what site you're trying to test.

RE: HomePage Test - Ankita Pradhan - 09-23-2014 09:40 PM

Dear Patrick

We entered the script given below for our URL : https://faw.adityabirlamoney.com/login.aspx so that it by passes the login screen. We did not get the desired outcome.

logData 0
// bring up the login screen
navigate https://faw.adityabirlamoney.com
logData 1
// log in
setValue name=txtLogin bw122301
setValue name=txtPassWord Hsbc1234$4
submitForm name=Form1

Test Result Page:

Kindly revert at the earliest.

RE: HomePage Test - pmeenan - 09-24-2014 05:18 AM

The test is gone. In the future you can check the "private" box in the advanced settings which will give you a non-guessable test ID and it won't show up in the test history.