Hi Martin,
Thanks for your reply. I do accept that getTable call is wrong, that I've misplaced the colon, but apart from that the actual problem is that I just want to know why the error "can't call method readystate with undef value" is thrown.
Actual Scenario:
Our application login page has two textfileds username and password. These text fields are incorporated in tables associated with classes. I've used "getTable" of IEAutomation along with the name of the textfield "username". But still am getting the error "can't call method readystate with undef value". Again I've provided my code below. Appreciate your assistance.
use strict; use warnings; use win32::IEAutomation; use Win32::IEAutomation::Element; use Win32::IEAutomation::Table; use Win32::IEAutomation::WinClicker; my $IE = Win32::IEAutomation->new( visible => 1, maximize => 1); $IE->gotoURL('http://url') ; $IE->WaitforDone; $IE->getTable("class:", "as_txt_logincm_font_header_normal")->getTextB +ox('name:',"txtUserName")->SetValue('user1>');
Thank You,
Saravanan.S

In reply to Re^2: To set values for a textbox in a Web application by saran_techie
in thread To set values for a textbox in a Web application by saran_techie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.