Sign in to follow this  
Followers 0
Eric2010

how to right click a file name and choose Print from the popup menu

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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

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