ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Scripts  >>  VB Script
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
Open Yahoo Login Page
in that page Suppose i have 100 mails and i want to delete 
10'th  mail now give procedure & Coding For that Scenario
 Question Submitted By :: Kvasu.qa
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario
Answer
# 1
Browser("Yahoo!").Page("Yahoo!").Link("Mail").Click
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("login").Set "ch_sumathi2004"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("passwd").SetSecure "486c6f4be481a70bf13b2b81453298b462a1"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton
("Sign In").Click
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link
("Inbox (10)").Click
k=Browser("Yahoo!").Page("Inbox (10) - Yahoo! 
Mail").webtable("inbox(10)").ChildItem
(10,1,WebCheckBox,index)
k.delete
 
Is This Answer Correct ?    5 Yes 2 No
Sumathi
 
  Re: Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario
Answer
# 2
Browser("Yahoo!").Page("Yahoo!").Link("Mail").Click
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("login").Set "venkatraj.banka"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("passwd").SetSecure "486c6f4be481a70bf13b2b81453298b462a1"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton
("Sign In").Click
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link
("Inbox (10)").Click


b=Browser("Yahoo!").Page("Inbox (10) - Yahoo! 
Mail").webtable("inbox(10)").ChildItem
(10,1,"WebCheckBox",0).Set "ON"
b.Delete
 
Is This Answer Correct ?    3 Yes 2 No
Venkata Rajkumar B
 
 
 
  Re: Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario
Answer
# 3
Browser("Yahoo!").Page("Yahoo!").Link("Mail").Click
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("login").Set "ch_sumathi2004"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("passwd").SetSecure "486c6f4be481a70bf13b2b81453298b462a1"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton
("Sign In").Click
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link
("Inbox (10)").Click
Set k=Browser("Yahoo!").Page("Inbox (10) - Yahoo! 
Mail").webtable("inbox(10)").ChildItem
(10,1,"WebCheckBox",index)
k.Set "ON"
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").WebButton
("Delete").Click
 
Is This Answer Correct ?    4 Yes 0 No
Ddpras
 
  Re: Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario
Answer
# 4
Option explicit
Dim a,b,c,d,e,odesc
set odesc=description.Create
odesc("micclass").value="WebCheckBox"
Set a=Browser("Business Mail").Page("Business Mail").Frame
("abody").WebTable("From").ChildObjects( odesc)
b=a.count
For c=1 to b step 1
If (c=10) Then
	a(c).set "ON"
	
Browser("Business Mail").Page("Business Mail").Frame
("abody").WebButton("Delete").Click
End If
Next
 
Is This Answer Correct ?    3 Yes 0 No
Jaipalreddy
 

 
 
 
Other VB Script Interview Questions
 
  Question Asked @ Answers
 
How to write a general script which should does the following a). If a page object is given, it should identify the page object of the corresponding page(site). b). It should identify all the links of that particular page. in QTP tool? Infosys2
Is it possible to pass optional argument to function in vb script?  2
I am running a windows based application.While running the script on QTP ,The Application pop-up an Error Message as "object Disabled" in two different scenarios Scenario 1-->The Application pop-up up a Message for Max Session Reached(as the application is set to hold 2 session and if if crosses the pre-defined limit then the error message pop-up) Scenario 2-->When Network connectivity is disabled the Application screen gets greyed out in colour with no operation possible. Now through Exception handling features in QTP ,we need to do the following For Scenarion 1-->Through Exception handling we need to just accept the Message pop-up in the Application and and resume with the call function as is for Scenario 2--> Through Exception Handling featutes on QTP we need to shut down the client , restart the client and resume the call functions as it is Note: The Application returns an Error Message as "object disabled" in both the cases i.e for pop-up message and when the Apllication getting greyed out due to Network failure how can we enhance the script in such a way that for the same error message retured by the application in two different and how to handle them???? Sasken2
How can I write HTML text to the window in VB Script?  2
Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina  2
what is the function to display current date?  4
what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ? CybAge1
How do you create a recordset object in VBScript?  2
what is the use of Data base check point ?  3
How can you have different number of cells for each row of a table in HTML?  2
What is difference between Active screen and movie screen recorder in QTP 9.2?  1
WHAT IS ENVIRONMENT VARIABLES?and where it is used in real time scenario?  1
When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?  1
How to create MSAcess table foriegn key  1
hey please tell me how to retriev data from excel sheet which puts the login name and password in the application? plz send me the code..please help me HP3
we executed QTP scripts in one browser(i.e IN)same scripts is working on another browsers or not (i.e mean netscap,m azol..like ) Accenture6
when you use For Loop, While..do, do..while? at what situations which loop will use.  1
how to write function to validate the number of characters entering into the text box? TCS2
What is the equivalent of VBScript?s On Error In Jscript ? Microsoft1
How to write functional test cases for send button in gmail. Arctern1
 
For more VB Script Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com