Hello Everyone,
I am having a dialog box with two controls say Buttons Yes an No.
When I spy the buttons, testcomplete identifies it. But when I try to run as a test to perform Click action on button Yes, it doesn't click actually.
When I tried to debug, I figured out that corresponding dialog process is not listed in object browser. I assumed that could be the reason for not performing action on that dialog during runtime.
The process Full Name is
Sys.Process("rundll32").Window("#32770", "ApplicaitonName", 1)
Can anyone suggest how to list this process in object browser.
Thanks in advance.
Thanks,
Karthik K R
Solved! Go to Solution.
All,
I have upgraded my TestComplete version from 12.0 to 14.0, and with the latest version I am able to click on the buttons successfully and the dialog disappears.
I am really not sure what was the problem with TC 12.0, luckily TC 14.0 helped me out of the problem.
Thanks,
Karthik K R
Hi,
Check that system processes are not filtered out in the Object Browser (left buttons on the panel's toolbar) - https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/default-naming/ob...
Hi Alex,
I have included system processes as well. But the process rundll32 is not displayed in object browser.
Thanks,
Karthik K R
Under Tools | Current Project Properties | Project | Open Applications | Process Filter make sure the setting there is indicated to at least not exclude that process.
I have cross checked and verified that the process is not excluded.
Thanks,
Karthik K R
Somehow I got the process listed in the object browser as Process("rundll32"). But I am facing another issue that I tried to click on the buttons in that dialog either Click on Yes or No. During runtime, testcomplete performs click on the buttons, but the dialog still remains active. Expected is on Clicking No the dialog will disappear. But in this case, the dialog remains active still on clicking on the No button.
On doing the same thing manually, the dialog disappears.
FullName of the dialog button is as below:
Sys.Process("rundll32").Window("#32770", "ApplicationDialogName", 1).Window("Button", "&No", 1)
Any suggestions?
Thank in advance.
Thanks,
Karthik K R
Hi,
Is there anything in the test log? I am expecting an 'ambiguous recognition' warning because there are a lot of rundll32 processes running in every system and your code seems does not precisely specify required one.
This may result in an attempt to 'click' the button on the invisible dialog of some other rundll32 process.
Hi @krkarthik_info,
It looks like the original question was resolved. Feel free to give Kudos or accept a solution among the answers you got.
Was the second question resolved as well?
Hi Tanya,
Second question not resolved yet. Still the issue exists.
Thanks,
Karthik K R
If there is more than one Sys.Process("rundll32"), then it should have an index. Sys.Process("rundll32", 2) and so forth. You need to make sure that you are referencing the correct process before you try to click on the dialog.
User | Count |
---|---|
44 | |
22 | |
11 | |
3 | |
3 |
Subject | Author | Latest Post |
---|---|---|