×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Inconsistent click on an object

Inconsistent click on an object

Inconsistent click on an object

(OP)
I have an object on a Crystal Report window that the click event does not work consistently. The object, which is the Print button/icon, receives focus, but the click event does not happen every time. The recorded line of code is as follows:

SwfWindow("Report").SwfObject("SwfObject").Click

I've tried the click event with coordinates and without and I've also tried mapping the object as a virtual object, but nothing seems to work. Any ideas on how to force the click event will be appreciated. Thanks!

(I'm using QTP 9.2 with Crystal Report 11 and a Windows .Net application.)

RE: Inconsistent click on an object

If it's a Print button - Have you considered mapping the File->Print option and clicking that print button?

Might work easier...

Cheers,
Dave

"Yes, I'll stop finding bugs in the software - as soon as you stop writing bugs into the software."  <-- Me

For all your testing needs: forum1393: Systems & Software Testing

RE: Inconsistent click on an object

(OP)
Thank you for your reply. If I'm understanding you correctly, there isn't a File menu on the Crystal Report window (at least the way we display it).

RE: Inconsistent click on an object

Keyboard shortcut (Ctrl-P) might cause the print dialog to appear.

Failing that, not too sure how you can get around this.  If you find a better solution, be sure to post it for the rest of us... smile

Cheers,
Dave

"Yes, I'll stop finding bugs in the software - as soon as you stop writing bugs into the software."  <-- Me

For all your testing needs: forum1393: Systems & Software Testing

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close