Unified Functional Testing Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to select the item using SAPList during the PlayBack

Srinivasula Red
Acclaimed Contributor

Not able to select the item using SAPList during the PlayBack

Hi Team

    I am working on a SAP Web Automation. I am facing an issue in selecting an item using SAPList during the Playback. The code it got recorded in the recor mode is

 

Browser("Schedule a Course Date").Page("Schedule a Course Date").SAPiView("SAPiView").SAPList("Delivery Method:").Select :"Classroom Training".

 

The same code is not working when i re-run it once. When i chekc the existence of the SAPList it returning "True"

 

Could you please helpout in providing a solution for the same

 

 

Regards

Srinias

 

 

2 REPLIES
AnupamKarn
Occasional Advisor

Re: Not able to select the item using SAPList during the PlayBack

Hi,

 

I believe you are using "SAP NetWeaver" application.

 

Try below code:

 

Browser("Schedule a Course Date").Page("Schedule a Course Date").SAPiView("SAPiView").SAPList("Delivery Method:").click

Set obj=createobject("Mercury.DeviceReplay")

obj.SendString "Classroom Training"

Browser("Schedule a Course Date").Page("Schedule a Course Date").SAPiView("SAPiView").SAPList("Delivery Method:").submit

Set obj = Nothing

Highlighted
Haritha_Tanneru
Acclaimed Contributor

Re: Not able to select the item using SAPList during the PlayBack

Hi,

 

I had the same problem and your code worked like a charm, thank you :)

 

Haritha Tanneru

//Add this to "OnDomLoad" event