ui-automation


Unable to uncheck a checkbox within a combo box


I have a combo box which contains two List Items. Each list item consists of a checkbox and a text message.
Now, I am using a function which looks something like this to uncheck all the checkbox's within the combobox.
public ApplicationReports UnSelectAllCheckBox()
{
int i = 0;
ComboBox someVariable= Application.Library.GetFromWindow(Application.Configuration.LoginWindow.Title).OfType<ComboBox>("corresponding Automation Id");
foreach (ListItem casino in someVariable.Items)
{
someVariable.Item(i).UnCheck();
i++;
}
// someVariable.Item(0).UnCheck();
return this;
}
I am able to uncheck the second checkbox using this approach but not the first one. Unable to identify
what is the problem when it is working fine for the second list item. I am using the recently released version of
white framework. "someVariable" is not a problem. I checked its retrieving the correct combo box while
debugging.
Try this instead:
foreach (ListItem casino in someVariable.Items)
{
casino.UnCheck();
}
No need to use i and make your own loop iterator.

Related Links

White Automation framework throws an exception when using “White.Core.Desktop” Class
Unable to uncheck a checkbox within a combo box
Coded UI - Add-ons
Is it possible to close app in UIAutomation in iOS
ios uiAutomation tapWithOptions not working properly
My automationelement FindFirst/FindAll seems to be very slow. How to improve the performance?
UI Automation CreatePropertyCondition 0xc0000005
NativeWindowHandle Returns 0, but Spy displays handle
Can we “click” on edit boxes using Microsoft UIAutomation libraries
Test flex mobile application built with 4.10 sdk with testcomplete
TreeWalker cant see AutomationElement, but UIA Verify can
Accessing elements of webview within a native iPhone app using UI Automation
Ranorex not able to recognise elements uniquely?
Getting / ussing full path to find controls in UIA and White
UIA: Get ControlType from control type name (string)
how to select which button to select in alert message for IOS UIAutomation

Categories

HOME
nam
knockout.js
mod-rewrite
xcode8.1
subdomain
command-prompt
mirc
dependencies
biztalk-2010
flurry
material-components
capistrano
position
mutation-testing
yahoo
azure-graph-api
texas-instruments
nest-api
asciimath
salt-cloud
nullreferenceexception
raml
android-custom-view
activeadmin
neo4j.rb
uislider
candlestick-chart
react-dnd
web-push
echosign
onchange
php-5.3
fatfs
splunk-query
copy-protection
es6-modules
argv
delayed-job
fotorama
xcrun
appcode
advanced-filter
devtools
apptentive
assertions
nsuserdefaults
forms-authentication
widestring
distributed-caching
yoast
vungle-ads
kitura
realstudio
cordova-ios
algebra
mongodb-aggregation
http-basic-authentication
email-forwarding
gmaps.js
livecycle
xcode8-beta4
bbc-micro
strpos
maximize
voronoi
wepay
pack
json-spirit
helm
godeps
mousehover
apple
search-form
ngcordova
mobilefirst-server
componentart
clarion
subfolder
flurry-analytics
dmake
maven-central
forceclose
air-native-extension
meteorite
smips
mp4parser
postgres-xc
pacman
void-pointers
ckeditor.net
handshake
popup-blocker
dropshadow
netstream
firefly-mv
database-deadlocks
sql-parametrized-query
page-curl
remote-working

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