Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to write vbscript on web applications in qtp? explain with one example?

asked marvit August 19, 2014 02:05 AM  

How to write vbscript on web applications in qtp? explain with one example?


1 Answers

answered By Dharma   0  

systemutil.Run("") set BRO =Description.Create() BRO("title").Value = "Welcome to India" BRO("name").value ="Welcome to India" BRO("openedbytestingtool").value= true Set PG =Description.Create() PG("title").value="Welcome to India" PG("url").value="" Set UN =Description.Create() UN("name").value= "login" UN("Class Name").value ="WebEdit" UN("type").value= "text" UN("html tag").value="INPUT" Set PWD =Description.Create() PWD("name").value ="passwd" PWD("Class Name").value="WebEdit" PWD("type").value="password" PWD("html tag").value="INPUT" Set Login =Description.Create() Login("name").value ="Go" Login("Class Name").value="WebButton" Login("type").value="submit" Login("html tag").value="INPUT" Login("value").value="GO" Login("class").value="rmailgobtn" temp= Browser("Welcome to").Page("Welcome to").WebElement("ShockwaveFlash1").Exist If temp= true Then 'Browser("Welcome to").Page("Welcome to").WebElement("ShockwaveFlash1"). End If Browser(BRO).Page(PG).WebEdit(UN).Set "shyam_sad" Browser(BRO).Page(PG).WebEdit(PWD).Set "shyam" Browser(BRO).Page(PG).WebButton(Login).Click
This is the Exam ple of Creating mail account in rediff
   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!