dinesh.s1
(Dinesh S)
1
Hello all .
I am using get attribute activity with “visibleInnerText” attribute to differentiate if the status bar is error or success.
Examble:

I am getting the following outputs.
Error Message Bar Company code 123 not defined
Company code 123 not defined
Success Message Bar Document is an accounting document (not a preliminary one)
Document is an accounting document (not a preliminary one)
My requirement is that i need Status ( Success/Error) seperately and the status message which is repeating twice in both the cases.
Something like this.
Gokul001
(Gokul Balaji)
2
HI @dinesh.s1
Have you tried with Scrap Scrapping method to get the Success and Error message?
Regards
Gokul
1 Like
dinesh.s1
(Dinesh S)
3
Hi.
I used Get full text activity but it gives empty value.
Gokul001
(Gokul Balaji)
4
HI @dinesh.s1
Have you tried with Screen scrapping

Check out the document
1 Like
dinesh.s1
(Dinesh S)
5
I’ll use it and confirm it to you.
Gokul001
(Gokul Balaji)
6
Okay @dinesh.s1 , Let us know if you face any issue.
dinesh.s1
(Dinesh S)
7
I used screen scrapping, and this are the outputs.

Gokul001
(Gokul Balaji)
8
What is the Company code 123 not defined
?
Do you have this text in the screen while Screen scraping? @dinesh.s1
dinesh.s1
(Dinesh S)
9
Yes. I deliberately given wrong input just to check the status.
Gokul001
(Gokul Balaji)
10
What do you want to archive? @dinesh.s1
dinesh.s1
(Dinesh S)
11
Yes.
The error message is repetative.
I just want the message Error: Company code 123 not defined.
Gokul001
(Gokul Balaji)
12
HI @dinesh.s1
After the screen scrapping Use Regex Expression
System.Text.RegularExpressions.Regex.Replace(YourString,"\S.*(?=Company code \d+ not defined)","").Tostring

Regards
Gokul
1 Like
dinesh.s1
(Dinesh S)
13
Thank you.
What If I want error and the message as seperately…?
Like this:

Gokul001
(Gokul Balaji)
14
HI @dinesh.s1
Just Use “Error”
System.Text.RegularExpressions.Regex.Match(YourString,"^Error").Tostring

Regards
Gokul
1 Like
system
(system)
Closed
15
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.