Contributions
- 1KViews0likes0Comments
Re: Validating Web browser Maximize and Minimize
Can below code works for validation? I am using this snippet for validating desktop application. var pObj = Sys.Browser("chrome"); var wObj = pObj.BrowserWindow(0); //wObj.Maximize(); //to maximize var getWndStyles = wObj.WndStyles; var WS_MAXIMIZED = 0x1000000; if((getWndStyle & WS_MAXIMIZED ) == WS_MAXIMIZED ) { Log.Message("Maximized"); } else{ Log.Message("not Maximized"); } //wObj.Minimize(); //to minimize var getWndStyle = wObj.WndStyles; var WS_MINIMIZED = 0x20000000; if((getWndStyle & WS_MINIMIZED ) == WS_MINIMIZED) { Log.Message("Minimized"); } else{ Log.Message("not Minimized"); } Meanwhile, I will check using Position Action.1.1KViews0likes2Comments- 559Views0likes0Comments
PopupMenu Item Checked
Hi, My test case is like, when right click on the taskbar need to verify if item("show touch keyboard button") in the popupmenu is checked or not. I can able to get the items using following snippet: var pObj = Sys.Process("explorer"); var wObj = pObj.Window("Shell_TrayWnd", "", 1); var get = wObj.Find("ObjectIdentifier", "Notification_Chevron", 50); get.ClickR(); Delay(3000); var pObj2 = Sys.Process("explorer"); var wObj2 = pObj2.Window("#32768", "", 1); var getCount = wObj2.PopupMenu.Count; Log.Message(getCount); for(i = 0; i< getCount; i++) { var check = wObj2.PopupMenu.Items(i); Log.Message(check.Caption); //To validate if Popupmenu item is Checked ???? /*if(check.Checked) { Log.Message(check); }*/ } Also, in last conditional stmnt I am Checking, if item was checked. need to know whether it is correct or not?675Views0likes3CommentsWhat if multiple UIAObjects showing for same option?
Hi, For Autoplay settings, "use autoplay from all media and devices" have bothUIAObject("On") and UIAObject("Off") in object browser. Even if we "On"/ "Off" the switch, it was showing both. How to detect the state of this toggle/ switch button exactly?1KViews0likes2CommentsRe: Windows Defender Firewall-unable to collect object using Object Spy
Okay, if UIAObject("On") and UIAObject("Off") are showing in Object browser as childs for network status checking. How to get exact state of this network? Is it possible? For example: For Autoplay from settings, use autoplay from all media and devices have bothUIAObject("On") and UIAObject("Off") in object browser. How to detect the state of this option.1.3KViews0likes1CommentMicrosoft.Windows.StartMenuExperienceHost Glitch
Hi, Windows Applications(Photos, MS Store, Videos, Calculator) were auto-opened when pressing the "Microsoft.Windows.StartMenuExperienceHost" process in object explorer(TC). Also, it occurring at some other cases too. Find the causes below: 1. After opened object browser 2. During project run 3. When not using this process(Microsoft.Windows.StartMenuExperienceHost) How to restrict this unwanted application behaviour using Test complete?735Views0likes1Comment