Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to fetch the valid suggestions in to variables
#1
Solved: 11 Years, 4 Months, 2 Weeks ago
Hi All,
Please observe the attached document.

1. I need to capture these valid suggestions in to variables, please explain on this.
2. Need to capture this number of results also (Ex: 12345789 results)

Thanks,
Venkat.Batchu


Attached Files Image(s)
   
Reply
#2
Solved: 11 Years, 4 Months, 2 Weeks ago
This is quite interesting for me, I am trying to achive the required.
I am able to get the Suggestion labels only not the results count.
I have done this with very easy method, see if this helps you in any way.

Code:
Browser("Google").Page("Google").WebEdit("q").Click
set WshShell = CreateObject("WScript.Shell")

WshShell.SendKeys "s"
wait 3
WshShell.SendKeys "{DOWN}"

sFirstSuggestion = Browser("Google").Page("Google").WebEdit("q").GetROProperty("value")
Print sFirstSuggestion

Do until sSugg = sFirstSuggestion
    'wait 3
    WshShell.SendKeys "{DOWN}"
    sSugg = Browser("Google").Page("Google").WebEdit("q").GetROProperty("value")
    Print sSugg
    
Loop

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Runtime variables details amitmanekar91 0 2,260 03-07-2015, 08:27 PM
Last Post: amitmanekar91
  Using Variables for calling a method in a class chitu576 0 1,783 12-05-2014, 12:31 AM
Last Post: chitu576
  Environment variables _JAVA_OPTIONS and JAVA_TOOL_OPTIONS is preventing java app abhiagarwal42 0 6,492 11-05-2012, 04:21 PM
Last Post: abhiagarwal42
  QTP webservice not valid weirise 0 2,348 10-24-2012, 02:19 PM
Last Post: weirise
MyBB Must declare scalar variables error codegizmo 0 2,125 10-18-2012, 02:32 AM
Last Post: codegizmo

Forum Jump:


Users browsing this thread: 2 Guest(s)