Oct 28, 2015 at 11:35 AM
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 my bad english
Oct 29, 2015 at 11:08 AM
Edited Oct 29, 2015 at 11:09 AM
Hi arun_dhananjeyan, there are several ways to do what you've asked.
  1. The Wait-UiaControlState cmdlet with the -Seconds parameter
    Please refer to the page.
    Using this cmdlet you can wait for more sofisticated condition than other cmdlets offer.
  2. A 'regular' Get-UiaButton cmdlet has functionality to wait for a control, just set the number of seconds you are ready to wait:
Get-UiaWindow -Name wnd | Get-UiaButton -Name yourButtonName -Seconds 300;
  1. The Wait-UiaControlIsVisible cmdlet
Get-UiaWindow -Name windowName | Get-UiaButton -Name OK | Wait-UiaControlIsVisible -Seconds 60;