laendinger Posted June 15, 2011 Share Posted June 15, 2011 Hi there, I'm new to AutoIt and have a problem. I'm trying to automated test a WebApp with Selenium. In one testcase, I open a Printdialog, and I want to close it, so that the user haven't to click anything. I think it is possible to controll the printwindow with AutoIt (Selenium can't handle it) but I couldn't find a way to do so. Any help is appreciated. laendinger Link to comment Share on other sites More sharing options...
JohnOne Posted June 15, 2011 Share Posted June 15, 2011 I'm going to guess WinClose() if you just want to close it, or ControlClick() if you want to interact in some other fashion. Use Window info tool. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Joon Posted June 15, 2011 Share Posted June 15, 2011 This code will click Print button on ALL Print Dialog. AdlibRegister("_PrintOK") While ProcessExists("iexplore.exe") Sleep(100) WEnd Exit Func _PrintOK() ControlClick("Print","Select Printer","&Print") EndFunc 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