sethlj11
11 years agoNew Contributor
New Window not found to click button
Hello,
I am a new user to TestComplete (I am using version 9.31). I am attempting to automate the installation of my company's product. So far, I can copy the installer (it's an .exe, not an .msi) from the original network location to a local one. I can also start the installer and can click a few buttons.
The problem starts when the installer tries to verify the installation of some C++ and C# redistributables. If the system detects you already have them installed, that installation fails - this is a known bug with our installer, but I am attempting to write the test to include this bug. This will prompt a new message box to appear and ask if you want to continue the installation of the product; it's at this point that the user should click the Yes button.
I used the Record Test feature to create the test. However, when I go to play the test back, the Yes button is never clicked. Specifically, the "object does not exist" error was listed in the log.
I already tried to find a workaround. First, I added a delay to make sure the window was created before the button went to be clicked - no go. Then, I I went to the Object Browser and found that when the window is created, the object browser wasn't updating. I believe this to be the problem - the window may be created, but the object hierarchy isn't being updated. When I pause the test and use the Object Spy tool on the new window, the object browser updates with the new window, but the names of the windows change.
Am I doing something wrong, or is this a possible bug with the software? Are there other possible workarounds known to get past this issue? Thanks.
I am a new user to TestComplete (I am using version 9.31). I am attempting to automate the installation of my company's product. So far, I can copy the installer (it's an .exe, not an .msi) from the original network location to a local one. I can also start the installer and can click a few buttons.
The problem starts when the installer tries to verify the installation of some C++ and C# redistributables. If the system detects you already have them installed, that installation fails - this is a known bug with our installer, but I am attempting to write the test to include this bug. This will prompt a new message box to appear and ask if you want to continue the installation of the product; it's at this point that the user should click the Yes button.
I used the Record Test feature to create the test. However, when I go to play the test back, the Yes button is never clicked. Specifically, the "object does not exist" error was listed in the log.
I already tried to find a workaround. First, I added a delay to make sure the window was created before the button went to be clicked - no go. Then, I I went to the Object Browser and found that when the window is created, the object browser wasn't updating. I believe this to be the problem - the window may be created, but the object hierarchy isn't being updated. When I pause the test and use the Object Spy tool on the new window, the object browser updates with the new window, but the names of the windows change.
Am I doing something wrong, or is this a possible bug with the software? Are there other possible workarounds known to get past this issue? Thanks.