Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog box differs on different browsers version (IE7 and IE9) for same application
#1
Dialog box differs on different browsers version (IE7 and IE9) for same application. Please suggest me how to handle this issue. As I need to run the script in different browser version. It’s hard to use separate script for different browser version.

IE7 browser –
Code:
Browser("xxxxx").Dialog("Windows Internet Explorer").WinButton("OK").Click

IE9 browser –
Code:
Browser("XXXXX").Dialog("Message from webpage").WinButton("OK").Click

Thanks!
Jagadeesh
visitjaga@gmail.com
Reply
#2
hey just use a if condition..

Code:
if Browser("xxxxx").Dialog("Windows Internet Explorer").WinButton("OK").Exist Then Browser("xxxxx").Dialog("Windows Internet Explorer").WinButton("OK").Click Else Browser("XXXXX").Dialog("Message from webpage").WinButton("OK").Click End IF

Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,935 06-06-2017, 11:12 AM
Last Post: workrohit08
  UFT 12.53 trial version not recognizing its sample flight application login/password NehaRB 2 4,473 10-07-2016, 06:49 PM
Last Post: pradeep537
  Not able to set value in application web edit box tanuj dewangan 4 4,623 07-29-2016, 03:58 PM
Last Post: harshadevadas
  Automating save dialog box in windows using UFT shipu 0 5,262 01-16-2015, 07:54 PM
Last Post: shipu
  QTP 11 and IE9 64bit on Win7&SP1 64bit, QTP does not recognize objects in website jpalos 4 9,435 08-27-2014, 10:11 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)