How to make klick after put value in TextBox

T

Tena

How to make click on form after I put value in TextBox.
I tray everything but unsuccessful.

Please help me.

*****************************************

use warnings;
use Win32::IEAutomation;

my $ie = Win32::IEAutomation->new( visible => 1, maximize => 1 );
$ie->gotoURL('http://www.prva-generacija.hr/');
$ie->getTextBox('name:', "txtUserName")->SetValue('user1');
$ie->getTextBox('name:', "txtPassword")->SetValue('passwd1');


******************************************
 
P

Peter Wyzl

Tena said:
How to make click on form after I put value in TextBox.
I tray everything but unsuccessful.

Please help me.

*****************************************

use warnings;
use Win32::IEAutomation;

my $ie = Win32::IEAutomation->new( visible => 1, maximize => 1 );
$ie->gotoURL('http://www.prva-generacija.hr/');
$ie->getTextBox('name:', "txtUserName")->SetValue('user1');
$ie->getTextBox('name:', "txtPassword")->SetValue('passwd1');


******************************************


From the Win32::IEAutomation documentation:

# Finding button and clicking it
# using 'caption:' option
$ie->getButton('caption:', "Google Search")->Click;

In that case you are probably looking for the caption to be 'submit' or
whatever the button you are trying click is called...

P
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top