markm
72a35552d9
Minor bug fixes and code cleanup
2006-03-02 18:20:05 +00:00
markm
8c8ba1840e
Moved Menu stuff to a different file and cleaned up the code a little
2006-03-02 18:19:23 +00:00
markm
97171bfc8d
Extracted Menu processing from HwndWrapper and added this file.
2006-03-02 18:18:17 +00:00
markm
6d1e0ff97e
Fixed bug with Application.start_() where it was not reporting error correctly
2006-02-24 22:05:18 +00:00
markm
5129be9219
Fixed rebar Texts(), fixed how it get's the text too
...
added some checks for good indices when selecting a tab.
2006-02-24 22:04:08 +00:00
markm
66ea043094
Added more tests (Toolbar Test, ReBar Tests, application.start_() bug test)
2006-02-24 22:03:20 +00:00
markm
df4c9fdafc
Added a step to GetProperties to check if the control needed to have image property saved for it.
2006-02-24 17:34:59 +00:00
markm
eb27ae7943
Removed some tooltip stuff that was just test code and is not necessary or duplicated
2006-02-24 17:34:35 +00:00
markm
76b294c9bf
Missed a couple of items that needed to be converted from properties to Methods
2006-02-24 17:33:28 +00:00
markm
59861bfaf9
Added a simple test for button._IfNeedsImage
2006-02-24 17:16:42 +00:00
markm
cb5df8107e
Typo in argument name
2006-02-17 22:27:42 +00:00
markm
647fe375eb
Mainly toolbar and tooltip changes.
...
One bug fix to deal with RemoteMemoryBlock.__del__ when access was denied.
2006-02-17 22:15:42 +00:00
markm
be07999ddb
Added some more API items
2006-02-17 21:43:31 +00:00
markm
46ca378736
Modified quite extensively how controls are matched - hopefully making it more strict but still allowing flexibility
2006-02-17 21:07:35 +00:00
markm
eaf7f83397
Added a few more tests
2006-02-17 21:05:56 +00:00
markm
0c28a4c9b7
Added import of findwindows for findwindows.WindowAmbiguousError
2006-02-17 21:05:21 +00:00
markm
faa8cfd751
Fixed bug where combo box select was not notifying parent correctly.
...
Modified PopupMenu to work appropriately with the new MenuSelcet/MenuClick methods
2006-02-17 21:04:36 +00:00
markm
ef77ef58cc
Lots of menu changes, some doc strings edited.
2006-02-17 21:03:35 +00:00
markm
d2c20aa532
renamed variables to fix pylint warnings
2006-02-15 21:48:33 +00:00
markm
14869a4376
added some more windows functions/constants/structures
2006-02-15 21:48:05 +00:00
markm
b99fe3dd6e
Added an iswindow() function
2006-02-15 21:47:11 +00:00
markm
45cf64a141
Fixed finding the text control for a non text control
2006-02-15 21:46:44 +00:00
markm
d49cb0114d
Some bug fixes and fixing for findbestmatch.find_best_control_matches()
2006-02-15 21:45:56 +00:00
markm
e843a08fea
removed
2006-02-15 21:44:23 +00:00
markm
6eb70bfe6d
Added Lots of more tests
2006-02-15 21:43:58 +00:00
markm
504d6629c1
Minor changes to avoid a Pychecker warning
2006-02-15 21:43:05 +00:00
markm
6d6a6f09c7
Preliminary support for Popup menus
2006-02-15 21:42:33 +00:00
markm
4cd8dbf0b1
Various Refactoring
...
Added support for Up-Down controls
2006-02-15 21:41:38 +00:00
markm
a098e8cb96
Added SendInput versions of Click, DoubleClick, RightClick etc
2006-02-15 21:41:06 +00:00
markm
4fc6ab0716
Minor changes
2006-02-13 13:48:57 +00:00
markm
90ae468c25
Added some tab control tests
2006-02-13 13:46:02 +00:00
markm
e154bf62fc
Renamed Appliaction.app_windows_ to windows_ and made it work like window_ in that you could pass in criteria. (but it returns wrapped windows not window criteria!)
2006-02-13 13:45:23 +00:00
markm
e6c2e2d7ef
Fixed a bug with finding the closes text control
2006-02-13 13:40:55 +00:00
markm
81ade6e3d7
Changed HwndWrapper.Text, SetText to WindowText and SetWindowText (and EditWrapper.SetText to EditWrapper.SetEditText
2006-02-12 02:44:27 +00:00
markm
a7c73f75b7
Added more tests
2006-02-12 01:48:38 +00:00
markm
cf5409e053
Added some extra checks to ComboBox.Select()
2006-02-12 01:48:23 +00:00
markm
5b8d020c63
Minor updates, added direct import of cElementTree (though I should wrap the import to make it optional)
2006-02-10 21:06:27 +00:00
markm
101ac0800d
Fixed a bug in how the closest Text control was found.
2006-02-10 21:05:30 +00:00
markm
a249f36b8e
Minor changes
...
start of SetFocus, GetFocus methods
Fixed bug in GetProperties for ListBoxeWrapper
2006-02-10 21:05:07 +00:00
markm
2ffe50b072
Minor bugs due to earlier refactoring that hadn't been fixed
2006-02-10 21:03:36 +00:00
markm
ea67f4cdb4
Added some more tests - especially for GetProperties
2006-02-10 21:01:50 +00:00
markm
021f257b3a
Fixed importing of modules for py2exe by not playing with the path
2006-02-10 17:22:28 +00:00
markm
0fa16b772a
moved some GetProperties values into writable_props
2006-02-10 16:35:45 +00:00
markm
925eb3700d
Fixed some naming issues RebarWrapper.NumBands -> BandCount
...
Removed some GetProperties that could be implemented using writable_props
2006-02-10 16:35:05 +00:00
markm
a6733b636b
using internal __file__ rather then pywinauto.__file__
2006-02-10 15:12:27 +00:00
markm
cdd61b7a54
no real change
2006-02-09 22:18:10 +00:00
markm
d421a15152
Added some input and keyboard handling functions/structures
2006-02-09 22:17:58 +00:00
markm
d3ba5303d1
Added some keyboard input constants
2006-02-09 22:17:12 +00:00
markm
656dbf7d29
allow calling from the current directory if pywinauto is not in site-packages
2006-02-09 22:15:39 +00:00
markm
fde10b5648
Added some status bar tests
2006-02-09 22:14:57 +00:00
markm
05a8f94b2c
Fixed a bug in ListViewWrapper.Select()
...
Reflected changes in HwndWrapper.GetProperties()
Added a GetTab mehtod of TabControlWrapper
Fixed a bug in ToolbarWrapper.GetButton() that was setting the text incorrectly
Added a method ToolbarWrapper.GetButtonRect()
Added test methods ToolbarWrapper.RightClick() and ToolbarWrapper.PressButton()
2006-02-09 22:14:07 +00:00
markm
8996b7ac5c
Changed how top level windows are wrapped.
...
It was previously impossible to wrap top level windows in anything other then DialogWraper. Now I check for a specific wrapper and only fall back to HwndWrapper if no other wrapper is available.
2006-02-09 22:08:47 +00:00
markm
e67af6b328
Modified how GetProperties works to make it easier to extend in a simple way
...
Fixed a bug and Added a little more documentation to IsVisible and IsEnabled
Removed some parameters from DoubleClick and RightClick.
2006-02-09 22:07:31 +00:00
markm
f3a49f45d1
Added Init to DialogWrapper so that we could destinguish between #32770 windows and other ClassNames.
...
Added new wrapper - PopupMenuWrapper
2006-02-09 22:01:55 +00:00
markm
60e7edf6dd
Added a timeout parameter to exists
2006-02-07 00:05:18 +00:00
markm
78ed13aad3
Added support for some .NET controls
2006-02-06 23:32:11 +00:00
markm
89452320a5
Fixed a bug in application.WindowSpecification.window_
...
Added deprecated application._start and application._connect methods
Added better Attribute Error to WindowSpecification.__call__
2006-02-06 23:09:20 +00:00
markm
98a3e8292a
Already moved to unittest directory
2006-02-06 22:39:16 +00:00
markm
967d23a2d9
Moved UnitTests to their own directory and out of modules
2006-02-06 22:38:41 +00:00
markm
e023b00c3d
Mainly fixing pylint warnings
2006-02-06 21:06:17 +00:00
markm
7401183250
Added code to handle empty lists (highlighted by unit tests)
...
Fixed some pylint warnings
2006-02-06 21:06:04 +00:00
markm
f1b3c6cebe
Moved some dead code out of the file
...
Looked at implementing reading from app_data
Removed Process class and extracted 2 methods from it
2006-02-06 21:04:07 +00:00
markm
b9c943697e
Added MoveWindow method
...
Cleaned up some long lines, and variable names for Pylint
worked on unit tests
2006-02-06 21:02:39 +00:00
markm
07a2166793
Adding required files
2006-01-31 19:09:29 +00:00
markm
1716ac697b
Re-organized some files
2006-01-31 19:07:31 +00:00
markm
a664ee56ad
Re-organized some files
2006-01-31 19:06:51 +00:00
markm
3740f98db8
Complete change how dialogs are specified (from ActionDialog to WindowSpecification)
2006-01-31 19:04:48 +00:00
markm
27f1bd2a3d
Added code to find the closest text control for non text controls
2006-01-31 19:01:46 +00:00
markm
68c9bd5535
added handle option which is essentially a pass through search. (i.e. it just return the handle again.
2006-01-31 18:50:31 +00:00
markm
022912d130
added check for Non Rectangle in Rectangle.__eq__() and added NMLISTVIEW structure
2006-01-31 18:48:44 +00:00
markm
5b0c125195
Added check for boolean properties - so that they are handled as longs
2006-01-31 18:46:38 +00:00
markm
c9e84c7567
Added unit tests, changed from properties to methods
...
added more granularity to many controls
2006-01-31 18:44:54 +00:00
markm
f44d83ab67
...
2006-01-31 18:13:17 +00:00
markm
01a192204e
Changed to reflect that properties of HwndWraper objects are now methods rather then properties
2006-01-31 18:05:41 +00:00
markm
abf1df88e6
Moved MinimalNotepadTest first
...
Used CloseClick in places where they close dialogs
2006-01-26 22:25:23 +00:00
markm
68cc2a23e6
moved PrintCtypesStruct into Structure class so that all Structures now have a __str__ method
2006-01-26 22:23:50 +00:00
markm
4efc7d70a4
Added Some API functions and some packing/unpacking methods
2006-01-26 22:22:58 +00:00
markm
d77b662e5d
Added in MIIM_STRING
2006-01-26 22:22:19 +00:00
markm
db72b9f06f
Allowed best_match to be specified.
2006-01-26 22:22:02 +00:00
markm
1c5c3bc246
Refactored - but not finished yet
2006-01-26 22:21:33 +00:00
markm
6635321512
Commented out ActionDialog
...
Added WindowSpecification as a Replacement
2006-01-26 22:20:56 +00:00
markm
ccc2d727a6
Actions now use SendMessageTimeout rather than PostMessage.
...
I also changed how HwndWrapper is imported.
2006-01-26 22:19:27 +00:00
markm
c1b963f8c0
Added SendMessageTimeout and CloseClick
...
Also inserted calls to WaitGuiThreadIdle() as an extra safety measure
2006-01-26 22:18:27 +00:00
markm
aa56c83bab
Much refactoring!
...
- Moved Actions into Wrappers
- in process of moving processing out of constructors
- changed how friendly class is retrieved
2006-01-25 21:32:09 +00:00
markm
3b03fbec77
Major refactoring - and still not finished.
...
Probably need to change how the packaging of controls works (and this will probably mean changing where win32defines etc. are loaded from)
2006-01-20 23:02:48 +00:00
markm
de07ead891
...
2006-01-20 23:01:34 +00:00
markm
38434e55d0
Minor modification so that it works now - not how we would like it to work in the future
2006-01-20 23:00:20 +00:00
markm
5c1a45fa0d
Moved timing decisions near top of file.
2006-01-20 22:59:10 +00:00
markm
c77124d4cf
Fixed a bug in a previous edit where I had removed importing LOGFONTW and RECT - they were required!
2006-01-20 22:58:53 +00:00
markm
caa9444cb5
Changed visibility of some items (both for automatic doc creation and to help users know what they are expected to work with)
2006-01-20 04:56:52 +00:00
markm
1e1eea4f5d
Ran pychecker, pylint and fixed many of the raised items
...
Added Revision to each file
Many other small modifications
2006-01-20 01:43:23 +00:00
markm
a0171ce11f
Change Rev yet again
...
shortened long lines
2006-01-20 01:09:48 +00:00
markm
e5232b0af8
...
2006-01-19 16:26:26 +00:00
markm
f67c1aceaf
...
2006-01-19 16:24:28 +00:00
markm
3880cfee3e
Added subversion keywords for revision and modification date
2006-01-19 16:18:35 +00:00
markm
4865f4c9da
Removed import of control properties
2006-01-19 14:37:21 +00:00
markm
1275c7ea9d
not needed by application - the only file where it was included
2006-01-19 14:36:57 +00:00
markm
eebc7490bf
Fixed a bug where I was not wrapping a process parameter
2006-01-18 22:35:46 +00:00
markm
a186230da6
FriendlyClassName changes
...
Moved PrintCtypesStructure into win32structures
trying to play with GETDISPINFO stuff
2006-01-18 22:35:05 +00:00
markm
e5882c7736
FriendlyClassName changes
2006-01-18 22:34:16 +00:00
markm
a9e4294485
Added index to menuitem properties
...
Added NotifyMenuSelect function
Took into account that Parent might not return a window
Changed FriendlyClass to use handleprops function
Added a check to ensure that the handle to HwndWrapper is a valid window.
2006-01-18 22:33:18 +00:00
markm
9599c2b876
Added ListView.IsChecked
...
Re-organized how control functions are added to classes (no need to deal with _ now - as we removed that previously)
Changed how menu notification are sent - though I still don't think it's final
2006-01-18 22:29:25 +00:00
markm
a19222a30d
Fixed how to search for windows if a Parent is passed in
2006-01-18 22:27:38 +00:00
markm
a23de6fdbd
fixed some formatting
...
Added is_toplevel_window
Playing with changing how the Friendly class is defined - DEFINITELY NOT FINAL YET!
2006-01-18 22:26:57 +00:00
markm
341f3cb465
Added some more menu functions (and moved all menu functions together)
2006-01-18 22:24:30 +00:00
markm
8c651e93c7
Added Structure Print method
...
Added some *DISPINFO structures
2006-01-18 22:24:08 +00:00
markm
1511818f48
Added package level to import of handleprops
2006-01-17 22:59:57 +00:00
markm
c282c045b2
changed how I discover the test functions - as I needed to handle tests package being part of pywinauto package
2006-01-17 22:59:23 +00:00
markm
36e3f6e59e
Added package information to includes in subpackages
2006-01-17 22:01:57 +00:00
markm
ff7c51568c
Moving files from pywinauto to PyDlgChecks or to the sandbox
2006-01-17 21:47:33 +00:00
markm
8ffe273a52
initial import
2006-01-17 21:12:14 +00:00
markm
55b6dbaa9b
* Added some documentation
...
* Allowed ActionDialog.__getitem__ to accept integers specifying the index of the control to retrieve)
* Needed to wrap attribute access in WalkDialogControlAttribs in an try/except block because it is possible that the attribute request will be unicode text which raises a UnicodeError. In the except clause I just try getitem access.
2006-01-17 20:30:31 +00:00
markm
fb526b5ee9
Small cleanup - no real functional changes
2006-01-17 20:26:01 +00:00
markm
114b67aacd
Added comments and testing relative to having clean_text be a no-op.
...
Where this might be important is when you are using attribute access to get the control - but there are a lot of non attribute characters in the dialog.
2006-01-17 20:25:06 +00:00
markm
1d8575f972
Change app.Notepad to app.NotepadDialog after saving the file - because if I remove text cleanup it did not match close enough without the 'Dialog'
2006-01-17 20:22:54 +00:00
markm
9b28de4eaf
Better resolution as to whether WriteDialogToFile has been passed in a set of properties or a dialog (and we need to get the properties)
2006-01-17 20:21:31 +00:00
markm
7b79e7858a
Make sure that we keep Non-Ascii characters for controls that are still letters for other languages. (e.g. Japanese/Chinese/German etc)
2006-01-16 18:47:37 +00:00
markm
ff4aa51a2d
Allow __getitem__ as well as attribute access to dialogs and controls - this is necessary for automating dilaogs for languages with text other then ASCII.
2006-01-16 18:45:59 +00:00
markm
03bca6a99c
Changed to re.match instead of re.search to avoid the case where a short class name e.g. Edit is found within a longer class name e.g. TextEditorWindow.
2006-01-16 14:25:39 +00:00
markm
fd2a72979b
Fixed processing of searching for parent controls (if parent passed in is hwnd and not HwndWrapper instance)
2006-01-16 14:24:27 +00:00
markm
42b066a063
Added _control method to ActionDialog
...
Made sure that when wrapping dialogs that we told WrapHandle that we are indeed wrapping a dialog
2006-01-16 14:22:34 +00:00
markm
18cd4ef023
Added Clipboard functions
2006-01-15 20:23:23 +00:00
markm
8db6d2c1a1
Some basic clipboard functions
2006-01-15 20:22:08 +00:00
markm
14edcd4b86
Rewrote Escape/UnEscapeSpecials to work for all non XML character
...
Stopped broken images from crashing it (if they were too big you would get a memory error
2006-01-15 20:08:25 +00:00
markm
370ed8eecf
Added MakeLong function
2006-01-15 20:05:52 +00:00
markm
803cce38be
Removed full path to Notepad and MSPaint.
...
Added small section to MinimalNotepadTest to save the text file as UTF-8
2006-01-15 20:05:31 +00:00
markm
09ec70264a
Commented out OnPaint method.
...
Hardcoded font to Tahoma (as it sometimes stopped dialog from parsing).
Set unknown controls to Button rather than static.
2006-01-15 20:04:09 +00:00
markm
fbb86bb89f
Updated List/Combobox selection to use NotifyParent.
...
Added functions to get the selected items in a list box.
2006-01-15 20:02:00 +00:00
markm
79503bfdfb
Added NotifyParent method to HwndWrapper
2006-01-15 19:59:32 +00:00
markm
70224a14cd
Added handle option and made it work so that it did not require PyDlgCheckerWrapper.py
2006-01-15 19:26:14 +00:00
markm
b974345188
Made callable methods for some stuff that was only called from the constructors of ComboBoxWrapper and ListBoxWrapper
2006-01-15 19:24:31 +00:00
markm
415a331d3c
set default ref attribute to None
...
Added back in ClientRect property that got lost in an update
Allowed GetDialogPropsFromHandle to work on an already wraped handle
2006-01-15 19:23:15 +00:00
markm
d50f952a95
Added minor comment regarding Image buttons that should not be tested for truncation
2006-01-15 19:17:22 +00:00
markm
d9d0a19576
Fixed outline drawing
2006-01-15 19:16:39 +00:00
markm
b8e30f1506
Resolved conflicts, removed finddialog function - becasue findwindows does a better job.
2006-01-09 14:47:29 +00:00
markm
590ae6d657
Added actions for checking/unchecking ListView Items
2006-01-09 14:39:33 +00:00
markm
90d13844b5
cleaned up a debug comment and raise correct exception rather then exiting
2006-01-06 23:02:55 +00:00
markm
bef6c2c0fc
Added test running and bug printing to package, cleaned up some debug comments
2006-01-06 23:02:22 +00:00
markm
1c5add6eda
Made explicit the process ID getting
2006-01-06 23:00:56 +00:00
markm
0e7746cebb
Fixed the process restriction which had been broken
2006-01-06 23:00:21 +00:00
markm
0b5add2be7
Added a minimal testand removed so
2006-01-06 22:59:36 +00:00
markm
e34f616cc0
Allowed WriteDialogToFile to accept a dialog as well as props
2006-01-06 22:59:04 +00:00
markm
b422d84fd0
Added Test Running and fixed the DrawOutline action
2006-01-06 22:57:55 +00:00
markm
1423687fc5
Various updates in preparation for release
2006-01-06 21:15:35 +00:00
markm
1ea398de87
Was missing from Repository
2006-01-06 21:12:10 +00:00
markm
f0012d37e4
minor changes
2006-01-06 17:34:25 +00:00
markm
577c96d21f
Small updated (comments mainly)
2006-01-05 22:28:09 +00:00
markm
5c4c0aa3cb
Breaking dependency on findbestmatch because it currently pulls in the 'controls' package to do it's work.
2006-01-05 22:27:31 +00:00
markm
b7d3234e97
Initial import
2006-01-05 22:13:50 +00:00
markm
f49945c583
Commented out FindDialog function and used findwindows instead
2006-01-05 22:11:41 +00:00
markm
4ab362d0e2
Re-organized the layout of the function (no real functionality changes)
2006-01-05 22:10:33 +00:00
markm
861d135e98
Minor import cleanup
2006-01-05 22:10:05 +00:00
markm
17c7edea16
removed import of InfoManager
2006-01-05 22:09:37 +00:00
markm
989bc35fb2
Updated to use findwindows
2006-01-05 22:09:01 +00:00
markm
ca37e31a1f
Moved FindWindows out to a different file and renamed functions
2006-01-05 22:06:58 +00:00
markm
05c0ba9aae
added reference to overall package
2006-01-05 18:56:25 +00:00
markm
71450638bd
Removed __all__ attribute
2006-01-05 18:25:06 +00:00
markm
5f94f5cf62
Initial Import
2006-01-05 18:23:26 +00:00
markm
24686b7aec
Added License
2006-01-05 18:20:19 +00:00
markm
3fac9506ad
Some cleanup prior to release
2006-01-05 14:57:40 +00:00
markm
5959cf3b30
Extracted from application.py
2006-01-04 21:36:29 +00:00
markm
3d52e3a885
Moved tests and some comments to other files
2006-01-04 21:36:11 +00:00
markm
75c90bc145
made a copy
2006-01-04 21:21:00 +00:00