# Windows GUI automation question

**URL:** <https://www.ruby-forum.com/t/windows-gui-automation-question/174035>\
**Category:** Ruby\
**Created:** [August 19, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/windows-gui-automation-question/174035 "2009-08-19T18:18:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Post date:** [August 19, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/windows-gui-automation-question/174035/1 "2009-08-19T18:18:51Z")

</div>

Dear all,

I want to use Ruby to automate some Windows GUI application.  
I tried to use WET (Ruby gem: wet-winobj), because in this book:

[Pragmatic Bookshelf: By Developers, For Developers](http://www.pragprog.com/titles/idgtr/scripted-gui-testing-with-ruby) ,

it is promised that using this gem, Ruby objects for all the handles in  
the GUI application will be provided (see p. 170), so that I could  
easily send some text to a particular text field in an external  
application and read out the result as given in some other text field in  
that application.

Unfortunately, I can’t get this to work. My problem is essentially the  
same as this :

[WET/RubyGems won't work - Ruby - Ruby-Forum](http://www.ruby-forum.com/topic/153374) .

Is it possible to change the gem specification and rebuild the gem ? How  
would I do that ?

Thank you very much!

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![Axel\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Post date:** [August 19, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/windows-gui-automation-question/174035/2 "2009-08-19T19:01:34Z")

</div>

On Aug 19, 1:17 pm, Axel E. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [WET/RubyGems won't work - Ruby - Ruby-Forum](http://www.ruby-forum.com/topic/153374).
> 
> Is it possible to change the gem specification and rebuild the gem ? How would I do that ?

You can do gem unpack in a directory, which is going to extract all  
the gem files, then you can change it.

But I would rather suggest to contact the author and ask him to fix  
it.
