Jump to content

Recommended Posts

Posted

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!

  • Moderators
Posted

@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!

Posted

Hi,

 

I'm talking about IE window.

After a form is submitted, the script should wait for text to be visible, that's it.

I've tried with WinGetText, but no luck. Maybe I coded it wrong, don't know.

Thanks!

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
  • Recently Browsing   0 members

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