richtextbox unable to find word using docymenttext on webpage?
i found the soulation, here it is :
if richtextbox.contains = "milk" then
search for "next"
end if
Re: richtextbox unable to find word using docymenttext on webpage?
"Cookies Milk" is not the same as
"Cookies
Milk"
In 2nd string, there is a new line between the 2 words. When you compare 2 strings, white spaces do count. Therefore, if you expect the 2 strings above to match, you have to account for white spaces. Using regex makes the job easier.