Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting a Value in SAPList
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
(05-10-2013, 06:43 AM)basanth27 Wrote: Good. Whatever works is good, however I wouldnt advise using a hard wait..Instead try to syncronize the object to complete the value selection. There should be a timeout or a property. If that doesnt work use Hard Wait as the last resort.

Hi,

Please find below lines of code, working perfactly. :-)

Browser("Browser").Page("Page").SAPFrame("SMART UI").SAPList("Equipment Number").FireEvent "click"
Browser("Browser").Page("Page").SAPFrame("SMART UI").SAPList("Equipment Number").Object.setAttribute "value", "Electricity"
Browser("Browser").Page("Page").SAPFrame("SMART UI").SAPList("Equipment Number").Object.focus
Browser("Browser").Page("Page").SAPFrame("SMART UI").SAPList("Equipment Number").Click
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys  "{DOWN}"
WAIT(1)
WshShell.SendKeys  "{ENTER}"
set WshShell=nothing
Reply


Messages In This Thread
Setting a Value in SAPList - by nivdhi - 05-08-2013, 06:42 PM
RE: Setting a Value in SAPList - by basanth27 - 05-09-2013, 06:55 AM
RE: Setting a Value in SAPList - by nivdhi - 05-09-2013, 09:29 PM
RE: Setting a Value in SAPList - by basanth27 - 05-10-2013, 06:43 AM
RE: Setting a Value in SAPList - by Amita Vaish - 09-13-2016, 12:20 PM
RE: Setting a Value in SAPList - by balahex - 02-19-2020, 01:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing System Display Setting and Resolution using UFT or VB script or any code srikanthbura 0 2,661 09-07-2018, 11:21 AM
Last Post: srikanthbura
  SAPLIST is not recognised inside SAPTable mann 0 1,250 02-26-2018, 11:24 AM
Last Post: mann
  Bad Length Error on Setting values in SAPGUIEdit Ankesh 1 5,459 12-24-2014, 07:00 PM
Last Post: manishk
  Setting up QTP on Terminal Server timletap 0 2,388 09-24-2012, 06:56 PM
Last Post: timletap
  SAPLIst within a table is not working lakshjai 1 5,928 02-18-2011, 02:19 AM
Last Post: shailendra.pathak

Forum Jump:


Users browsing this thread: 1 Guest(s)