# Performing a postback using Ruby

**URL:** <https://www.ruby-forum.com/t/performing-a-postback-using-ruby/136810>\
**Category:** Ruby\
**Created:** [May 6, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/performing-a-postback-using-ruby/136810 "2008-05-06T16:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wjessup](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7bcc69/32.png) [@wjessup](https://www.ruby-forum.com/u/wjessup)\
**Post date:** [May 6, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/performing-a-postback-using-ruby/136810/1 "2008-05-06T16:10:53Z")

</div>

Hi,  
I am trying to automate a page that is written in .Net and uses  
webparts. I am unable to work out how to get Ruby/Watir to ‘click’ on  
the webpart control menu (edit/close/delete) so am assuming i can get  
round this by mimicking the actual postback that the menu would send if  
i could use it. But how would i do this? Essentially it looks like i  
need the basic syntax for how to send a change of ‘\_\_EVENTARGUEMENT’ to  
the server.  
Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![wjessup](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7bcc69/32.png) [@wjessup](https://www.ruby-forum.com/u/wjessup)\
**Post date:** [May 7, 2008, 11:55am UTC](https://www.ruby-forum.com/t/performing-a-postback-using-ruby/136810/2 "2008-05-07T11:55:21Z")

</div>

I’d rather keep it all within Ruby if possible. It’s not the IE window  
i’m trying to manipulate, it’s a webpart within the web page i’m  
automating.  
Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![wjessup](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7bcc69/32.png) [@wjessup](https://www.ruby-forum.com/u/wjessup)\
**Post date:** [May 6, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/performing-a-postback-using-ruby/136810/3 "2008-05-06T16:23:32Z")

</div>

-------- Original-Nachricht --------

> Datum: Tue, 6 May 2008 23:10:59 +0900  
> Von: Will J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: removed\_email\_address@domain.invalid  
> Betreff: Performing a postback using Ruby

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Hi –

you can use AutoIt

> **[AutoIt Scripting Language - AutoIt](https://www.autoitscript.com/site/autoit/)**
>
> AutoIt is a freeware BASIC-like scripting language designed for automating the Windows GUI and general purpose scripting.

for Windows Automation …  
Not Ruby, but nice … and you can can script it from Ruby.

Best regards,

Axel
