Friday, 6 May 2011

Win32::IEAutomation not working with "button" tags

1)Win32::IEAutomation not working with "button" tags

Solution:
Copy exists getButton function and create a new function like get ButtonButtonTag and modify below mentioned line in your new function:

"my $buttons = $agent->Document->all->tags("input");"
changed to
"my $buttons = $agent->Document->all->tags("button"); "

Now you can use getButtonButtonTag function for "button" tag.
Like "getButtonButtonTag('class:',"getButton");"

Note: Don't modify your exists functions because it may be effect your exists scripts.
























1 comment:

  1. Thank you ver much for this useful information.

    ReplyDelete