Jump to content

Wait for text to exist on page


Recommended Posts

Hey all, n00b here:)

 

Just a little problem I'd like to ask for assistance with, if you please.

I need to wait for some text to exist on page (after a form is submitted), e.g. "Success!".

For now, I did this so far and I'm stuck a bit:

While 1
$text = WinGetTitle("[CLASS:tooltips_class32]", ""); What to do here instead of WinGetTitle?
If StringInStr($text, "Success!") Then
Sleep(2000)
WEnd

I know, the WinGetTitle is wrong, but I don't know the right function. Pls help:)

 

Thanks a lot!

Link to comment
Share on other sites

  • Moderators

@bastian33 when you say "text on a page" are you talking an IE/Chrome Window, a Desktop App, or something else? The more information you can provide the more able we are to assist.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...