I wanna check in SAP, if a specific field is empty or filled with text but I don’t have the correct solution yet, as it doesn’t recognize a text, even when it is filled.
How would you solve this problem? I already read about the solution String.IsNullorEmpty(value), but what is the step before?
Hi
make sure SAP GUI is installed so that we would be able to select each and individual element in that application https://docs.uipath.com/studio/docs/enabling-sap-gui-scripting
and once after enabling this GUI
we can use GET ATTRIBUTE ACTIVITY and check with “text” or “aaname” attribute whether it is empty or with any value in it, get the output with a variable of type string str_output
–now use a IF condition and mentin this condition String.IsNullOrEmpty(str_output.ToString)
if true it will go to THEN part or will go to ELSE part
or still if we are not able to identify the text we can use SCREEN SCRAPPING method in the design panel
–get the output with a variable of type string and check again with same IF condition
or we can choose this field with empty value in it as a IMAGE with IMAGE EXISTS activity and get the output with a boolean variable
if the field is empty this activity will give us true as output and use a IF condition to validate this bool_variable = True
if true it will goto THEN part or to the ELSE part
Are you able to identify other elements in SAP Application ?
If you are not identifying any elements then I guess you didn’t install SAP script. Other alternative is to we can use Computer Vision activities or image activities to identify these kind of elements.