Hi all, I am using Get Page Source in Robot Framwork and using Browser library, I am receibing the whole line> ${source} = <hea… But I am interested only in the Version number> Version: 6.8.0.37161 How is it possible to get only Version: 6.8.0.37161 Can someone please guide me? Thanks in advance
Hi
You could use a regex pattern on the returned source [A-Za-z]*: [0-9.]*
as very basic example using part of your post:
if you do not need the "Version: " then you can use (?<=: )[0-9.]*
So you’d import String libary and then ${result}= get regexp matches ${source} "insert pattern"
Note: I could not get \s work within the pattern though does elsewhere.
Thanks.
1 Like
Hi Daryl, many thanks for your help, I apreciate it, have a nice day and many thanks
2 Likes