Webページのタグを指定して文字を抜き出したい

とあるWebページを使ったRPAを作成しているのですが、
<span class="mem_loc"> China</span>
と書かれているところの、"China"を抜き出したいと思っています。
class = "men_loc"までわかっているので、
そこをアクティビティ等で指定して、"China"と抜き出せる方法があればご教示ください。

" I’d like to extract Webpage word using tag. "
Good day.
I’m making a RPA using Web page.
I’d like to get the word “China” from following web tag.
<span class="mem_loc"> China</span>
I know “class=“mem_loc”” so I think maybe something activities can get this word.
If you know it , please teach me. Thank you.

@d338486cca74908539e3

Try like this:

            Str = " <span class="mem_loc"> China</span>" 

            requiredStr = Str.Split(">"c)(1).Split("<"c)(0)
1 Like

@lakshman
Thank you for your reply!
What is this variable "Str’s’ type ?
I’m trying to it, but happen to compile error.

1 Like

@d338486cca74908539e3

Here, Both Str and requiredStr are string variables.

Oh! “Str” is Strings’s omitted word! I’m sorry.
But I can get the word “China” by your way! Thank you!! :wink:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.