summaryrefslogtreecommitdiff
path: root/webtest/forms.py
Commit message (Collapse)AuthorAgeFilesLines
* Dropped support for Python 2.7 and 3.5David Smith2020-11-071-11/+10
|
* Support <input type="search">Colin Watson2019-11-101-0/+2
| | | | | | https://html.spec.whatwg.org/multipage/input.html#text-(type=text)-state-and-search-state-(type=search) describes the difference between `type="text"` and `type="search"` as being primarily stylistic.
* Fix DeprecationWarning: invalid escape sequence \sLaurence Rowe2019-02-151-1/+1
|
* fixed #210Gael Pasgrimaud2019-02-091-0/+4
|
* Use empty string as default value for submit and button (#205)Benjamin Dauvergne2018-10-041-2/+2
|
* Add ``Email`` class for input fields with type "email".Michael Howitz2018-06-191-0/+6
|
* fixed #193Gael Pasgrimaud2018-05-181-1/+1
|
* Preserve submit order for radio inputs.Florian Schulze2017-10-091-7/+22
|
* Remove remaining references to ordereddict packageCorey Wright2017-02-011-1/+1
| | | | | | Now that Python 2.6 is unsupported, references to the ordereddict package can be removed in preference of using OrderedDict from the Python standard library's collections module.
* use text_type() instead of str(). see #164Gael Pasgrimaud2016-09-151-5/+1
|
* do not guess encoding if response's charset is set. See #160Gael Pasgrimaud2016-07-211-1/+5
|
* Set Referer on form.submit() (#147)Benjamin Dauvergne2016-03-311-0/+2
| | | | It complies with usual behaviour of current browsers.
* reset values of select multipleYannick Chabbert2015-05-291-12/+7
|
* fixed #131 prevent passing HTML parameters that conflict with Field kwargs.Joeri Bekker2015-02-061-0/+6
|
* Fixed #110. Don't ignore forced value on Radio inputZeb DeOs2014-04-241-1/+3
|
* improve test coverage. we're back at 100%Gael Pasgrimaud2014-04-161-1/+1
|
* pep8 everywhereGael Pasgrimaud2014-04-161-6/+7
|
* Fixed #73. Python < 2.6.5 does not support unicode as keyword arguments names.Gael Pasgrimaud2014-04-161-0/+7
|
* Allow .select() on select fields.Markus Bertheau2014-01-231-16/+22
| | | | This just moves the implementation from Form to Select.
* Allow selecting by text for multi selectsMarkus Bertheau2014-01-231-0/+31
|
* Allow selecting by text for single selectsMarkus Bertheau2014-01-231-2/+19
|
* Modify selects and radio fields to store the option text as wellMarkus Bertheau2014-01-231-9/+11
| | | | in preparation for allowing selecting an option by its text.
* resolve conflictGael Pasgrimaud2014-01-171-6/+13
|\
| * Allow selecting submit button by valueMarkus Bertheau2014-01-171-6/+13
| |
* | Ignore the value attribute of <input type="file">Markus Bertheau2014-01-161-0/+3
|/ | | | | | | | Browsers do the same thing, see http://stackoverflow.com/questions/20537696/remember-and-repopulate-file-input/20537822#20537822 Without this, submitting the form as is gives ValueError: upload_files need to be a list of tuples of (fieldname, filename, filecontent, mimetype) or (fieldname, filename, filecontent) or (fieldname, filename); you gave: "['file-field', u's', u'o', u'm', u'e', u'/', u'p', u'a', u't', u'h', u'/', u'f', u'i', u'l', u'e', u"
* Adds ability to specify an HTML parserLyndsy Simon2013-10-071-2/+2
|
* Make sure Upload.content_type is not ignoredMarius Gedminas2013-09-181-1/+1
| | | | | | | | Looks like there's a bazillion methods of specifying files you want to upload with a form, and I missed one of them. This adds a missing test case and fixes the bug. A followup fix for issue #86.
* Allow specifying the MIME type of an uploaded fileMarius Gedminas2013-09-161-1/+6
| | | | Fixes #86
* Allow assigning a list to a set of same-named checkboxes.Carl Meyer2013-08-301-4/+14
|
* remove leading newline from textareaVictor Safronovich2013-05-041-1/+7
|
* Do not alter the BeautifulSoup object when parsing forms.Georges Dubus2013-04-171-1/+1
|
* Handle the short form of <select multiple>Marius Gedminas2013-04-011-1/+1
| | | | | | See http://www.w3.org/TR/REC-html40/interact/forms.html#adef-multiple if you need convincing that this is valid HTML (first example, a couple of pages down).
* Correctly handle <option> elements with no value attributeMarius Gedminas2013-03-281-1/+1
| | | | | | E.g. http://www.w3.org/TR/REC-html40/interact/forms.html#edef-OPTION clearly states that the value attribute of OPTION elements "defauls to element content".
* All <button> elements are treated as submit controlsAndrey Lebedev2013-03-221-0/+2
|
* Don't let BeautifulSoup use lxml. Fix GH-51Mikhail Korobov2013-03-031-1/+1
|
* re-allow to use some unknow field typeGael Pasgrimaud2013-02-271-8/+8
|
* Added password class to Field.classes of type Textdiarmuidbourke2013-02-261-0/+2
| | | This fixes the case where you have an input type='password' and the value attribute is never set.
* doc errorsDomen Kožar2013-02-231-6/+6
|
* Completely rewrite API documentationDomen Kožar2013-02-231-57/+115
|
* 100% coverage on webtest.formsGael Pasgrimaud2013-02-211-1/+1
|
* add more test for formsGael Pasgrimaud2013-02-211-4/+2
|
* merge conflictsGael Pasgrimaud2013-02-211-5/+0
|\
| * Cleaning of unused method and attribute in Field classArthur Vuillard2013-02-211-5/+0
| |
* | use bs4 to parse formGael Pasgrimaud2013-02-211-85/+51
|/
* Improve readability of webtest.forms.Form.get method (and improve coverage ↵Arthur Vuillard2013-02-211-8/+7
| | | | by deleting unneeded files)
* Merge branch 'master' of https://github.com/Pylons/webtestArthur Vuillard2013-02-211-1/+1
|\
| * simplify utils.py, add unittests (incomplete)Domen Kožar2013-02-211-1/+1
| |
* | A get on a radio value should not unforce the forced valueArthur Vuillard2013-02-211-2/+0
| |
* | Deletion of the settable attribute in the form's fieldsArthur Vuillard2013-02-211-9/+6
|/
* fix indentGael Pasgrimaud2013-01-291-0/+2
|