Forum Discussion

whuang's avatar
whuang
Regular Contributor
6 years ago

Why the find method cannot see the text on the page?

Hi everyone,   I have this vbscript here looking some text on a webpage, it keeps telling me that the property value was not found, but I can see the text I want to verify is right there on the p...
  • RUDOLF_BOTHMA's avatar
    RUDOLF_BOTHMA
    6 years ago

    You can find using partial text.  You will just need to use regex in you propertu values e.g.

     

    Page.Find("contentText","regexp:(Your password has been)",100).Exists
  • AlexKaras's avatar
    AlexKaras
    6 years ago

    Hi,

     

    > it can't find partialy text?

    You can use wildcards. E.g. :

    Page.Find("contentText","Your password has been*",100).

     

    > I find out Edge was running in process, but I didn't launch it at all. [...] Any idea why is that?

    This is because in order to improve start time (and, possibly, do some other things that they think they must do disregarding your opinion;) ) a lot of overly smart modern applications continue to run in the background after you explicitly close them. :)

    Solution: https://answers.microsoft.com/en-us/edge/forum/all/why-is-edge-running-when-i-have-not-opened-it/76c2606c-329c-4ebf-b755-a2bd0107b1ef