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

Qa recording tool not recognizing desktop app
What is the mean of [-] and [+] in silktest script
How to restore focus after dismissing a window with Sikuli
TestComplete/JScript- Using a variable in an object path
Online automated regression or functionality testing options
Android runtime permissions - how to test UI
Not able to detect UI Controls on ASP.NET Application
Automation on Multiple Platforms
Poltergeist-phantomjs - switching to the new popped up window
Autoit click with OK button not happening with Windows 10
How much support is given by appium for automation.?
UI performance penalty when using UIAutomation
How to scroll through a UIACollectionView and click on a button?
Webview elements inspection for testing
Galen framework clarifications for automation
UI Automation: Tap on table view cell that’s off screen

Categories

HOME
weblogic12c
freeradius
apple-push-notifications
windows-8.1
openxml
paypal-ipn
transactions
braintree
celery
google-webmaster-tools
elisp
vue-resource
drag-and-drop
linker
specifications
swarm
lc3
xamarin-zebble
sonata
webstore
nest-api
android-5.1.1-lollipop
l20n
mixpanel
gravity
sharedpreferences
cell
nurbs
password-generator
hevc
msdeploy
points
cube
ninject
credit-card
mongodb-3.4
john-the-ripper
restful-architecture
rails-postgresql
cargo
fastlane
cheat-engine
rdp
coverage.py
contactless-smartcard
word-2007
http-basic-authentication
ptvs
predicates
ternary-operator
always-on-top
jenkins-workflow
fragmentstatepageradapter
unsigned
verisign
certificate-authority
ajax4jsf
nastran
srv-record
extend
algebraixlib
dbmigrate
console.log
sablecc
camus
r.java-file
uno
adhoc-polymorphism
configurable-product
datagridcomboboxcolumn
utf8-decode
window-resize
xcode6.3.1
network-printers
screwturn
forio-contour
bittorrent-sync
xulrunner
flipboard
pre
jomsocial
yii-booster
ember-table
lru
bcdedit
sly-scroller
days
cmath
user-forums
onconfigurationchanged
spark-view-engine
gitx
msinfo32
firebird1.5
microblogging
background-repeat
expression-web
qt-mobility
cewolf
tablet-pc
downgrade
solandra
aspbutton
facebook-fbml
yahoo-maps
google-translator-toolkit
ntruencrypt
acceleration
rootkit

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App