Hi All,
I have prepared following script which needs to be executed on 5-10 live clients every day after deployment of new changes/enhancements.
Load time of each page is different for each live clients. After deployment, our server gets bit solve and loading speed may differ each time.
In below script, I have used "wait" command to get page loaded..
Now the problem is.. Page size of pages different for each client.. Due to which, for some client's site, one page gets loaded fast and for some, its too slow.. If site is slow for any client, then errors of object occurs.
Due to which I need to increase seconds in "Wait" command during run. Because of which if any of site is fast then also it will perform wait operation which results in wastage of time.
Can any one provide me the solution.. Here do I need to use looping for "wait" command.. If yes, please provide me the code for same..
Please help me urgently..
Below is the script..
-----------------
------------------
Thanks,
Mansi.
I have prepared following script which needs to be executed on 5-10 live clients every day after deployment of new changes/enhancements.
Load time of each page is different for each live clients. After deployment, our server gets bit solve and loading speed may differ each time.
In below script, I have used "wait" command to get page loaded..
Now the problem is.. Page size of pages different for each client.. Due to which, for some client's site, one page gets loaded fast and for some, its too slow.. If site is slow for any client, then errors of object occurs.
Due to which I need to increase seconds in "Wait" command during run. Because of which if any of site is fast then also it will perform wait operation which results in wastage of time.
Can any one provide me the solution.. Here do I need to use looping for "wait" command.. If yes, please provide me the code for same..
Please help me urgently..
Below is the script..
-----------------
Code:
URL = Datatable.Value("URL",Global)
User_name = Datatable.Value("User_name",Global)
Password = Datatable.Value("Password",Global)
Users = Datatable.Value("Users",Global)
systemutil.Run "iexplore",URL
Wait (5)
Browser("InSync :: Login").Page("InSync :: Login").WebEdit("txtUsername").Set User_name
Browser("InSync :: Login").Page("InSync :: Login").WebEdit("txtPassword").Set Password
Browser("InSync :: Login").Page("InSync :: Login").WebButton("Login").Click
Wait (5)
Browser("InSync :: Login").Page("InSync :: Login_2").WebList("ddlUsers").Select Users
Wait (8)
'Select Facility
If Browser("InSync :: Login").Page("InSync :: Login_2").WebButton("Ok").Exist Then
Browser("InSync :: Login").Page("InSync :: Login_2").WebButton("Ok").Click
Wait (4)
End If
Wait (20)
'Access Scheduler
Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image2").Click
Browser("InSync :: Login").Page("InSync :: Visit Scheduler").Sync
Wait (50)
'Access Patient Search
Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image3").Click
Browser("InSync :: Login").Page("InSync :: Patient Search").Sync
Wait(25)
Browser("InSync :: Login").Close
------------------
Thanks,
Mansi.