Hi @loginerror
I need to type into a SAP field.
The original selector for field is below:
" <wnd app=‘saplogon.exe’ cls=‘SAP_FRONTEND_SESSION’ title=‘Create Purchase Order’ />
<sap id=‘usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/ctxtMEPO1211-EMATN[4,0]’ />"
I need to make the location of element dynamic by passing variable in place of [column,row]
The selector I am using is:
" <wnd app=‘saplogon.exe’ cls=‘SAP_FRONTEND_SESSION’ title=‘Create Purchase Order’ />
<sap id=‘usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/ctxtMEPO1211-EMATN[4,"+rowIndex+"]’ />"
still I am getting error as below
Compiler error(s) encountered processing expression “” <wnd app=‘saplogon.exe’ cls=‘SAP_FRONTEND_SESSION’ title=‘Create Purchase Order’ />
<sap id=‘usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/ctxtMEPO1211-EMATN[4,"+rowIndex+"]’ />"".
String constants must end with double quote.
I would be grateful if you can resolve it asap.