Print Page | Close Window

How to click on Dialog box.

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: SilkTest @ OneStopTesting
Forum Discription: SilkTest is an automation tool for testing the functionality of enterprise applications in most versions of Windows, Sun Solaris 9 & 10, and Red Hat Enterprise Linux WS 2.1 & 3.0.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=413
Printed Date: 22Nov2024 at 7:10pm


Topic: How to click on Dialog box.
Posted By: jack45
Subject: How to click on Dialog box.
Date Posted: 31Mar2007 at 4:07am
Hi,

While running an application a dialog box pops up.
I want to click on Ok button. Even i can get rid of that Dialog box by pressing Esc Key or Pressing Alt + F4

I tried all the possible scenarios but that dialog box never escapes until i click OK manually or press ESC..

I have tried .PressKeys("<#Esc>") and also .PressKeys("<Alt-F4>") method but no luck. Silk Test is not identifying that dialog box

Even while doing record and playback there seems to be a problem

Pls find attached Dialog Box screen shot



Replies:
Posted By: jack45
Date Posted: 31Mar2007 at 4:12am
Try TypeKeys....PressKeys only presses the keys...doesn't release them.



Print Page | Close Window