kevin42036 Posted January 18, 2017 Share Posted January 18, 2017 Hi All, I am very new to AutoIt and scripting in general and would appreciate any help as I am sure there is a quick fix for this, I am just unable to figure it out. My window Title is <ARWNLSString nlsTable="ariba.html.procureui" nlsKey="ReviewTitle">Checkout</ARWNLSString> - Internet Explorer However, when I use WinWait with that title, I get a syntax error. I am assuming this is because my title has quotes embedded in it so it does not know where each quote begins and ends. WinWait("<ARWNLSString nlsTable="ariba.html.procureui" nlsKey="ReviewTitle">Checkout</ARWNLSString> - Internet Explorer") Any help advice is very appreciated! Thanks Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 18, 2017 Moderators Share Posted January 18, 2017 (edited) @kevin42036 welcome to the forum. Try a single quote around the outside: WinWait('<ARWNLSString nlsTable="ariba.html.procureui" nlsKey="ReviewTitle">Checkout</ARWNLSString> - Internet Explorer') You can also set the WinTitleMatchMode to 2 (match any substring), and do something like this: Opt("WinTitleMatchMode", 2) WinWait("ariba.html.procureui") Edited January 18, 2017 by JLogan3o13 kevin42036 1 "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...
Subz Posted January 18, 2017 Share Posted January 18, 2017 (edited) Just use single quotes around your string for example: ' <ARWNLSString nlsTable="ariba.html.procureui" nlsKey="ReviewTitle">Checkout</ARWNLSString> - Internet Explorer' JLogan3o13 bet me too it Edited January 18, 2017 by Subz kevin42036 1 Link to comment Share on other sites More sharing options...
kevin42036 Posted January 18, 2017 Author Share Posted January 18, 2017 @JLogan3o13 @Subz Really appreciate the help guys! Thanks a bunch 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