Forum Discussion

leeasdf9's avatar
leeasdf9
Frequent Contributor
13 years ago

Click on "short time" pop window (e.g. IE9 Notification Bar)

If i open e.g. .jnlp App with IE9, it will pop up a small notificationbar to confirm(see also screenshot). This short popup is new feature of IE9 as far as i know, and it shows only for around 10 sec. onScreen.

if i perform click event on "open" button, i will break the test sometimes, because the "open" button is enabled just few seconds.

Does somebody has similar issue like this? it there any general workaround for such "shorttime" popup windows? thanks for help.  

4 Replies


  • Hi Lee,


     


    The IE 9 Download Manager doesn't disappear on my computer. I suppose, the behavior you observe is related to some options in the browser. Please check that. Also, I've found the following issue on the Microsoft web site (maybe you have faced it): http://support.microsoft.com/kb/2589171


     

  • Hi Lee



    I had a similar problem with the IE9 notification bar.



    To be able to map the notification bar you need to:



    1. Open the project properties in testcomplete


    2. Click the MSAA item under open applications


    3. Click Add


    4. Enter DirectUIHWND*



    When you have this done run your browser to trigger the IE9 notification bar. You can then map the action for the bar so you can handle in your script



    Thank

    Sean

  • leeasdf9's avatar
    leeasdf9
    Frequent Contributor
    Hi Sean,

    Thanks for your reply. But mapping notificaiton bar to MSAA was not the issue in this case, this is already done. The problem is there is a breakpoint,when the notification bar is retrieved and the following 2 actions will be executed:



    Aliases.javaw.SwingObject("notificationbar").SwingObject(""JButton","Open").WaitProperty("Enabled",true);

    Aliases.javaw.SwingObject("notificationbar").SwingObject(""JButton","Open").ClickButton();



    After notificationbar appears, it will click on button if it is clickable (Enabled=true). But the duration time btw. wait -and click event is very short, most of time it will click on the button, but sometime it will break the test, because notificationbar disappears before click event execution.

    sorry for the confusion, i hope my description is understandable..

    Thanks



    Lee 
  • leeasdf9's avatar
    leeasdf9
    Frequent Contributor
    Hi Tanya, it works now after i solved 2 minor issues.

    1. i used property "click" instead of "clickButton", clickbutton does not perform click action on "open" button of notification bar, no idea why.

    2. i performed "alias.javaw.refresh()" action after opening notificationbar object.

    Thanks a lot for your investigation. I thought it was some ie9 issue, but it was just javaw refresh and clickbutton issue, i am happy now :) 

    Thanks

    Lee