Commit Graph

720 Commits

Author SHA1 Message Date
Michael Mintz 0f735285c4 Update "assert_title()" 2020-12-03 23:29:22 -05:00
Michael Mintz ceaaf01bd1 Update "get_beautiful_soup()" 2020-12-03 23:28:41 -05:00
Michael Mintz fb3f669e1d Add "--remote-debug" for Chrome's Remote Debugger 2020-12-03 23:23:48 -05:00
Michael Mintz 56c2b4d6c6 Add the option to include overlay text on saved images 2020-11-27 14:48:09 -05:00
Michael Mintz 6a711f04b0 Updates to SeleniumBase Presenter 2020-11-17 19:14:49 -05:00
Michael Mintz fdec0a1fe1 Update "wait_for_angularjs()" (skip alert-handling) 2020-10-30 17:59:00 -04:00
Michael Mintz 9802fb8c26 Small update to "wait_for_ready_state_complete" 2020-10-30 15:41:13 -04:00
Michael Mintz 233a19e39f Remove alert-handling in wait_for_ready_state_complete 2020-10-30 14:09:06 -04:00
Michael Mintz 2b672f94ef Update ad-block timing for possible delayed iframes 2020-10-30 14:07:30 -04:00
Michael Mintz 29ba2cf1b1 Ignore leading & trailing whitespace for assert_title(title) 2020-10-22 09:33:57 -04:00
Michael Mintz 273f467fc3 Update metadata for charts and presentations 2020-10-22 09:31:53 -04:00
Michael Mintz 9c07c674a2 Update jQuery version to 3.5.1 2020-10-22 09:30:22 -04:00
Michael Mintz 375e3d4ebd Add cmd option "--disable-ws". (Chrome Web Security) 2020-10-22 09:29:27 -04:00
Michael Mintz 6bb584700b Improve reliability when slow-scrolling to elements 2020-10-14 01:27:47 -04:00
Michael Mintz 7a1a97846d Only activate jQuery for Messenger if not already active 2020-10-09 00:52:28 -04:00
Michael Mintz b7dec3da14 Improve Messenger compatibility 2020-10-09 00:45:05 -04:00
Michael Mintz 92ec1bacbc Update recovery time for Stale Elements and ENI Exceptions 2020-09-29 19:43:02 -04:00
Michael Mintz f2d16a6995 Convert integer inputs to strings before typing text 2020-09-22 10:18:41 -04:00
Michael Mintz 081ad83224 Update line spacing in Presenter-generated .html files 2020-09-17 14:15:48 -04:00
Michael Mintz a028f9ff1d Update the default timeout for asserting downloaded files 2020-09-15 17:17:53 -04:00
Michael Mintz c1bac59b22 Make sure URL has fully loaded before asserting the title 2020-09-11 18:55:49 -04:00
Michael Mintz dca8c44077 Fix metadata for generated presentations 2020-09-11 18:53:42 -04:00
Michael Mintz c348288c0b Add "self.set_text(SELECTOR, TEXT)" 2020-09-10 14:55:29 -04:00
Michael Mintz c5ec5fbf90 Add "self.clear(SELECTOR)" 2020-09-10 14:54:14 -04:00
Dima Spivak be631e215d Use ConvertibleToCssTranslator in convert_css_to_xpath
Subclassing cssselect.GenericTranslator gives us greater control
and better maintainability when converting CSS selectors to XPath.
2020-09-09 09:46:10 -05:00
Michael Mintz 994f9df2c7 Another update to the xpath-to-css converter 2020-09-09 01:17:08 -04:00
Michael Mintz 4cb4484f86 Update the xpath-to-css selector converter 2020-09-08 21:50:43 -04:00
Michael Mintz ef38dcb1f1 Add a custom timeout to methods that click visible elements 2020-09-08 17:18:26 -04:00
Michael Mintz 767788f7fa Update presentation metadata 2020-09-08 01:43:21 -04:00
Michael Mintz a3ae7940ca Fix autofill issues 2020-09-08 01:42:01 -04:00
Michael Mintz 0e396e52d7 Add support for the ":contains()" selector 2020-09-04 22:27:35 -04:00
Michael Mintz 4f24428717 Add method: convert_css_to_xpath() 2020-09-04 22:25:44 -04:00
Michael Mintz 664df49005 Update xpath_to_css.py 2020-09-04 22:23:23 -04:00
Michael Mintz cbdc7b3189 Add css_to_xpath.py 2020-09-04 22:21:35 -04:00
Michael Mintz 5ccb5e0ac1 Update a comment 2020-08-30 14:43:35 -04:00
Michael Mintz 92fe34e643 Only scroll to iframes before switching to them if identifier is a string 2020-08-30 14:16:12 -04:00
Michael Mintz a29705150a Scroll to iframes before switching into them 2020-08-29 21:37:12 -04:00
Michael Mintz 648142c6f5 Add option: "--enable-ws" to enable Chrome's Web Security 2020-08-29 21:34:00 -04:00
Dima Spivak d831c183d6 click_partial_link_text broken in demo/slow mode 2020-08-28 13:54:01 -05:00
Michael Mintz 4d1076c46d Update message location for mobile mode 2020-08-26 17:29:45 -04:00
Michael Mintz 8cd0149afc Update error message for trying to pass a non-string as a selector 2020-08-26 17:26:24 -04:00
Michael Mintz 6f0d20e836 Fix the xpath-to-css-selector converter 2020-08-26 00:31:22 -04:00
Michael Mintz d3a05c52cd Add the "has_exception()" method for use in a tearDown() step 2020-08-26 00:26:13 -04:00
Michael Mintz e42c998b25 Fix html when creating an iframe in a Presenter presentation 2020-08-25 03:22:40 -04:00
Michael Mintz 35bf3188b5 Add a method for getting the browser's Locale Code 2020-08-22 17:57:41 -04:00
Michael Mintz cb1ba6c738 Detect if using an out-of-date ChromeDriver during hover 2020-08-20 23:29:54 -04:00
Michael Mintz 5161fa48f6 Add methods for activating and deactivating Design Mode 2020-08-20 02:34:19 -04:00
Michael Mintz 3ef155b804 Make improvements to JavaScript and jQuery methods 2020-08-20 02:21:58 -04:00
Michael Mintz a6db75eb10 Add the ability to set the browser's Language/Locale 2020-08-20 02:15:06 -04:00
Michael Mintz 305a72620f Standardize default starting widths across browsers 2020-08-17 21:37:55 -04:00
Michael Mintz 59263ce817 Add SeleniumBase branding to HTML code 2020-08-17 16:20:29 -04:00
Michael Mintz 7f842c9746 Make improvements to Opera Chromium automation 2020-08-17 16:13:16 -04:00
Michael Mintz 5c55fe0556 Fix issue with nosetests tearDown() 2020-08-14 21:09:00 -04:00
Michael Mintz f26bdeac39 Improve error-handling 2020-08-14 20:30:55 -04:00
Michael Mintz 3baf9fe064 Make logging improvements to the sb pytest fixture 2020-08-14 01:58:16 -04:00
Michael Mintz 5032aaf29b Add post_message_and_highlight() 2020-08-13 03:40:04 -04:00
Michael Mintz 692acb36d8 Update js_utils 2020-08-13 03:38:30 -04:00
Michael Mintz aae9c95778 Update constants 2020-08-13 03:31:11 -04:00
Michael Mintz d4419306f1 Improve Safari automation, Demo Mode, and Slow Mode 2020-08-13 03:30:01 -04:00
Michael Mintz 296c4e90ed Update a docstring 2020-08-08 01:19:37 -04:00
Michael Mintz cb3d83748c Update a method 2020-08-08 01:18:40 -04:00
Michael Mintz 677d5e2fe3 Update Messenger theme and dependencies 2020-08-08 01:12:39 -04:00
Michael Mintz 2e2cd7171e Update the docs 2020-08-05 15:31:58 -04:00
Michael Mintz c2da18471c Add meta charset data to the head of html presentations 2020-08-04 20:52:52 -04:00
Michael Mintz 0064e85643 Clear out console logs before opening or refreshing pages 2020-08-04 20:43:12 -04:00
Michael Mintz a1d513d401 Update Demo Mode (new Messenger theme) 2020-08-04 19:58:54 -04:00
Michael Mintz 092ed367ae Add the ability to set a presentation transition style 2020-08-02 19:51:06 -04:00
Michael Mintz 6ee87cbe41 Add the ability to create area charts with Chart Maker 2020-07-30 10:59:36 -04:00
Michael Mintz eb6f4d1a49 Race through chart display if running in headless mode 2020-07-28 12:02:57 -04:00
Michael Mintz 2c1f58625e Fix double_click() for older versions of ChromeDriver 2020-07-28 12:01:40 -04:00
Michael Mintz 565168a84d Add the ability to create line charts and more 2020-07-28 02:53:16 -04:00
Michael Mintz fa6bb05ce7 Add the ability to create bar charts and column charts 2020-07-27 01:00:20 -04:00
Michael Mintz 6f86a2ba48 Update SeleniumBase Tours 2020-07-26 11:26:13 -04:00
Michael Mintz 59e926db70 Update docs for SeleniumBase Presenter 2020-07-26 11:25:43 -04:00
Michael Mintz 72e48bb99e Add SeleniumBase "Chart Maker" for pie charts 2020-07-26 11:23:59 -04:00
Michael Mintz eeff5eec8b Update ad-blocking 2020-07-20 20:17:24 -04:00
Michael Mintz 65be904c00 Update a method 2020-07-20 20:15:39 -04:00
Michael Mintz fafde7e88d Add a drag_and_drop() method 2020-07-20 20:14:42 -04:00
Michael Mintz b5ebb5067c Hide Presentater notes by default unless specified 2020-07-19 23:54:05 -04:00
Michael Mintz c8059bf774 Fix UnicodeDecodeError issues on Windows 2020-07-19 14:18:02 -04:00
Michael Mintz 39ef917ee5 Keep URL when using "--reuse-session" if not "--crumbs" 2020-07-15 10:53:37 -04:00
Michael Mintz 5d8ac4ecdc Add the "--swiftshader" command-line option 2020-07-10 21:17:19 -04:00
Michael Mintz 9e052e8259 Add a command-line option to block images in tests 2020-07-09 16:08:32 -04:00
Michael Mintz cc7332f357 Improve error messages 2020-07-08 17:39:49 -04:00
Michael Mintz a9a1fc38df Fix Presenter "show_notes" and move arg to different area 2020-07-01 14:13:13 -04:00
Michael Mintz 44dee593bd Fix Presenter image display on mobile devices 2020-06-29 05:17:01 -04:00
Michael Mintz 0cc6043e0c Update SeleniumBase Presenter 2020-06-28 23:15:43 -04:00
Michael Mintz 61384e4954 Add the ability to create presentations with SeleniumBase 2020-06-25 18:09:35 -04:00
Michael Mintz 70c950130b Add self.assert_no_broken_links() to assert no 404 errors 2020-06-14 00:53:13 -04:00
Michael Mintz 5b801da0fc Update Messenger output for assert statements 2020-06-14 00:51:45 -04:00
Michael Mintz 9ee1fa716f Update comments 2020-06-14 00:50:44 -04:00
Michael Mintz c84a5e902e Improve methods that type text 2020-06-12 21:51:17 -04:00
Michael Mintz 82490abf3c Boost speed by optimizing the location of imports 2020-06-12 21:41:40 -04:00
Michael Mintz 702f69bd8d Add self.js_type(s, t) and make arg-naming consistent 2020-06-12 19:21:48 -04:00
Michael Mintz 57ab91f8c3 Use consistent naming: Args called "new_value" become "text" 2020-06-12 19:18:28 -04:00
Michael Mintz 7737787dee Remove methods that were marked as deprecated over a year ago. 2020-06-12 18:25:51 -04:00
Michael Mintz 45904428be Improve reliability of Demo Mode 2020-06-12 01:33:11 -04:00
Michael Mintz cbd50474f9 Add translations for messages posted by Demo Mode 2020-06-12 01:06:18 -04:00
Michael Mintz 8b8c269984 self.type(selector, text) exists. Don't confuse it with Python type(obj) 2020-06-11 20:13:39 -04:00
Michael Mintz 63e8cc686a Set "English" as the default language 2020-06-10 23:59:27 -04:00
Michael Mintz 041952ba35 Update Messenger asserts 2020-06-10 05:01:40 -04:00
Michael Mintz 700f291d64 Improve mobile compatibility 2020-06-04 03:14:24 -04:00
Michael Mintz f01ff20ecb Update set_messenger_theme(...) 2020-06-04 03:10:35 -04:00
Michael Mintz 6c58479cde Add the get_user_agent() method 2020-06-04 03:02:25 -04:00
Michael Mintz d07e772b2c Update DriverJS tours 2020-06-02 23:43:16 -04:00
Michael Mintz c3d44d409d Add the ability to create DriverJS website tours 2020-06-02 20:43:06 -04:00
Michael Mintz 266bdc159b Improve error-handling around alerts 2020-05-29 17:57:21 -04:00
Michael Mintz ec8e1727bb For the test time-limit feature, start the clock at the end of setUp() 2020-05-29 17:55:22 -04:00
Michael Mintz e1190ad436 Improved exception-handling 2020-05-29 17:37:13 -04:00
Michael Mintz 84a132af28 Update comments 2020-05-29 17:34:46 -04:00
Michael Mintz 9bcaa0c18a Update code that processes URLs and HTML files 2020-05-28 03:42:39 -04:00
Michael Mintz 375cfc7405 Update code for injecting html strings into pages 2020-05-28 03:40:46 -04:00
Michael Mintz 3c56e77909 Refactoring 2020-05-28 03:34:00 -04:00
Michael Mintz 57a669098d Simplify code for handling alerts 2020-05-28 03:29:41 -04:00
Michael Mintz c3312267a3 Add the Deferred Assertions feature with rebranding 2020-05-28 03:26:43 -04:00
Michael Mintz 2cf0ba61c6 Update comments 2020-05-25 18:48:26 -04:00
Michael Mintz 675de551e9 Update file-handling 2020-05-25 04:24:56 -04:00
Michael Mintz 906246d7d3 Avoid UnicodeDecodeErrors 2020-05-25 04:23:44 -04:00
Michael Mintz 2a35c266e4 Update URL detection 2020-05-25 04:22:58 -04:00
Michael Mintz 1ba71c3b88 Fix issues with setting the time-limit in tests 2020-05-25 04:15:38 -04:00
Michael Mintz fcd3a91b41 Make the self.get(url) method more flexible 2020-05-24 02:49:01 -04:00
Michael Mintz fdeafddea1 Refactoring 2020-05-24 02:38:14 -04:00
Michael Mintz abc558c6d3 Update exception message output 2020-05-22 15:31:21 -04:00
Michael Mintz ca5fc0a463 Update a comment 2020-05-22 15:29:31 -04:00
Michael Mintz 023182c7de Simplify error output 2020-05-22 15:28:48 -04:00
Michael Mintz 962e2dc706 Refactor base_case 2020-05-18 16:04:51 -04:00
Michael Mintz b9d5fc2b6d Fix an issue with double-clicking on Windows 2020-05-17 23:46:37 -04:00
Michael Mintz 3d71565e94 Add a few duplicate methods for name convenience 2020-05-15 03:46:03 -04:00
Michael Mintz 8abf98be83 Refactoring 2020-05-15 03:44:23 -04:00
Michael Mintz 024ae04041 Update the translations 2020-05-10 12:20:05 -04:00
Michael Mintz 86763c6d33 Refactor base_case.py 2020-05-10 03:06:51 -04:00
Michael Mintz 1ed90bcae8 Add methods for controlling Local Storage and Session Storage 2020-05-09 14:35:48 -04:00
Michael Mintz 91f5f252af Improve reliability of the HTML-inspector 2020-05-06 12:42:26 -04:00
Michael Mintz 361994c53d Update a method 2020-05-06 12:41:20 -04:00
Michael Mintz 18920e910c Move click_link() to the duplicates section 2020-05-06 02:51:29 -04:00
Michael Mintz ca0dc7eac3 Remove leading and trailing whitespace from PDF files when parsed 2020-05-06 02:50:23 -04:00
Michael Mintz aef5904bdf "--crumbs": Delete cookies between tests reusing sessions 2020-05-03 15:58:49 -04:00
Michael Mintz 371bdd327c Refactoring base_case methods 2020-05-02 22:26:29 -04:00
Michael Mintz e41b143b74 Improve hover_and_click actions 2020-04-28 23:49:04 -04:00
Michael Mintz 7be5b6f8e7 Improve automation on Safari 2020-04-28 23:48:30 -04:00
Michael Mintz 61a6944dd4 Update the assert_downloaded_file(FILE) method 2020-04-27 23:47:18 -04:00
Michael Mintz c59d235c9f Add set_window_rect(x, y, width, height) 2020-04-24 19:25:16 -04:00
Michael Mintz 6c18c90dc1 Update a method call 2020-04-24 19:21:56 -04:00
Michael Mintz 7c0357b691 Set default Safari position and dimensions if not maximized 2020-04-24 19:21:39 -04:00
Michael Mintz 5f16485e1d Update format 2020-04-22 20:43:28 -04:00
Michael Mintz 13f60c059a Generate the desired capabilities "name" if "*" is passed 2020-04-21 15:37:37 -04:00
Michael Mintz efa7a7c8f9 Add a cmd option to use Chrome's Automation Extension 2020-04-21 14:21:52 -04:00
Michael Mintz 4ed760cba4 Add more custom parameters for passing into tests 2020-04-21 02:33:31 -04:00
Michael Mintz 9ec5b448aa Update method timing 2020-04-21 02:31:33 -04:00
Michael Mintz 75f49a1191 Add option to set capabilities with --cap-string=STRING 2020-04-19 14:40:36 -04:00