Tip: Automation of SAP Business Client

In addition to my post about interesting behaviour of SAP Business Client here another tip to work with it.

When you attach to an SAP Buisness Client window you get as selector this
nwbc1

When you insert a transaction code the title changes and for the following selectors it isn’t possible to find the control, because the titles are different.
nwbc2

It is recommended to delete the title attribute in the selector of the SAP Business Client window and all works without any problems.
nwbc3

1 Like

Great tip Stefan,

Another option if you still want to ensure you’re within a certain transaction code could be to use wildcards around a portion of the title.

For example, if you were using t-code SM37 and all the titles contained the the string “SM37”, you could use “*SM37*” as your title selector.

This way you could still easily identify when an action fails to move to the next activity (due to a page not loading, button not actually clicking, etc.).

1 Like

@chenderson

Hello Cary,
thank you very much for your interesting hint.
Best regards
Stefan

1 Like

@chenderson,

Correct me If I’m wrong, It would give us the better results if we use asterisk (*) as title in those particular situations right? I don’t think there is an issue with this. Please let me know if there is any :slight_smile:

1 Like

@HareeshMR

My mistake, I forgot to use the \ character to display the asterisk (it was in there, just hidden!).

Thank you Hareesh!

1 Like

Just saw that @chenderson :slight_smile: