Eric2010 Posted April 14, 2010 Share Posted April 14, 2010 I am using Selenium to do web testing, but Selenium cannot handle windows popups, which Autoit is good at it. So I want Selenium to call Autoit to handle this problem. My scenario is like this: I need to search for a file in a folder, after the file is found, right click it and choose Print to print it out. That is all I need to do. Can anybody give me a quick answer? (I know I can learn Autoti from scratch, and I will). Best, Eric Link to comment Share on other sites More sharing options...
BrettF Posted April 14, 2010 Share Posted April 14, 2010 Hi Eric2010. First of all, welcome to the forums! Is there any reason why AutoIt can't do the whole task? AutoIt has great capabilities for doing automated testing and the like. To answer your questions: To find the file you should be able to use FileFind* functions to find a file. To open the file for printing, you can use: ShellExecute("PATH\TO\FILE\FILENAME.EXT", "PARAMS", "WORKINGDIR", "print") Give something like that a go and if you still need help, post your code and see what happens Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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