Unified Functional Testing (formerly QTP) News and Support Forum
Showing results for 
Search instead for 
Do you mean 

Not able to select the item using SAPList during the PlayBack

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
Occasional Contributor

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
Occasional Visitor

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