Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Will QTP
#9
Solved: 10 Years, 9 Months, 1 Week ago
Hi,
As per the snap shot, u are searching some text and u r getting a list based on ur search.
Try the below code it might help u:

Code:
Set WshShell = CreateObject("WScript.Shell")
wait (1)
WshShell.SendKeys "<text to search>"
wait(1)
Set WshShell = Nothing
wait 4
Browser("").Page("").Frame("").WebElement("innertext:=test","index:=1").Click

Wait 2
'In last line of code..webelement("innertext.....) use object spy to get the properties of list displayed and use thoes properties values here.

For 2nd query, Yes u can handle ajax ..for that u have 2 go for Ajax suppoted addin.

Let me know in case of any help required.

Regards,
Sankalp
Reply


Messages In This Thread
Will QTP - by gvibin - 07-04-2011, 06:28 PM
RE: Will QTP able to automate the AJAX calls on WEB. - by sshukla12 - 06-13-2012, 02:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)