New Post: Get Name of Get-UiaText
So, looks like I need to add '-Name *', this works:$variable_name = Get-UiaText -AutomationId '1606' -Class 'Static' -Name * | Read-UiaControlName
View ArticleNew Post: Failed to get control
I have a few commands that were working great, and then all of a sudden everything started failing and I can't figure out why. I've been working in a VM, so I eventually got to a point where I decided...
View ArticleNew Post: Failed to get control
Hi xevilrobotx, could it be that 2000 milliseconds used in the thread you mentioned in no longer enough? Could it be something that slows down your VM? Additional software on the VM, another VM...
View ArticleNew Post: Failed to get control
I should have mentioned that I also tried it on my Host machine with the same results and tried setting -Seconds 30, and then -Seconds 60 with no luck either.
View ArticleNew Post: Failed to get control
I tried the same app on my Windows 8.1 x64 and the following works:Get-UiaWindow -Name *mic*drive*bus* | Get-UiaEdit Setting value also works:Get-UiaWindow -Name *mic*drive*bus* | Get-UiaEdit |...
View ArticleNew Post: Failed to get control
Could it be that you have gotten another window and now you are trying to get an Edit starting your search from another window? I wasn't getting another window first, BUT I think you saying this has...
View ArticleNew Post: Failed to get control
Just as good practice: be sure using the right root. This could be something you get using Get-UiaWindow, or a variable like $my_wnd_root = Get-UiaWindow, or event a menu or a pane that could also...
View ArticleNew Post: Test-UiaControlState Output Issue
I'm trying to do something based on the output of Test-UiaControlState, but the output of Test-UiaControlState seems to be formatted strangely or something. I have something like:$exists =...
View ArticleNew Post: Test-UiaControlState Output Issue
Note: Just tried changingif($exists -eq 'False') to if($exists -like 'False') and now the if/else outputs 'Tested False' like it should, so it seems there is indeed something about the...
View ArticleNew Post: Test-UiaControlState Output Issue
Hi xevilrobotx, you invented a very rare way of misuse. Why do you use strings for comparison instead of native boolean? 'True' and 'False' are string representation of values of boolean data, no...
View ArticleNew Post: Test-UiaControlState Output Issue
Thank you!! Now it makes sense to me :) I just started with PowerShell/C#/Scripting a couple of weeks ago and am very new to all of this. My boss said I needed to come up with a way to deploy OneDrive...
View ArticleNew Post: wait-process
I want my script to wait for string which appear's in UI lately or wait for button to get visible in that UI can you help me with these thing guys pls its very urgent for me thanks in advance sorry for...
View ArticleUpdated Wiki: Checking the state of UI
Intro It's a typical task - to determine the state of a window. Is a button available now? Will be the Next button enabled in four seconds? The majority of testers faced such questions, frequently or...
View ArticleNew Post: wait-process
Hi arun_dhananjeyan, there are several ways to do what you've asked.The Wait-UiaControlState cmdlet with the -Seconds parameter Please refer to the page. Using this cmdlet you can wait for more...
View ArticleNew Post: UIAutomation and PowerShell 4.0
Hello. Is there a known issue with running UIAutomation module on PowerShell 4.0? When trying to load the module, an error occurs: import-module : Could not load file or assembly...
View ArticleNew Comment on "SendKeys"
Hi. Is there a list with tokens of all special keys, like page down, escape, space, backspace, etc.? Thanks.
View ArticleNew Post: UIAutomation and PowerShell 4.0
Hi JohnQuest, could it be that file UIAutomation.dll from the NET40 pack is blocked, i.e. you can see the Unblock button in properties of a file? Sorry, I didn't notice your post earlier.
View ArticleNew Post: Can I automate JAVA GUI AWT engine sing this framework?
Hi, Can I automate JAVA GUI AWT engine using this framework? I've used demo version of QF-Test and it looks like this: http://prntscr.com/a9u8ep The only window which I can get is: $tvcLogin =...
View ArticleNew Post: Get-UiaWindow fails if waiting too long
I am automating a setup wizard. The process is basically 1 - Launch the setup 2 - Search for the window usingGet-UiaWindow -Name "Setup Wizard" -WithControl @{controltype="text";name="Some text on the...
View Article