Commit Graph

413 Commits

Author SHA1 Message Date
markm
eb30041546 * Make findbestmatch and MatchError more easily available by importing them 2009-11-21 08:08:28 +00:00
markm
bfc8031988 * Fix a lot of PEP8/Pylint reports
* Add some minor extra tests to ItemData tests (combobox/listbox)
 * Added a step to write out reference controls - and added a test to use that to check RunTest with reference controls.
2009-11-21 08:06:29 +00:00
markm
9dc3893d39 * Add a unicode aware python only version of SendKeys 2009-08-03 23:13:38 +00:00
markm
e653bb99fd * Added better documentation to the GetMenuPath() function
* Fixed a typo in a doc string
2009-08-03 22:57:15 +00:00
markm
fef80c5180 * Fixed a typo in a comment 2009-08-03 22:56:09 +00:00
markm
58bf40990c * Removed debug print statement 2009-08-03 22:55:39 +00:00
markm
f4bff71cfc * Removed the restriction to only get the active windows for the process, now it will be possible to get the active windows, even if a process is not specified. From http://msdn.microsoft.com/en-us/library/ms633506%28VS.85%29.aspx it gets the active window for the foreground thread. 2009-08-03 22:52:34 +00:00
markm
fe1aecc23f * Made sure that default for WindowSpecification.Window_() was to look for non top level windows. The defaults in find_windows() had been changed previously and it now needed to be explicitly overridden.
* Fixed a missing reference to 'win32defines' when referencing WAIT_TIMEOUT
2009-08-03 22:46:03 +00:00
markm
37b2fa697c * Fixed a typo in a comment 2009-08-03 22:42:11 +00:00
markm
25043fdefe * Some minor re-formatting and removing old code 2009-03-15 18:48:24 +00:00
markm
2ecf9b731c * Add appropriate has_title = False to those classes whose text should not be treated as a title
* Also add a tiny delay after each SendMessageTimeout in _performclick as it was just a bit too quick.
2009-03-15 18:47:42 +00:00
markm
9107e8b089 * Add appropriate has_title = False to those classes whose text should not be treated as a title 2009-03-15 18:47:00 +00:00
markm
cc891dcaf2 * Use has_title instead of can_be_label to check if the control has text that can be used for identifying it 2009-03-15 18:45:55 +00:00
markm
d1b9f0d544 * Set the timing so that the script runs fast - but is also robust. 2009-03-15 18:06:12 +00:00
markm
0a2fa4a4a3 * Remove the explicit calls to wait for the PageSetup dialog - and instead set the global wait for window timing to be longer 2009-03-15 18:04:39 +00:00
markm
59f4234fdf * Changed Timings.Fast to be a little less aggressive 2009-03-15 18:01:30 +00:00
markm
87294fba70 * Remove the print of invalid when best_matching a window 2009-03-15 18:00:46 +00:00
markm
5ce104ddc4 * Made handling of various edge cases more stable by also catching controls.InvalidWindowHandle (the most common case for this was when asking if a control existed, and but it would would run so quickly that the dialog hadn't closed yet)
* Removed lots of dead code
 * Cleaned up the wait until the application is Idle
2009-03-15 17:57:47 +00:00
markm
b233479a21 * Removed the hardcoded list of class names with a check for can_be_label
* Added a check in IsAboveOrToLeft for the case where the 'text' control top left corner is inside the reference control
 * cleaned up some whitespace
2009-03-15 03:40:32 +00:00
markm
530a6e583f * Setting can_be_label correctly 2009-03-15 03:38:20 +00:00
markm
895406e82e * Added the can_be_label attribute to the class (defaulting to false) 2009-03-15 03:36:53 +00:00
markm
92dc364caf * Expose InvalidWindowHandle 2009-03-15 03:35:34 +00:00
markm
3de3d0ef34 * Added the constant for a windows function wait timing out 2009-03-15 03:33:35 +00:00
markm
fc0f9e1d7c * Add some tests for the IsAboveOrLeft function 2009-03-15 03:31:18 +00:00
markm
a2410b2e92 * Make the test a bit more robust and also ignore some pylint warnings 2009-03-15 03:30:35 +00:00
markm
41ac071e36 * Removed one comment and added a todo comment 2009-03-15 03:29:01 +00:00
markm
2c604c59f0 * Check for control_id match was before getting the list of windows - so moved to correct location
* Moved import of controls to the top of the file
 * Improved the best match handling
2009-03-15 03:26:59 +00:00
markm
2de2ec4a06 * Fixed a test to cater for changes in the module and what it returns 2009-03-11 02:15:05 +00:00
markm
4874d72ecb * Added a reminder to look into hardcoded class names 2009-03-11 02:14:27 +00:00
markm
3923fdc89f * Updates to make the Sphinx output doc better 2009-03-05 23:28:39 +00:00
markm
ac987867e8 * Removed DeprecationWarning on import Sets, but still kept Python 2.3 compatibility 2009-02-24 22:54:35 +00:00
markm
a4acca936c * increase the version number 2009-02-24 22:33:41 +00:00
markm
d8abe13a4b * Used create_unicode_buffer rather than (wchar * length) to allocate the string for text() function. 2009-02-24 22:33:16 +00:00
markm
269304fd00 * Fixed minor spacing issue in doc string 2009-02-24 22:31:07 +00:00
markm
cfea6f51c6 * Ensured that return value from ComboBoxWrapper.SelectedIndices is always a tuple (there was a bug where it would sometimes be a ctypes array) 2008-12-08 22:38:28 +00:00
markm
23a50a5173 * Removed the 'fast' timing from testall - tests are more likely to fail because of this! 2008-12-08 22:06:49 +00:00
markm
2d4703be9d * Commented out a test in test_application.testGetattr() as it is related to the new default of findwindows. 2008-12-08 22:06:02 +00:00
markm
fe4b3ea16b * made two unit tests sligthly more robust and less dependent on computer/app settings 2008-12-08 22:04:47 +00:00
markm
4ba979fdac * fixed minor typo in doc string 2008-12-08 22:03:18 +00:00
markm
b8396f6fab * Changed default for finding windows to find disabled windows. (note this may impact scripts that relied on the previous setting!)
* Added a control_id parameter to find_windows which allows finding windows based off of their control id's
2008-12-08 22:02:36 +00:00
markm
4a9feaff8b * Added some baic support for Pager and Progress controls (no tests yet) 2008-12-08 21:55:22 +00:00
markm
9831936f44 * Added some basic support for the progress bar control 2008-12-05 03:13:41 +00:00
markm
f4eff51044 * Fixed an issue where ListView header text was not captured correctly (thanks to Stefner) 2008-08-17 03:10:27 +00:00
markm
caa3d7144b * Added a check to make sure that the menu handle used in HwndWrapper.Menu() is a valid handle. 2008-06-05 18:38:46 +00:00
markm
39997b4e47 * Added support for treeviews that have multiple roots. (added TreeView.Roots(), updated TreeView.GetItem() to support it,
* Fixed ToolBarWrapper.Pressbutton() to actually work :-)
 * Fixed the tests to support these improvements.
2008-06-05 18:37:46 +00:00
markm
2679199777 * fixed bug where even if there were no menu - I was trying to construct a Menu instance (which was crashing the application under test in very rare instances1) 2008-02-22 21:09:26 +00:00
markm
8458682cf7 * Handled the problem where tree views can have 0 items 2007-12-03 17:49:34 +00:00
markm
8ad1894f11 * Minor doc string update 2007-11-25 20:55:05 +00:00
markm
87352c0026 * tiny modifications to the test for the current environment 2007-11-15 22:36:36 +00:00
markm
8529947cf2 * Checked in a hack to make functionality work like it did before I updated the code to be able to retrieve text with WM_GETTEXT intead of using GetWindowText() 2007-11-15 22:36:00 +00:00
markm
adb28ff546 * Changed code from using GetWindowText and GetWindowTextLength to WM_GETTTEXT and WM_GETTTEXTLEN which work better for some controls. 2007-11-15 18:42:55 +00:00
markm
49f3dac44a * commented out a print statement 2007-10-29 21:08:58 +00:00
markm
170dad7272 * Added a FriendlyClassName method to MenuItem 2007-10-29 21:08:25 +00:00
markm
ed25200934 * Moved code to get default font in here from the truncation test (rather than just setting the system font like the WM_GETFONT doc's say) 2007-10-29 21:07:37 +00:00
markm
cad3e05c13 * Split up the functions for button truncation data
* Commented out code to get a new font if the font could not be recovered (as we would have at least set the System font when asking the control for the font, and move the code into the handleprops.font() function.
2007-10-29 21:05:57 +00:00
markm
79008526b5 * Fixed a bug where if there was a listview without a column control - then pywinauto would fail to capture the dialog. 2007-10-25 19:35:18 +00:00
markm
7272f826ce * Switched from Least significant nibble for figuring out the type of button to least significant bit. 2007-10-24 19:26:36 +00:00
markm
4cc045eae5 * Forced some returned strings to be Unicode 2007-10-24 19:25:56 +00:00
markm
9d5fb9bdcd * Added a function to get the string representation of the bug. (need to refactor print bugs at some point. 2007-10-12 14:42:58 +00:00
markm
a19bf59351 * Fixed a variable name (from fname -> font_name as fname was not set!) 2007-10-12 14:42:13 +00:00
markm
dd98d061ce * Changed Least Significant Byte to Leas Significant Nibble when finding the friendly class of a button control. 2007-08-14 08:34:05 +00:00
markm
9aab1b8549 * Fixed toolbar button pressing - This required for HwndWrapper.NotifyParent() to be updated (to accept a new ID parameter) 2007-06-13 18:26:00 +00:00
markm
a1ed80c1c5 * Added some more VB 'button' window classes 2007-06-13 18:25:10 +00:00
markm
2795fdc4c9 * Updated the path for all tests 2007-06-13 18:24:37 +00:00
markm
89076bc6b2 * Final doc changes for 0.3.7 release
* Removed a print statement from common_controls.py
2007-04-10 17:23:49 +00:00
markm
3301ff0593 * Some documentation updates
* Small changes to getting the active window (as it wasn't working correctly)
2007-04-10 17:08:39 +00:00
markm
9218f8235a * Merged in the 'waitbranch' branch 2007-04-10 15:35:49 +00:00
markm
945bf164dc * fixed Jira issue http://jira.openqa.org/browse/PWA-1 2007-03-23 16:41:17 +00:00
markm
0f4dffcdc4 * Added more functionality and fixed possible problems in clipboard.py 2007-03-13 22:56:31 +00:00
markm
baa95552ac * Added a new _toolbar_button.IsEnabled() method and this should really be called before Click() 2007-03-12 22:34:24 +00:00
markm
136d69be7c * Increased the version number to 3.7 to be ready for the next release
* Complete overhaul of toolbar button wrapping and actions - still not perfect but a lot more functional then it was
 * Allowed Rectangles to be passed to Click etc for Coords
 * Changed the default timing for button presses to .01 from .001 (seemed in my testing that clicks could happen too fast)
 * Added two consatants to win32defines.txt
 * Added newline to setup.py
2007-03-12 20:58:33 +00:00
markm
9ea1e9a983 * Added functionality to allow working with list view items by specifying a string rather than having to always specify an index. (String is converted to an index - so working with indices would be more efficient. 2007-02-28 21:48:35 +00:00
markm
59f6e3bbf7 * Fixed a bug where process handle was not being released by _RemoteMemoryBlock on deletion.
* Refactored the code a little bit also (moved contents from __del__ method to CleanUp method)
 * fixed some minor formatting issues
2007-02-26 17:56:37 +00:00
markm
fb5b3f3bc1 * Added code to support only finding windows that are 'active' 2007-02-15 02:17:48 +00:00
markm
ab2ac3bdf0 * Added code to support only finding windows that are 'active' 2007-02-15 02:17:17 +00:00
markm
7d1324276f * Added support for selecting tree view items based on their path. 2007-02-15 02:16:22 +00:00
markm
8ce20670be Added Basic handling for the mouse wheel. 2007-01-30 20:36:40 +00:00
markm
c6cefe31b6 Added GetCursorPos function and removed a commented out print line 2006-11-30 00:01:03 +00:00
markm
34ff442492 Needed to fix some recursive getattr/setattr problems - so accessing through the class rather then through the instance 2006-11-30 00:00:23 +00:00
markm
fcc3851d3c Updated version 2006-07-28 20:04:22 +00:00
markm
14542af0ca Removed superfluous print statement 2006-07-28 19:48:02 +00:00
markm
fd22e7d929 Fixed listcontrol select test 2006-07-28 19:47:42 +00:00
markm
4505764da2 tiny update to style test 2006-07-28 19:46:51 +00:00
markm
85dfbaeb4d Added Scroll() 2006-07-28 19:43:05 +00:00
markm
3e33040f15 Added parameter to _treeview_item.Rectangle() to have an option to get the Text rectangle of the item. And defaulted to this.
Added _treeview_item.Click() method to make it easy to click on tree view items.
Also fixed a bug in TreeView.GetItem() that was expanding items when it shouldn't.
2006-07-28 19:24:19 +00:00
markm
4a20900198 Added mid_point to Rectangle and TVHITTESTINFO structure 2006-07-28 19:20:58 +00:00
markm
5cbdc500e9 Minor update to the documentation (fixing a broken RST link) 2006-07-28 19:20:22 +00:00
markm
e8e97da339 Fixed spelling mistake in timeout 2006-07-14 16:16:33 +00:00
markm
27e7fb639c Fixed issue where case insensitive matches were matching too well 2006-07-14 16:13:59 +00:00
markm
874110e36a Slight changes to the Slow timing settings 2006-07-14 16:12:36 +00:00
markm
5fc66f74fd re-created documentation and fixed UnicodeEncoding errors 2006-05-25 17:38:16 +00:00
markm
9dd4006085 Various minor changes 2006-05-24 17:43:21 +00:00
markm
95b24c4d14 Optimized some Rectangle property access. 2006-05-08 18:44:11 +00:00
markm
c3bf694038 Merged changes from MetaClassWrapping branch 2006-05-05 14:05:32 +00:00
markm
a3d9ef9081 Final part of Object renaming 2006-04-25 20:46:03 +00:00
markm
0139ecf371 Some caching for optimization 2006-04-25 20:45:17 +00:00
markm
61b73a783f Updated UpDown classs name 2006-04-25 20:43:09 +00:00
markm
79ba943a58 Mini comment changes 2006-04-25 20:42:53 +00:00
markm
ef3847b7ac Minor test changes 2006-04-25 20:41:13 +00:00
markm
b47e38f3b1 Updated PrintControlIdentifiers so that it would print disambiguated control names. This highlighted that I needed to split out part of findbestmatch.get_control_names and that I needed a __hash__ method for HwndWrapper objects. 2006-04-25 11:38:42 +00:00