467,074 Members | 870 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

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
  • viewed: 1686
Share:

Post your reply

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

Similar topics

5 posts views Thread by Chris | last post: by
1 post views Thread by C Sharp beginner | last post: by
7 posts views Thread by Hareth | last post: by
reply views Thread by yonatan | last post: by
5 posts views Thread by Usman Jamil | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.