473,379 Members | 1,367 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,379 software developers and data experts.

How to open yahoomail using Selenium+C#.Net

Hi
Is any one tell me how to open "www.mail.yahoo.com" by sending it username and password via code by using C#.Net and NUnit(Selenium software)?
I want to show yahoo inbox automatically when I run NUnit.

Description:

I write one .dll file in C#.net ,in that file I write testcases,and by giving dll path to nunit I am trying to run this dll file, and i got success in it.
But my problem is that my test cases going to fail. It is showing me error that "User name" not found. Remember user name is not email-id, it is field name.
Same problem is occuring when i try to open Rediff.com,there also it is showing me error login is not found.

This is one test case code which I am trying:

[Test]
public void ForYahoo()
{
selenium.Open("www.mail.yahoo.com");
selenium.WaitForPageToLoad("50000");
selenium.Type("username","this_is_just_for_testing ");
selenium.Type("passwd","abc123");
selenium.Click(".save");
selenium.WaitForPageToLoad("30000");
}

Note: I changed here password,for privacy.

Please send me answer on my email id: sk27ahmed@gmail.com
Thanks
Jan 16 '08 #1
0 1899

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

Similar topics

5
by: Chris | last post by:
Hi, I'm trying to figure out how to submit javascript forms using win32com in order to complete repetitive processes. The Webpage Source: (I tried to include only the important stuff)...
1
by: C Sharp beginner | last post by:
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and...
7
by: Hareth | last post by:
When VS2003 is installed : I can open Form1.cs w/ windows "open with" contextmenu, then it opens the file w/ notepad & it works fine but after installing VS2005, "open with" doesnt...
0
by: yonatan | last post by:
hello all. I've been working on a website (windows/PHP/APACHE/MYSQL), doing both the coding and testing/QA. for unit tests, I use jsUnit (javascript), and simpleTest (PHP). when I needed...
7
by: fniles | last post by:
I am using VB.Net 2003 and MS Access (connecting using OleDBConnection). I read using DataAdapter and DataSet, not DataReader. When many people try to access the database at the same time, I get...
0
by: hrushikeshmohanty | last post by:
Hi All, I am very new to this selenium tool. Is there any one can just tell me in what way I can proceed so that it will be easy to learn this tool. Thanks.
5
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
3
by: User1235 | last post by:
I am new to access, so I will greatly appreciate any help.... I have three forms and three tables Forms Names are:- 1) frmCommand 2) frmProductRevision 3) frmProduct Field name for each...
4
by: Kapil Choubisa | last post by:
Hello all I am using smtp for sending mail. it ask the smtp host name. that is smtp.Host = "smtp.gmail.com"; what is for yahoo/rediff/hotmail is there any one for globle mail systems.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.