I am using the SapGuiLibrary library to automate some tests in SAP using the Robot Framework. To identify the elements I am using the Scripting Tracker and I was able to identify the element I want to interact with, but when I click on it, or change the value of the field I get the error message:
_ValueError: Cannot find element with id 'wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT01/ssubSUBSCREEN_BODY:SAPMV50A:1202/tblSAPMV50ATC_LIPS_OVER_INB/txtLIPSD-GLFIMG[2,0]'
Keywords
that the user is logged into PartLinQ
${title} Get Value ${SAP_Title}
Should Be Equal ${title} SAP Easy Access ${SPACE}-${SPACE} User Menu for test ID for automated Test Scripts 1
the user update the Business Partner
Input Text ${Txt_DeliveryQtd} 5`
That was I got from Script Tracker:
_$ID = Invoke-Method -object $session -methodName "findById" -methodParameter @("wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV50A:1202/tblSAPMV50ATC_LIPS_OVER_INB/txtLIPSD-GLFIMG[2,0]"); Set-Property -object $ID -propertyName "text" -propertyValue @("5");
I am using the SapGuiLibrary library to automate some tests in SAP using the Robot Framework. To identify the elements I am using the Scripting Tracker and I was able to identify the element I want to interact with, but when I click on it, or change the value of the field I get the error message:
_ValueError: Cannot find element with id 'wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT01/ssubSUBSCREEN_BODY:SAPMV50A:1202/tblSAPMV50ATC_LIPS_OVER_INB/txtLIPSD-GLFIMG[2,0]'
Here is what I'm doing:
`Library SapGuiLibrary Resource ../Resource/Login_PartLinQ.robot
Variables ${Txt_DeliveryQtd} wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV50A:1202/tblSAPMV50ATC_LIPS_OVER_INB/txtLIPSD-G_LFIMG[2,0]
Keywords that the user is logged into PartLinQ ${title} Get Value ${SAP_Title} Should Be Equal ${title} SAP Easy Access ${SPACE}-${SPACE} User Menu for test ID for automated Test Scripts 1
the user update the Business Partner Input Text ${Txt_DeliveryQtd} 5`
That was I got from Script Tracker: _$ID = Invoke-Method -object $session -methodName "findById" -methodParameter @("wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV50A:1202/tblSAPMV50ATC_LIPS_OVER_INB/txtLIPSD-GLFIMG[2,0]"); Set-Property -object $ID -propertyName "text" -propertyValue @("5");