Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handling of security dialogs for different environments
#4
Not Solved
Hi Nishaat,

I have tried accessing the two sites (said by you in earlier post) and got these two dialogs (I have attached the screenshots).

I spied on both the Dialogs and the common name is "sonyericsson". And since I opened these sites from google, the Browser title in my case was Google. So you can use here the following code for both the cases

Code:
Browser("Creation Time:=0").Dialog("regexptitle:=.*sonyericsson.*").WinEdit("name:=nameofusernamefield").Set "UserName"

Similarly you can set the Password in the password field and then click on the OK button.

Instead of giving these urls from "Record and Run Settings", you can write the code
Code:
SystemUtil.Run "iexplore.exe","http://dev18.sonyericsson.com"
SystemUtil.Run "iexplore.exe","http://stage-shop.sonyericsson.com"

Please let me know your progress


Attached Files Image(s)
       
Reply


Messages In This Thread
RE: Handling of security dialogs for different environments - by PrabhatN - 09-02-2010, 03:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem in Handling Security Warning Window yasseema 3 5,055 06-06-2013, 10:11 AM
Last Post: vinod123
  Use same QTP script for 2 different environments flexdev 1 2,697 05-21-2012, 09:44 AM
Last Post: sshukla12
  Closing modal dialogs for IE cowboy49 0 2,403 08-29-2011, 09:48 AM
Last Post: cowboy49
Question Security Dialog Box vijayendra.shukla 2 3,412 05-06-2011, 10:01 PM
Last Post: vijayendra.shukla
  Running QTP Scripts on multiple SAP Test Environments Newom85 4 7,951 08-02-2010, 07:22 PM
Last Post: lotos

Forum Jump:


Users browsing this thread: 2 Guest(s)