Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send("{DOWN}") or send("{ENTER}") not working #6

Open
GoogleCodeExporter opened this issue Jul 29, 2015 · 3 comments
Open

send("{DOWN}") or send("{ENTER}") not working #6

GoogleCodeExporter opened this issue Jul 29, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. in my webpage there is download popup I need to handle.(you can try any 
download popup)
2.I am using following code to handle
public class WindowsUtility{

    private static void setJacoblibrary()
    {
        System.setProperty(LibraryLoader.JACOB_DLL_PATH, System.getProperty("user.dir")+"\\tools\\autoit\\jacob-1.18-M2-x64.dll");
    }
public  static boolean downloadfile(String strTitle)//,String filePath,String 
browserName)
    {
        setJacoblibrary();
        AutoItX x = new AutoItX();
        x.winActivate(strTitle);
        x.winWaitActive(strTitle);
        x.sleep(1000);
        x.
        x.send("{DOWN}");
        x.sleep(1000);
        x.send("{ENTER}");
        return false;

    }

3. I am passing the popup name in string but it is not working

What is the expected output? What do you see instead?
It should press down then enter and file should get download but not happening 
. but my test case is also not failing

What version of the product are you using? On what operating system?
2003-2014

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 Jun 2015 at 9:32

@GoogleCodeExporter
Copy link
Author

Same Problem here.

x.send("{SPACE}") writes the string {SPACE} into an editor
x.controlSend(notepad, "", "", "{SPACE}") does nothing

Original comment by [email protected] on 24 Jul 2015 at 7:44

@MRDcoder
Copy link

please use it as x.send("{SPACE}", false);

@Subroid
Copy link

Subroid commented Nov 24, 2017

try x.send("{SPACE}") instead of x.send("{ENTER}")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants