Contributions
Re: Windows 10 not able to find the Object
Below snippet trying to get the Active window and thats how its working in Window7. (To get Installer Window) function InstallerDialog() { this.form = null this.Process = function() { return this.Form().Parent; } this.Form = function() { if(this.form == null) { this.form = this.GetWindow(); } return this.form; }; this.WaitForForm = function(timeout) { return this.GetWindow(timeout).Exists; }; /** * Launches the installer. * Param installerPath - the path to the AC installer executable. */ this.Launch = function(installerPath) { //Sys.OleObject('WScript.Shell').Run(installerPath); //this.processName = dotNET.System_IO.Path.GetFileNameWithoutExtension(installerPath); // new method, using ac's setup bat file TestedApps.setupAC.Run(); }; 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); }; } /** * Gets the installer window. */ this.GetWindow = function(timeout) { return Sys.FindEx(['Name', 'Visible'], ['Window("#32770", "Amazing Charts V*", *)', true], 2, true, timeout == undefined ? 1000 : timeout); }2.1KViews0likes4CommentsRe: Windows 10 not able to find the Object
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 :3.5KViews0likes5CommentsWindows 10 not able to find the Object
Hi , I am trying to access some objects from windows application and its working fine on WIndows 7 OS but getting below in Windows 10 machines. There was an attempt to perform an action at point (41, 11) which is transparent or out of the window bounds Could some one help on this?4.8KViews0likes21Comments