473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Tips needed in Ie automation

Hi all

The below codes logins to the yahoo mail with the paasword given.

When I clicked "view source" in "http://mail.yahoo.com" I can able to find the formname as "login_form" and Iam able to find the labelbox for username and passwd used the same and no issues are seen.
Now Iam trying to automate another application(Test director) in which we
upload results of test cases,but I cont find any form name under the
view source tab,so is there any other means by which you can fetch the form name as well as remaining fields(likke label box name for username and paswd)
so that I can Login and do some automation.
Thanks in advance


use strict;
use warnings;
use Win32::OLE ;

my $URL = "http://mail.yahoo.com";
my $FormName = "login_form";
my $UserName = "XXXX";
my $Password = "XXXXX";

my $IE = Win32::OLE->new('InternetExplorer.Application') || die "Could not start Internet Explorer.Application\n";

$IE->{visible} = 1;
$IE->navigate($URL);

while( $IE->Busy() )
{
sleep( 2 );
}

my $Form = $IE->{document}->Forms( $FormName ) || die "Unable to find $FormName form";
$Form->{"username"}->{value} = $UserName;
$Form->{"passwd"}->{value} = $Password;
$Form->Submit();

while( $IE->Busy() )
{
sleep( 2 );
}
print "New page title: " . $IE->{document}->{Title} . "\n";
Jan 17 '07 #1
1 1968
miller
1,089 Expert 1GB
I suggest that you use one of the already created cpan modules for accessing yahoo mail:

http://search.cpan.org/search?query=Mail::Client::Yahoo
http://search.cpan.org/search?query=...Webmail::Yahoo

If you feel compelled to make you own, at the very least you can base some of your functionality off of what they used to accomplish the task. It's possible that Yahoo Mail's new interface breaks the use of these modules as they are both a couple years old. But I'm certain that you can learn a lot from them even if they don't still work.
Jan 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Roger | last post by:
I want to use and Active X DLL in Python applications. I have the win32all stuff installed and the "Excel.Application" example in the Client QuickStart section of the manual works OK, so I guess it...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
0
by: Ravi | last post by:
Hi, I am currently working on a web auctioning project using .NET technologies as part of my University dissertation. I have gathered a fair amount of information through my research on the...
0
by: Pohihihi | last post by:
Hello, I need some pointers (and deep details) on how to solve following problem -- condition --> 001 - I have a data grid that display items as a list (e.g. customer's items) 002 -...
4
by: sklett | last post by:
I'm having a very frustrating time with the .NET installer project. I can't make it uninstall a previous installation succsessfully. I also need to create an uninstall icon in the program group...
8
by: 2005 | last post by:
Hi How do I match the "{" with "}" This is to math the loop begin and end. There is a command/short cut (say ALT F5) I used but I forgot. Thanks
2
by: aashirwaads | last post by:
Hi Friends, I really need help from you people...I am a very new user of Oracle database...so need some basic tips from you... 1.What query do u type in sql*plus to see all the tables in a...
1
by: Bruce | last post by:
Hello, I know this must be something simple I'm overlooking but I can't get err.raise inside a class to return anything but 440 - automation error. For example, if I create the following test...
1
by: Jeroen | last post by:
For a hobby project, I'm discovering the "undo/redo"- and "Command objects"- design patterns. In my specific project, I want: 1. The command objects to just hold the data; and 2. The...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.