I am facing an issue. I have to search for a string("Somuya86@gmail.com") as well as i have to count its no of occurences in that page.
e.g. I habe to search "Somuya86@gmail.com" and its no of occurences within the gmail inbox.The problem is that "Somuya86@gmail.com" is coming as a link in that page say for 10 times. How will i fetch its text to match??
Thnaks in advance.
You could use the page source details for finding all the occurrences of the given text. Use the BrowserPage.GetPageSource function which returns a list of string. Using a while / for loop you search for *Somuya86@gmail.com* using matchstr() function and increment a counter everytime the value is found.