Forum Discussion
Can you include the actual code you're executing?
Also, in that TC log, there's an "Additional Info" tab that gives a lot of information... and a "Picture" tab that, if you have the option turned on, will include a screenshot of exactly what is occurring at the time of error.
For Windows7 same scripts got pass and additional info from TC logs:
Tested object:
Sys.Process("_isF0C4").Window("#32770", "XX V10.2.0", 1).Window("#32770", "IDS_WELCOME_TITLE", 1).Window("Button", "Yes", 1)
Windows 10 additional info from TC logs:
Tested object:
Sys.Process("_isF529").Window("#32770", "XX V10.2.0", 1).Window("#32770", "IDS_WELCOME_TITLE",
1).Window("Button", "Yes", 1)
Code Snippet :
File 1:
this.YesNoButton = function(timeout) { return this.Form().Window("#32770", "IDS_WELCOME_TITLE", 1).Window("Button", "Yes", 1)};
this.NextButton = function(timeout) { return this.Form().WaitChild('Window("Button", "&Next >", *)', timeout != undefined ? timeout : 10000); };
this.InstallButton = function(timeout) { return this.Form().WaitChild('Window("Button", "&Install", *)', timeout != undefined ? timeout : 10000); };
File 2:(Calling function )
app.YesNoButton().ClickButton()
Delay(2000);
app.NextButton().ClickButton()
Delay(2000);
app.NextButton().ClickButton()
app.MainComputerRadioButton().ClickButton();
Delay(1000);
app.NextButton().ClickButton()
app.AcceptLicenseRadioButton().ClickButton();
Delay(1000);
app.NextButton().ClickButton()
Delay(1000);
app.InstallButton().ClickButton();
Delay(5000);
// wait until the cancel button disappears
app.CancelButton().WaitProperty('Visible', false, 1000 * 60 * 15);
Attached Picture from TC log :
- tristaanogre6 years agoEsteemed Contributor
Your code for your YesNo button does not include the WaitChild logic.... this is probably what's causing the issue in that the object MAY be getting obtained before it is ready to be interacted with.
- marunachalam6 years agoOccasional Contributor
FYI, I tried with WaitChild logic also but same issue exits.
- tristaanogre6 years agoEsteemed Contributor
Well, the thing is, based upon your code, you didn't put the delay in BEFORE you click the Yes button. That's where I suggested you put the delay. Additionally, if you implemented WaitChild, how long of a timeout did you implement? It could be that you aren't waiting long enough?
An additional thought... The process value is different between Windows 7 and Windows 10... It could be possible that other identifying factors may differ in the object identification between the two versions. Go through with Object Spy and double check all layers and make sure objects are being properly identified.
- marunachalam6 years agoOccasional Contributor
I tried with delay(6000) before select YesNot button and since the process id different from every time i am not hard coding and everytime referring as this.form, so that might causing an issue.
- tristaanogre6 years agoEsteemed Contributor
So, that's interesting... could be that Windows 10 implementation of the Installshield may have an additional process running in the background which could have the YES button. Can you verify that there's not multiple processes?
Related Content
Recent Discussions
- 18 hours agotramuntana
- 3 days agoSlickRick