I am testing a Website thelancet and create a description
for searching "health" in search edit box.But my description
failed on last two lines.Can anybody solve this
Answer / nittinengineer
Dim URL: URL = "http://www.thelancet.com/"
Set obj_WebBrowser = Description.Create
obj_WebBrowser ("micclass").value = "Browser"
obj_WebBrowser ("name").value = ".*Microsoft Internet
Explorer"
obj_WebBrowser ("application version").value="internet
explorer 8"
obj_WebBrowser ("LocationURL").value = URL & ".*"
obj_WebBrowser ("openurl").value= URL & ".*"
Set obj_WebPage = Description.Create
obj_WebPage ("micclass").value = "Page"
Dim Search
Dim ObjWebEdit
Dim ObjWebttn
Dim GoBttn
Set Search=Description.Create
Set ObjWebEdit=Description.Create
Set ObjWebttn=Description.Create
Set GoBttn=Description.Create
Search("micclass").value="WebEdit"
Search("name").value="searchTerm"
ObjWebEdit("micclass").value="WebEdit"
ObjWebttn("micclass").value="WebButton"
GoBttn("micclass").value="WebButton"
GoBttn("html tag").value="INPUT"
GoBttn("type").value="submit"
Browser(obj_WebBrowser).Page(obj_WebPage).ObjWebEdit(Search).set"Health"
Browser(obj_WebBrowser).Page(obj_WebPage).ObjWebttn(GoBttn).Click
| Is This Answer Correct ? | 0 Yes | 0 No |
HOW TO FIND WEBTABLE? HOW TO RETRIVE THE WEBTABLE VALUES? PLZ TELL ME THE PROCEDURE.
How to retrieve the property of an object?
How QTP recognizes Objects in AUT?
Is any limitation to xml checkpoints?
How to handle Dynamic Arrays?
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
anybody wants to learn QTP with realtime implementations and complete framwork contact to this mail id ciraaj@gmail.com
How to compare source and target database in testing? Can anybody please tell me in detail the procedure how to compare it?
How to import a test case present in ".xls" file to TD under a Test set?
how can you write a script without using GUI in QTP?
what are the limitations of automation testing?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?