pywinauto-users Mailing List for Python Win32 GUI Automation
Status: Alpha
Brought to you by:
mcmahon_m
You can subscribe to this list here.
2006 |
Jan
(16) |
Feb
(53) |
Mar
(20) |
Apr
(35) |
May
(13) |
Jun
(1) |
Jul
(10) |
Aug
(6) |
Sep
|
Oct
(4) |
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(4) |
Feb
|
Mar
|
Apr
(9) |
May
(2) |
Jun
(3) |
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
(4) |
Dec
(6) |
2008 |
Jan
|
Feb
(2) |
Mar
|
Apr
(3) |
May
|
Jun
(2) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
(6) |
Dec
(2) |
2009 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
|
Feb
(15) |
Mar
(5) |
Apr
(14) |
May
(3) |
Jun
|
Jul
(5) |
Aug
(3) |
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
|
2011 |
Jan
(7) |
Feb
(10) |
Mar
(7) |
Apr
(2) |
May
(7) |
Jun
|
Jul
(3) |
Aug
(9) |
Sep
(3) |
Oct
|
Nov
(4) |
Dec
(1) |
2012 |
Jan
(17) |
Feb
(4) |
Mar
(1) |
Apr
(6) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
(6) |
Nov
|
Dec
(1) |
2013 |
Jan
(1) |
Feb
(1) |
Mar
(7) |
Apr
(2) |
May
(3) |
Jun
(4) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Rand B. <ra...@gm...> - 2014-02-08 05:34:13
|
I was attempting to bring an app, Evernote into focus. I couldn't get it to work from ipython or a command prompt. I finally got it to work by opening a command prompt with Admin Rights. Is this a common behavior ? Rand |
From: Wei C. T. <wei...@gm...> - 2013-11-12 08:12:00
|
Hi, I try to write a python script that uses pywinauto to control a metro app, namely the Music player. For usual .exe, I was told that a manifest with uiaccess="true" is required. But in this case I'm just running a script from within the python interpreter. In my Windows 8 machine, the Windows SDK inspect.exe is able to see the metro app. When I use it to the windows handle and pass it to pywinauto.handleprops.processid, the correct pid is obtained. However, when I use pywinauto.findwindows.enum_windows, the handle is not reported in it. Same goes with pywinauto.findwindows.find_window(title="Music"). I have tried adding a python.exe.manifest in c:\python26\ and even try modify the C:\Python26\Lib\site-packages\pythonwin\Microsoft.VC90.MFC.manifest. Neither works. Anybody experienced pywinauto with metro app before? Thanks! |
From: Nelson M. M. <tat...@gm...> - 2013-08-08 21:53:31
|
Hi, I need to use with flash, Is it possible? Tks, Nelson Moreno Machado |
From: Vasily V. R. <vas...@gm...> - 2013-06-17 09:33:21
|
pywinauto cannot control remote application. You need a pywinauto copy on remote machine to run it with your app. BTW, you shouldn't minimize RDP window to prevent loosing GUI context. But you can safely switch focus from RDP to another application on your local desktop. The application you run has separate GUI window, right? If it's just command line utility, probably you don't need pywinauto at all: just use subprocess.Popen with stdin, stdout, stderr parameters. But if it has window(s) separate from cmd.exe, you need separate Application object. Example (just a schema, I did not test it): cmd_app = Application.Start("cmd.exe") cmd_wnd = cmd_app.Window_(title=r"C:\Windows\system32\cmd.exe", class_name="ConsoleWindowClass") cmd_wnd.TypeKeys("your run cmd string {ENTER}", with_spaces=True) your_app = Application.Connect(path="path_to_your_app_exe") print your_app.Windows_() your_app.SomeMainWindow.PrintControlIdentifiers() # other actions Best regards, -Vasily. 2013/6/14 Spencer Kent <spe...@hp...> > I guess I don't quite understand why I can't use just start and then have > the > correct application object, especially since this is how it's done in the > examples, but I went back and used the connect method once I had opened a > command window by hand. Then when I print control identifiers it doesn't > show > any at all (but it doesn't return an error either). I tried .TypeKeys > ('Hello, > World') and the text popped up in my python shell. Then I tried .TypeKeys a > second time and then it popped up in my command prompt! I'm not going to > have > to put it in there twice when I run it in a script am I? > > I'm using the python shell to test out the functionality because I'm > trying to > call the command prompt itself. All I want to do is enter text at the > command > prompt and press enter. (I'd be running the script on my desktop computer > and > trying to control the command prompt of a networked computer through a RDP > connection). This is possible, right? I can run the script to control > another > computer's command prompt through the RDP? > > Thanks for your quick response > > > Spencer > > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Pywinauto-users mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywinauto-users > |
From: Spencer K. <spe...@hp...> - 2013-06-14 18:26:30
|
I guess I don't quite understand why I can't use just start and then have the correct application object, especially since this is how it's done in the examples, but I went back and used the connect method once I had opened a command window by hand. Then when I print control identifiers it doesn't show any at all (but it doesn't return an error either). I tried .TypeKeys ('Hello, World') and the text popped up in my python shell. Then I tried .TypeKeys a second time and then it popped up in my command prompt! I'm not going to have to put it in there twice when I run it in a script am I? I'm using the python shell to test out the functionality because I'm trying to call the command prompt itself. All I want to do is enter text at the command prompt and press enter. (I'd be running the script on my desktop computer and trying to control the command prompt of a networked computer through a RDP connection). This is possible, right? I can run the script to control another computer's command prompt through the RDP? Thanks for your quick response Spencer |
From: Vasily V. R. <vas...@gm...> - 2013-06-14 16:51:42
|
Hi Spencer, Did you create one more Application object for the new process you ran? One Application object can search top-level windows in bounds of one process only. Just use method connect instead of start if it's the case. Best regards, -Vasily. 2013/6/14 Spencer Kent <spe...@hp...> > Hi, > > I'm trying to automate execution of a program that's called from the > windows > command prompt. I've been able to open a fresh instance of command prompt > no > sweat. When I ask pwinauto to show the possible windows and their > associated > text it only gives me one option and it happens to be the command prompt > (u'Administrator: C:\etc...)Yay. I use the exact window title to specify > the > window using app.window_(title_re = ....) and it returns a > WindowSpecification > object. > > The problem is that when I try to print the control identifiers (I > instantiate > the windowspecification object as cwin and then call > cwin.print_control_identifiers()), it gives me a WindowNotFoundError. I > might > expect a different kind of error like it couldn't find any controls or > something but I don't understand why it can't find the window I just > defined. > > Could you help me figure out what's going on? I'd really appreciate it :) > > Thanks, > > Spencer > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Pywinauto-users mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywinauto-users > |
From: Spencer K. <spe...@hp...> - 2013-06-14 15:00:12
|
Hi, I'm trying to automate execution of a program that's called from the windows command prompt. I've been able to open a fresh instance of command prompt no sweat. When I ask pwinauto to show the possible windows and their associated text it only gives me one option and it happens to be the command prompt (u'Administrator: C:\etc...)Yay. I use the exact window title to specify the window using app.window_(title_re = ....) and it returns a WindowSpecification object. The problem is that when I try to print the control identifiers (I instantiate the windowspecification object as cwin and then call cwin.print_control_identifiers()), it gives me a WindowNotFoundError. I might expect a different kind of error like it couldn't find any controls or something but I don't understand why it can't find the window I just defined. Could you help me figure out what's going on? I'd really appreciate it :) Thanks, Spencer |
From: Vasily V. R. <vas...@gm...> - 2013-05-31 15:33:35
|
Hi Lakshmi, The problem doesn't depend on pywinauto or any other GUI automation framework, as far as I know. The widely known workaround for the problem is Remote Desktop (RDP) session which provides necessary GUI context needed for GUI automation. If you have an ability to connect to remote target machine which should run your automation task, just keep RDP session running and *do not minimize RDP* to the taskbar. Machine with running RDP can be locked by Ctrl+Alt+Del safely for your automation tasks on remote target machine that is also locked. Hopefully, it should help. Best regards, -Vasily. 2013/5/31 laxmi setty <ls...@ya...> > Hi, I have automated some of the activities using pywinauto but when I > lock my system (using Ctrl + Alt + Del), it stops > Later when I unlock the system, it starts performing the task from the > beginning. Kindly help me with this, as I am unable to use this, > b'coz if a user has to be logged in for all the 9 hrs in a system, it > doesn't serve my purpose of automating that task. Thanks & Regards, > Lakshmi > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Pywinauto-users mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywinauto-users > |
From: laxmi s. <ls...@ya...> - 2013-05-31 14:16:57
|
Hi, I have automated some of the activities using pywinauto but when I lock my system (using Ctrl + Alt + Del), it stops Later when I unlock the system, it starts performing the task from the beginning. Kindly help me with this, as I am unable to use this, b'coz if a user has to be logged in for all the 9 hrs in a system, it doesn't serve my purpose of automating that task. Thanks & Regards, Lakshmi |
From: laxmi s. <ls...@ya...> - 2013-05-30 17:19:33
|
Hello all, I have automated some of the activities using pywinauto but when I lock my system (using Ctrl + Alt + Del), it stops and later when I unlock the system, it starts performing the task from the beginning. Kindly help me with this, as this is making my tool of least importance. Thanks & Regards, Lakshmi |
From: Frank S. <fah...@gm...> - 2013-04-26 18:01:24
|
If I install java access bridge, do you think I could see java aps with pywinauto ? else, anyone have any tips on how to modify pywinauto after installing JAB ? |
From: Frank S. <fah...@gm...> - 2013-04-26 15:15:11
|
so I cant seem to make this program work... This program is from my job. Its activated by clicking a link on the internet. Once clicked, a new window opens, not a browser window but a normal application window. I connect by typing app.connect_(title_re='Advanced') <-- advanced is the first word of the main window title, and it connects. My problem is app."Advanced_Customer_Service_Representative.print_control_identifiers() is empty. I have no controls, even though there are several buttons, actually there should be alot of controls. The main page has a bunch of menu items, but .MenuSelect('File') returns : There is no menu. If I open a subwindow in the main window, then the title of the main window changes to ( Title + - title of sub window), and then the sub window also pops up with just its own title. swapy is no help. I see the page in swapy but theres no drop down menus for it. Does pywinauto support these types of web programs opened from javascript or is there another program that does ? (selenium wont because the program is not in a browser...) |
From: Vasily V. R. <vas...@gm...> - 2013-03-22 09:22:37
|
Hi Andy, I ported pywinauto internals to 64-bit Python (the problem is in system structures sizes (win32structures.py) which are different for 32-bit and 64-bit client app). I use my pywinauto modification<https://code.google.com/r/vasilyvryabov-pywinauto-x64/source/checkout> for running it under 64-bit Python for 64-bit client. But 32-bit Python is still needed for 32-bit clients. I did not test it for many client apps, but it works probably for all standard controls including context menus & tooltips. Best regards, -Vasily. 2013/3/22 Andy Chen <pp...@ho...> > Hi all,**** > > ** ** > > We have been using the 32bit PyWinAuto to test our 32 bit windows clients. > Recently we are change to 64bit clients, it seems the tests used to work > doesn’t work anymore. It has problem to identify the controls on 64bit > clients. Has anyone tried either**** > > ** ** > > **1. **Use 32bit PyWinAuto to test 64bit client, or**** > > **2. **Compile 64bit PyWinAuto to test 64bit client**** > > ** ** > > Any help would be appreciated.**** > > ** ** > > Thanks,**** > > Andy**** > > ** ** > > ** ** > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Pywinauto-users mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywinauto-users > > |
From: Andy C. <pp...@ho...> - 2013-03-22 04:37:32
|
Hi all, We have been using the 32bit PyWinAuto to test our 32 bit windows clients. Recently we are change to 64bit clients, it seems the tests used to work doesn't work anymore. It has problem to identify the controls on 64bit clients. Has anyone tried either 1. Use 32bit PyWinAuto to test 64bit client, or 2. Compile 64bit PyWinAuto to test 64bit client Any help would be appreciated. Thanks, Andy |
From: Vasily V. R. <vas...@gm...> - 2013-03-21 10:22:23
|
Hi Vignesh, Most probably, the problem is connected with different size of structures (see win32_structures.py) for 32-bit and 64-bit applications. I ported pywinauto to 64-bit Python. My source code branch is available in the repository: https://code.google.com/r/vasilyvryabov-pywinauto-x64/source/browse Please try it with 64-bit Python and 64-bit application. Hopefully, it can help. For 32-bit applications you still need using 32-bit Python. Best regards, -Vasily. 2013/3/21 Vigneshwaran Gopalan <vig...@gm...> > Hi Mark, > I have a application which is recently ported from win 32 bit to win 64 > bit Os. > I use pyWinauto to automated the application. > The treeview.Select() method alone is not working. Other commands are > working fine. It fails with the following error message. > =================Error Message======================== > Exception WindowsError: WindowsError(6, 'The handle is invalid.') in > <bound method _RemoteMemoryBlock.__del__ of > <pywinauto.controls.common_controls._RemoteMemoryBlock object at > 0x00000000044FAE48>> ignored > Traceback (most recent call last): > File "C:\Users\c8vgopal\Desktop\test.py", line 14, in <module> > app.UntitledQuery.SysTreeView32.Select('\\T854PB06') > File > "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line > 1043, in Select > elem = self.GetItem(path) > File > "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line > 993, in GetItem > texts = [r.Text() for r in self.Roots()] > File > "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line > 634, in Text > return self._readitem()[1] > File > "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line > 883, in _readitem > raise ctypes.WinError() > WindowsError: [Error 87] The parameter is incorrect. > > ================================================== > > I use Python 2.6 (32 bit). > > Could you kindly help me figure out the issue? > > > > -- > Thanks > Vignesh > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Pywinauto-users mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywinauto-users > > |
From: Vigneshwaran G. <vig...@gm...> - 2013-03-21 09:00:58
|
Hi Mark, I have a application which is recently ported from win 32 bit to win 64 bit Os. I use pyWinauto to automated the application. The treeview.Select() method alone is not working. Other commands are working fine. It fails with the following error message. =================Error Message======================== Exception WindowsError: WindowsError(6, 'The handle is invalid.') in <bound method _RemoteMemoryBlock.__del__ of <pywinauto.controls.common_controls._RemoteMemoryBlock object at 0x00000000044FAE48>> ignored Traceback (most recent call last): File "C:\Users\c8vgopal\Desktop\test.py", line 14, in <module> app.UntitledQuery.SysTreeView32.Select('\\T854PB06') File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 1043, in Select elem = self.GetItem(path) File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 993, in GetItem texts = [r.Text() for r in self.Roots()] File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 634, in Text return self._readitem()[1] File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 883, in _readitem raise ctypes.WinError() WindowsError: [Error 87] The parameter is incorrect. ================================================== I use Python 2.6 (32 bit). Could you kindly help me figure out the issue? -- Thanks Vignesh |
From: Vasily V. R. <vas...@gm...> - 2013-03-12 06:02:57
|
Hello Don, 1) You can place static label with some meaningful text before your edit box. Login: [mylogin] Password: [pwd] Then you can access them with names like LoginEdit and PasswordEdit. The same rule is useful for combo boxes and other "non-text" controls (or with unstable text). 2) app.MainWindow.Wait('ready', timeout=10) Also WaitNot('visible') is useful to control dialog closing. Best regards, -Vasily. 2013/3/12 Don Dwiggins <ddw...@ad...> > I'm still exploring pywinauto. I have a wxPython app that I want to > automate, and have been able to get into it to the point that I feel > comfortable that I can work it out. I do have a couple of questions: > > - The application starts with a top-level logon window (combobox and > text controls for username and password). I notice from looking at > the PrintControlIdentifiers output that the text boxes are basically > "named" by position (e.g., "Edit2"). Is there a way that I can give > them meaningful names in the application that will be visible at this > level? > > - Once the logon succeeds, there's a short delay before the main > window of the application comes up. Is there a better way to detect > this than a wait loop, testing with Exists? > > > Thanks, > -- > > Don Dwiggins > Advanced Publishing Technology > > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Pywinauto-users mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywinauto-users > > |
From: Don D. <ddw...@ad...> - 2013-03-12 04:46:31
|
I'm still exploring pywinauto. I have a wxPython app that Iwant to automate, and have been able to get into it to the point that I feel comfortable that I can work it out. I do have a couple of questions: * The application starts with a top-level logon window (combobox and text controls for username and password). I notice from looking at the PrintControlIdentifiersoutput that the text boxes are basically "named" by position (e.g., "Edit2"). Is there a way that I can give them meaningful names in the applicationthat will be visible at this level? * Once the logon succeeds, there's a short delay before the main window of the application comes up. Is there a better way to detect thisthan a wait loop, testing with Exists? Thanks, -- Don Dwiggins Advanced Publishing Technology |
From: Mark Mc M. <mtn...@gm...> - 2013-03-01 20:20:05
|
Hi, On Thu, Feb 28, 2013 at 5:35 AM, Z W <mp...@gm...> wrote: > Hi All > > We are new. > We have a windows app called app.exe that we like to auto-install > using pywinauto. > app.exe is a console/text-based installation that contains text-based > wizard steps. > We like to use pywinauto to simulate keys entered. > We have ActivePython and like to install pywinauto with it. > After downloading, we got error: > >>>> ================================ RESTART ================================ >>>> > > Traceback (most recent call last): > File "C:\software_installations\pywinauto-0.4.0\setup.py", line 47, > in <module> > sys.path.append(SetupPath()) > File "C:\software_installations\pywinauto-0.4.0\setup.py", line 41, > in SetupPath > setup_path = os.path.abspath(os.path.split(__file__)[0]) > NameError: global name '__file__' is not defined >>>> > That is strange - and when I google for that error - I found http://stackoverflow.com/questions/2632199/how-do-i-get-the-path-of-the-current-executed-file-in-python Are you running path_to_python\python.exe setup.py install from the command line - or you are running it from inside Idle, PythonWin or something else? Please try again from the command prompt (Start Menu, Run, cmd.exe) > What are we doing wrong ? > How do we go about installing it so that it would work with ActivePython ? > > Advance Thanks > I hope that helps, Mark |
From: Z W <mp...@gm...> - 2013-02-27 21:36:05
|
Hi All We are new. We have a windows app called app.exe that we like to auto-install using pywinauto. app.exe is a console/text-based installation that contains text-based wizard steps. We like to use pywinauto to simulate keys entered. We have ActivePython and like to install pywinauto with it. After downloading, we got error: >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\software_installations\pywinauto-0.4.0\setup.py", line 47, in <module> sys.path.append(SetupPath()) File "C:\software_installations\pywinauto-0.4.0\setup.py", line 41, in SetupPath setup_path = os.path.abspath(os.path.split(__file__)[0]) NameError: global name '__file__' is not defined >>> What are we doing wrong ? How do we go about installing it so that it would work with ActivePython ? Advance Thanks |
From: Don D. <ddw...@ad...> - 2013-01-28 21:04:55
|
I'm just getting started with pywinauto. The application I need to automate is an olf VB6application. I'mplaying with it to try to get a feel for how it will work with pywinauto. In particular, I'm trying to control a dialog with a combo box in it. The class I get for the box is "ThunderRT6ComboBox ". The pywinauto object I get for it has all the "All Controls" methods, but none of the ComboBox methods(or any other control-type-specific methods). I'm guessing that pywinauto doesn't recognize ThunderRT6ComboBox as a combo box class. If this istrue, is there a way around it? I'm willing to dig into the pywinauto source if need be. If not, is thereany other approach I could take to get it going?(Once I get into it, I suspect I'll run across other "ThunderRT6xxx" classes.) TIA, -- Don Dwiggins Advanced Publishing Technology |
From: Arunkumar J. <aru...@gm...> - 2012-12-04 11:20:14
|
Hi All, I am automating an application written in .Net framework where tool strip controls are available with icons in it. I am unable to get control to this with pywinauto. and Even Drag and drop of icons i am not able to achieve. Can anybody help me in this. Regards, Arun |
From: Jason L. <jla...@nc...> - 2012-10-26 12:04:09
|
Thanks for the responses! I'll check these out. On 10/24/2012 3:59 AM, Vasily V. Ryabov wrote: Hello Jason, pywinauto doesn't support all .NET controls. Probably you need IronPython<http://ironpython.codeplex.com/> for .NET automation. You can see few examples here: http://gui-at.blogspot.com/search/label/guiat (see posts "Building the framework (1)-(3)"). Analogue of pywinauto can be developed using described approach. But it seems no one did it. Also you may have some problems with connection to already running application because the framework runs a main form in another thread of the same process as the test script. This approach<http://www.codingthewheel.com/archives/how-to-inject-a-managed-assembly-dll> may help to implement such functionality in separate processes. Best regards, -Vasily. 2012/10/24 Jason Lawrence <jla...@nc...<mailto:jla...@nc...>> We are in the process of coding QA automation for a Windows .NET application. When I use the PrintControlIdentifiers, I am seeing a lot of generic WindowsForms results. I am not seeing menu's or other attributes that would show in a normal windows GUI... '2' 'WindowsForms10.Window.8.app.0.33c0d9d3' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R359, B658) '3' 'WindowsForms10.Window.8.app.0.33c0d9d4' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R355, B389) '4' 'WindowsForms10.Window.8.app.0.33c0d9d5' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389) '5' 'WindowsForms10.Window.8.app.0.33c0d9d6' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389) A good return: '15' 'TreeView2' WindowsForms10.Window.8.app.0.33c0d9d - 'Network Profiles' (L162, T393, R355, B420) Most of the GUI is either menu dropdowns (I don't see) or grids with data. I suspect that the .NET classes above have the menu and grid data inside them, but I don't know how to use pywinauto to access them (besides using the .Click(coords=)) Thanks! Jason Lawrence ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Pywinauto-users mailing list Pyw...@li...<mailto:Pyw...@li...> https://lists.sourceforge.net/lists/listinfo/pywinauto-users -- Jason Lawrence QA Engineer 706-974-9499 jla...@nc...<mailto:jla...@nc...> [cid:par...@nc...] |
From: Vasily V. R. <vas...@gm...> - 2012-10-24 08:00:00
|
Hello Jason, pywinauto doesn't support all .NET controls. Probably you need IronPython<http://ironpython.codeplex.com/>for .NET automation. You can see few examples here: http://gui-at.blogspot.com/search/label/guiat (see posts "Building the framework (1)-(3)"). Analogue of pywinauto can be developed using described approach. But it seems no one did it. Also you may have some problems with connection to already running application because the framework runs a main form in another thread of the same process as the test script. This approach<http://www.codingthewheel.com/archives/how-to-inject-a-managed-assembly-dll>may help to implement such functionality in separate processes. Best regards, -Vasily. 2012/10/24 Jason Lawrence <jla...@nc...> > We are in the process of coding QA automation for a Windows .NET > application. When I use the PrintControlIdentifiers, I am seeing a lot of > generic WindowsForms results. I am not seeing menu's or other attributes > that would show in a normal windows GUI... > > '2' 'WindowsForms10.Window.8.app.0.33c0d9d3' > WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R359, B658) > '3' 'WindowsForms10.Window.8.app.0.33c0d9d4' > WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R355, B389) > '4' 'WindowsForms10.Window.8.app.0.33c0d9d5' > WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389) > '5' 'WindowsForms10.Window.8.app.0.33c0d9d6' > WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389) > > A good return: > > '15' 'TreeView2' > WindowsForms10.Window.8.app.0.33c0d9d - 'Network Profiles' (L162, T393, > R355, B420) > > Most of the GUI is either menu dropdowns (I don't see) or grids with data. > I suspect that the .NET classes above have the menu and grid data inside > them, but I don't know how to use pywinauto to access them (besides using > the .Click(coords=)) > > Thanks! > > Jason Lawrence > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Pywinauto-users mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywinauto-users > |
From: Jason L. <jla...@nc...> - 2012-10-23 20:58:14
|
We are in the process of coding QA automation for a Windows .NET application. When I use the PrintControlIdentifiers, I am seeing a lot of generic WindowsForms results. I am not seeing menu's or other attributes that would show in a normal windows GUI... '2' 'WindowsForms10.Window.8.app.0.33c0d9d3' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R359, B658) '3' 'WindowsForms10.Window.8.app.0.33c0d9d4' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R355, B389) '4' 'WindowsForms10.Window.8.app.0.33c0d9d5' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389) '5' 'WindowsForms10.Window.8.app.0.33c0d9d6' WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389) A good return: '15' 'TreeView2' WindowsForms10.Window.8.app.0.33c0d9d - 'Network Profiles' (L162, T393, R355, B420) Most of the GUI is either menu dropdowns (I don't see) or grids with data. I suspect that the .NET classes above have the menu and grid data inside them, but I don't know how to use pywinauto to access them (besides using the .Click(coords=)) Thanks! Jason Lawrence |