Hi Paul,
Since your reply I try to use pywinauto. I was able to get the control
of a window that is a good news but it is not working for sub window
this main window create.(popup windows)
eg) File -> print    will open print window but the code is not
clicking print button. I try several combination
app,Print.OK.CloseClick() or app,Print.OK.Click() is not working

my code goes like that
app=application.Application()
qi = app.window_(title_re = ".*arcMap.*")
qi.TypeKeys("%FP")
app,Print.OK.Click()

the last line of code is not working same thing with file open to
qi.TypeKeys("%FO") create popup window "open" but
app,Open.Filename.SetEditText("test1,txt") is not working any help to
overcome to this problem (Here the "Print" , "Open" are windows title I
am using without any undestanding why I am using. Any help?





Paul McGuire wrote:
> "vinthan" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > hi,
> > I am new to python. I have to write test cases in python. An
> > application is open in the desk top ( application writen in .Net) I
> > have to write code to get focuse the application and click on the link
> > which in the one side  and it will load the map on the other and I have
> > to check map is loaded. Any one tell me how do I use Dispatch or any
> > other method to write a code.
> >
> If you are running on Windows, look into pywinauto
> (http://www.openqa.org/pywinauto/).
>
> I have successfully used it to interact with a Flash animation running
> within an IE browser.
>
> I also had to inspect the graphics displayed by the Flash animation, for
> this I used PIL (http://www.pythonware.com/products/pil/).
> 
> Good luck,
> -- Paul

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to