ui-automation


White Automation framework throws an exception when using “White.Core.Desktop” Class


I am using White Framework for automation. when I trying to get desktop instance I got exception "The type initializer for 'White.Core.Desktop' threw an exception."
My code looks like :
var window = White.Core.Desktop.Instance.Windows().Find(obj => obj.Title.Contains("TestAppHome"));
Is there any way to capture the window without exception that is without using White.Core.Desktop class?
Any help would be greatly appreciated !
Try this one:
List<White.Core.UIItems.WindowItems.Window> windows = WindowFactory.Desktop.DesktopWindows();
var window = windows.Find(w => w.Title.Contains("TestAppHome"));

Related Links

Capture Cucumber output from WebDriverIO
Retrieve image of ListItem with UI Automation in Coded UI
How to capture all the api calls triggered after clicking a button/ link
Get WebdriverIO multi-remote to work with Cucumber BDD
Ui Automation on Java applet using C#
UIAutomation- FindFirst with 3rd Party Grid Control
Get control of an existing open window using Teststake White
How to send ENTER from keyboard using TestStack.White Framework
How does the record function works in Coded UI
How can we reuse already prepared UFT siebel HI(High Interactivity) automation scripts for Siebel Open UI application.?
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

Categories

HOME
azure-functions
ontouchlistener
softlayer
windows-10
nsview
nsis
mathematical-optimization
azure-data-lake
gprs
jpa-criteria
hspi
gtk
log4j2
game-maker
jquery-select2-4
smartgwt
sql-injection
pinterest
significance
adminlte
akka-persistence
sqlplus
substring
cell
crud
list-comprehension
hevc
amazon-cloudtrail
boolean-logic
ibm-connections
jsonresult
opnet
mongodb-3.4
wampsharp
image-optimization
eclipse-gmf
llvm-ir
sspi
extbase
tidal-scheduler
spring-restcontroller
game-center
grails-spring-security
robust
dbcc
transparency
doctrine-extensions
xcglogger
gestures
watir-webdriver
aurelia-fetch-client
android-mediarecorder
http-basic-authentication
nitrousio
scheduledexecutorservice
google-identity-toolkit
nsdata
jeditable
trust
webgrind
ajax4jsf
deeplink
bayesglm
gitlab-omnibus
jnlp
gql
karma-coverage
componentart
ipod
kotlin-android-extensions
quercus
fuseesb
innerhtml
datagridcomboboxcolumn
qt5.4
mobile-country-code
lmax
android-2.3-gingerbread
mft
san
yii-booster
postgres-xc
hints
delphi-xe4
stretch
wndproc
popup-blocker
viewpagerindicator
acpi
simile
jmenu
webresponse
ccnet-config
fgetc
google-translator-toolkit
twitter-feed
prism-2

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