Forum Discussion
kerr
15 years agoOccasional Contributor
Jared,
Thank you for your reply. Could you please also answer the following question?
My object is definitely visible on screen. I'm not trying to use VisibleOnScreen or Visible, I'm trying to click a button in the main window of the AUT, but I get the "the window is invisible and thus cannot be activated" error. In this topic which describes a similar problem you wrote "Before clicking, check its VisibleOnScreen property. If it is False, try activating the parent window by calling its Activate method." So, following this advice, I checked the VisibleOnScreen property (and it's False when my test script is running, but True when it's not). I know that a process doesn't have Activate method, and that's why I can't follow the rest of the advice ("try activating the parent window by calling its Activate method"; the main window doesn't have parent windows, naturally), and that's why I asked my question: what to do if the main window of the application is drawn on screen but any action in a TestComplete script that interacts with this main window fails with the "the window is invisible and thus cannot be activated" error?
Thank you for your reply. Could you please also answer the following question?
My object is definitely visible on screen. I'm not trying to use VisibleOnScreen or Visible, I'm trying to click a button in the main window of the AUT, but I get the "the window is invisible and thus cannot be activated" error. In this topic which describes a similar problem you wrote "Before clicking, check its VisibleOnScreen property. If it is False, try activating the parent window by calling its Activate method." So, following this advice, I checked the VisibleOnScreen property (and it's False when my test script is running, but True when it's not). I know that a process doesn't have Activate method, and that's why I can't follow the rest of the advice ("try activating the parent window by calling its Activate method"; the main window doesn't have parent windows, naturally), and that's why I asked my question: what to do if the main window of the application is drawn on screen but any action in a TestComplete script that interacts with this main window fails with the "the window is invisible and thus cannot be activated" error?