12-27-2012, 12:29 PM
Below is the script:
------------------------------------------------------------------
Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","H:\","open"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "https://www.ultimatix.net/"
datatable.Import "H:\QTP_SServices\Ultimatix_Cred.xls"
datatable.SetCurrentRow(1)
'Retrieve the credentials
username=datatable(1,1)
password=datatable(2,1)
'Login
Browser("Ultimatix - Digitally").Page("Ultimatix - Digitally").WebEdit("USER").Set username
Browser("Ultimatix - Digitally").Page("Ultimatix - Digitally").WebEdit("PASSWORD").Set password
Browser("Ultimatix - Digitally").Page("Ultimatix - Digitally").WebButton("Login").Click
Browser("Home : Ultimatix - Digitally").Page("Home : Ultimatix - Digitally").Link("Logout").Click
Browser("Home : Ultimatix - Digitally").WinButton("Pop-up blocked. To see").Click
Browser("Home : Ultimatix - Digitally").Page("Home : Ultimatix - Digitally").Sync
Browser("Browser").Close
------------------------------------------------------------------