Sign in to follow this  
Followers 0
bastian33

Wait for text to exist on page

5 posts in this topic

#1 ·  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!

Share this post


Link to post
Share on other sites



#2 ·  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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites

#4 ·  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!

Share this post


Link to post
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
Sign in to follow this  
Followers 0