bastian33 Posted March 21, 2017 Share Posted March 21, 2017 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 More sharing options...
Moderators JLogan3o13 Posted March 21, 2017 Moderators Share Posted March 21, 2017 @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 More sharing options...
Gianni Posted March 21, 2017 Share Posted March 21, 2017 ?? WinGetText Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
bastian33 Posted March 22, 2017 Author Share Posted March 22, 2017 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! Link to comment Share on other sites More sharing options...
Danp2 Posted March 22, 2017 Share Posted March 22, 2017 _IEBodyReadText Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now