I have one thing that needs to be resolved.
scenario is like this ;-
i enter the Login id and password.
suppose login id is "inst1" and password is "pass123".
click on Go button and Home page appears.
on the Home page, a message display as "welcome <user name>" (here user name is inst1).so message appears like "Welcome inst1".
so here my problem is , i want to check that whenever i login the login name should appear with welcome text.
i am writing my peice of code that satisfies this..but it is not working [img]images/icons/frown.gif[/img]
[ ] string s, w
[ ] CLiKSLearningManagementSyst.SetActive( )
[ ] CLiKSLearningManagementSyst.LoginID1.SetText(rData .recSheet1_.LoginID)
[ ] s = CLiKSLearningManagementSyst.LoginID1.GetText()
[ ] print (s)
[ ] CLiKSLearningManagementSyst.Password1.SetText(rDat a.recSheet1_.Password)
[ ] CLiKSLearningManagementSyst.Password2.Click ()
[ ] w = CLiKSLearningManagementSyst.WelcomeAdmin.GetText()
[ ] print (w)
[-] if (s == w)
[ ] print ("Successful login")
[ ] logerror ("unsuccessful login")
You have to capture that username from gettext and store in string,and next getstring from that page..and from that one using substring getthat name and compare both...by this way you can solve this problem....