microsoft-ui-automation


UI Automation - Select object based on multiple Identifiers


I am new to this. I am using UI Automation to automate my application. Is there a way to identify element based on multiple identifier.
currently the below syntax only able to identify based on one identifier.
AutomationElement okbtn = dialogbox.FindFirst(TreeScope.Children, new PropertyCondition(AutomationElement.NameProperty, "OK"));
I would like to take identify element by both NameProperty and ControlTypeProperty.
Please let me know if this is possible.
Thanks
Condition cMenuItem = new AndCondition(
new PropertyCondition(AutomationElement.LocalizedControlTypeProperty,"text"),
new PropertyCondition(AutomationElement.NameProperty,"Appointment"));
AutomationElement aeMenuItem = aeTaskMenu.FindFirst(TreeScope.Descendants, cMenuItem);

Related Links

Not able to click on an element in UIAutomation as it does not have Invoke property.
Windows UI Automation AutomationEventHandler on Start menu
How to get name / value from custom control like the Inspect tool from Microsoft?
use .net ui automation framework to capture user clicks of links in outlook application
Some 3rd party controls are not always accessable in UI Automation
How to check if a form is fully loaded?
IUIAutomationValuePattern SetValue has no effect
Handling ProgressBar's Value change with UIAutomation
.net UIAutomation simple example in C++
IUIAutomation::RemoveAllEventHandlers hangs
UI Automation - Select object based on multiple Identifiers
Microsoft UI Automation not returning expected ComboBox items

Categories

HOME
user-interface
knockout.js
mpdf
yahoo-weather-api
d3.js
exchange-server
postgresql-9.4
writefile
command-prompt
risk-management
consul
portable-class-library
biztalk-2010
openflow
ag-grid
jpa-criteria
selection
wine
graphdb
game-maker
orc
mailmerge
pinterest
l20n
tomcat8
gravity
node-webkit
error-logging
weex
maven-surefire-plugin
intel
pyopencl
oracleforms
miniprofiler
envoy
monitor
mapnik
commonsware-cwac
epplus
sca
markov-chains
polyml
char-pointer
xvfb
ms-solver-foundation
sspi
assemblies
best-buy-api
grunt-contrib-watch
grails3.2.0
hypothesis-test
word-cloud
git-tfs
jshint
brightscript
nusoap
winston
spring.net
glassfish-4.1
predicates
mechanicalturk
oracle-fusion-apps
yui3
rational-performance-test
nclam
xmlbeans
svnserve
android-sdcard
qpixmap
meld
textblock
as3-api
psd
perceptron
smart-tv
google-maps-api-2
libz
replicaset
embeddedwebserver
scala-macros
kotlin-android-extensions
microsoft-expression-web
oracle-adf-mobile
siena
android-2.3-gingerbread
csslint
senchatouch-2.4
cloo
facebook-game-groups
san
objective-c-runtime
semicolon
donut-chart
session-0-isolation
email-verification
arrow
websphere-6.1
telerik-ajax
opends
algol68
mvcrecaptcha
botnet
kernel32
webresponse
j2mepolish
yahoo-maps
ppc
wmd-editor
fxruby
downcasting

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App