Hi saran_techie,
I have never used this module (I tend to use Win32::IE::Mechanize when doing this kind of thing), however a quick look at the documentation makes me think that your getTable call is wrong. You have $IE->getTable('name':, '<tablename>') when the documentation suggests $IE->getTable("name:", "<tablename>"). The difference being that the colon is quoted.
This aside, are you sure you are looking to populate a table with text data, and not a text input box? Your comment preceding the getTable call, along with the actual question you have asked suggests this is the case. The setValue method "will set the value of text field or text area to the string provided".
Double check the HTML source of the page in question, find the id or the name of the text input field for the username, and try something like:
$ie->getTextBox('name:', "userid")->SetValue("marto");This should set the value of a textbox named 'userid' the value 'marto'. Please not that this us untested, I don't have a windows box handy at the moment.
As a side note, having use strict; and use warnigns; is missing from your code also :)
Hope this helps
Martin
In reply to Re: To set values for a textbox in a Web application
by marto
in thread To set values for a textbox in a Web application
by saran_techie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |