Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
web edit pull down
#1
Solved: 11 Years, 4 Months ago
Does anybody know the script to select an item from a WEBEDIT pulldown?

Here is the scenario

enter name in webedit
Select first item from webedit pulldown.
then click submit button.

enter name in web edit
Select second from webedit pull down
then click submit button.

enter name in web edit
Select third from webedit down
then click submit button

total of twenty items

thank you!
Reply
#2
Solved: 11 Years, 4 Months ago
Hi,

Please find the below test case to execute..
1.Launch the url as "http://www.google.co.in/"
2.Enter "venk" in webedit and select required one among the suggestion.
3.Hit Enter or click [Google search] button


Code:
Browser("xxxx").Page("xxxx").WebEdit("venk").Click
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "venk"
wait 3
WshShell.SendKeys "{DOWN}"  ' here i have selected first item  (if u want to select 3rd one use do while loop to select thte required one)
WshShell.SendKeys "{ENTER} "



please let me know if you need any information apart from this

Thanks,
Venkat.Batchu

With complete code:
Code:
Browser("Google").Page("Google").WebEdit("q").Click
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "venk"
wait 3
WshShell.SendKeys "{DOWN}" ' here i have selected first item (if u want to select 3rd one use do while loop to select thte required one)
WshShell.SendKeys "{ENTER} "
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to edit a text in aParagraph shaan.mishra87@gmail.com 2 2,558 08-26-2016, 04:48 PM
Last Post: shaan.mishra87@gmail.com
  Auto complete for Web Edit box branjitk 2 5,929 12-20-2014, 09:31 PM
Last Post: supputuri
  Using GetString to pull information from a DB jcraig26 2 2,852 11-02-2012, 09:40 PM
Last Post: SteveS
  Could not able to click on 'Edit' Button in a Table kotaramamohana 3 3,624 09-26-2012, 07:40 PM
Last Post: krr
  Screen scraping using mainframe coordinates versus using highlight edit/copy scouthe2 3 7,021 07-18-2011, 05:56 PM
Last Post: souvikghosh_diatm

Forum Jump:


Users browsing this thread: 1 Guest(s)