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 |
Explain about Table and DB Checkpoints?
what is L-trim function will do?
Batch testing in howmany ways u perfrom in QTP
What is difference between the For..Next and While..Wend statements?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.
Whats the realtime QTP testing process
how can you select random value for every iteration from a weblist
This is the script generated by qtp plz can anyone write the same script using descriptive programming plzzzz guys do answer. Browser("orkut - login").Page("orkut - login").WebEdit ("Email").Set "rgovard" Browser("orkut - login").Page("orkut - login").WebEdit ("Passwd").SetSecure "47525d8be4926ea2f6e96b9a3f7472b6ae38" Browser("orkut - login").Page("orkut - login").WebButton ("Sign in").Click Browser("orkut - login").Page("orkut - home").Link ("Logout").Click Browser("orkut - login").Page("orkut - login").Sync Browser("orkut - login").Close
Is it possible to call from one action to another action in qtp?