05-19-2011, 02:42 PM
Hi,
Could u plz explain this code...
What for you have mentioned the name as q, if i changed this and execute it throws an error........
Could u plz explain this code...
What for you have mentioned the name as q, if i changed this and execute it throws an error........
Code:
SystemUtil.Run "iexplore.exe","google.com"
Browser("title:=Google").Page("title:=Google").WebEdit("name:=q").Set "QTP script"
Browser("title:=Google").Page("title:=Google").WebEdit("name:=q").Submit
Wait(5)
Browser("name:=QTP script - Google Search").Page("title:=QTP script - Google Search").WebButton("name:=Search","index:=0").Highlight
wait(5)
Browser("name:=QTP script - Google Search").Page("title:=QTP script - Google Search").WebButton("name:=Search","index:=1").Highlight