Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6741271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:42:18+00:00 2026-05-26T11:42:18+00:00

I am working on some UI automation software and just recently moved the project

  • 0

I am working on some UI automation software and just recently moved the project from Python to IronPython since the requirements for this project state it will only be used in a Windows environment. However, I need to automated the UI of a program that uses Windows Presentation Foundation (WPF). I found this one library that looks like it might be useful called White.

http://white.codeplex.com/

So I would like to use this in my IronPython program but all the example code I have been seeing so far for importing modules written in C# or with a C# interface has been for the Microsoft/Windows built-ins. I figured I should be able to reference it since you can do it with IronRuby according to this article.

http://www.natontesting.com/2010/02/17/how-to-test-a-wpf-app-using-ironruby-and-white/

However, I have to imagine the means/syntax by which IronRuby would import/reference White is very different than how IronPython would do it. I have also found posts by other developers saying they are using IronPython and White, but can’t find a post that includes the code to actually make the reference to White. How would I go about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:42:18+00:00Added an answer on May 26, 2026 at 11:42 am
    import clr
    clr.AddReference("White.Core")
    clr.AddReference("White.NUnit")
    from White.NUnit import *
    from White import *
    from White.Core import *
    from White.Core.Configuration import *
    from White.Core.UIItems import *
    from White.Core.UIItems.WindowItems import *
    from White.Core.UIItems.ListBoxItems import *
    from White.Core.UIItems.Container import *
    from White.Core.UIItems.Finders import *
    from White.Core.Factory import *
    from White.Core.Finder import *
    from White.Core.AutomationElementSearch import *
    from White.Core.WindowsAPI import *
    

    Then use the white api as normal.

    app = Application.Attach(proc)
    win = app.GetWindow('Window Caption')
    print win.Name
    box = win.Get[MultilineTextBox]('textBoxId')
    print box.Text
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on writing some automation code and I'm running into a problem finding
Working on some tweaks for a build script, I noticed that the output from
Whilst working on some generally horrible Javascript code this morning, I came across the
I'm working on some production software, using C# on the .NET framework. I really
I am working on an application where I am writing some automation framework for
I am working on a proof of concept for some workflow automation using Exchange
I've been working with TCL/TK ,recently started to use TCL/TK with my automation applications
We recently switched to Entity Framework data migrations and I am working on some
I'm working with selenium to perform some automation and I'm attempting to interact with
I've got some UI Automation tests for a universal app that I'm running from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.