Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting a Value in SAPList
#6
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi,
FYI, Following code, I worked for me. 

On Error Resume Next

Browser("Browser_2").Page("Page").Frame("myActionIframe").SAPList("Tracking Scenario:").Click
wait 1
pEachDropdownItem = "//*[@class='lsListbox lsListbox--popup lsLCDropShadow']//*[@class='lsListbox__value']"    
pTrackScenarioDropdown = "//*[@class='lsListbox lsListbox--popup lsLCDropShadow']"

Set Desc = Description.Create
Desc("micclass").value = "WebElement"
Desc("xpath").value = pEachDropdownItem
Set oObjs = Browser("Browser_2").Page("Page").Frame("myActionIframe").ChildObjects(Desc)

if Browser("Browser_2").Page("Page").Frame("myActionIframe").WebElement("xpath:=" & pTrackScenarioDropdown).Exist(0) Then
    For ii = 0 To oObjs.Count Step 1
        if oObjs(ii).GetROProperty("innertext") = "Manifest Query" then
            print "index:" & ii & ", value: " & oObjs(ii).GetROProperty("innertext")
            oObjs(ii).DoubleClick
        End If
    Next
end if
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,654 09-07-2018, 11:21 AM
Last Post: srikanthbura
  SAPLIST is not recognised inside SAPTable mann 0 1,246 02-26-2018, 11:24 AM
Last Post: mann
  Bad Length Error on Setting values in SAPGUIEdit Ankesh 1 5,444 12-24-2014, 07:00 PM
Last Post: manishk
  Setting up QTP on Terminal Server timletap 0 2,381 09-24-2012, 06:56 PM
Last Post: timletap
  SAPLIst within a table is not working lakshjai 1 5,904 02-18-2011, 02:19 AM
Last Post: shailendra.pathak

Forum Jump:


Users browsing this thread: 5 Guest(s)