Commit graph

60 commits

Author SHA1 Message Date
Laurent Bachelier
1838f62e28 Allow more flexibility for the submit button parameter 2014-08-26 18:05:25 +02:00
Laurent Bachelier
a3c208dccf Add support for forms with multiple "submit" elements 2014-08-26 18:05:25 +02:00
Florent
ce133dcf8a Fix documentation of nr parameter 2014-08-19 08:58:12 +02:00
Romain Bignon
1005197a92 add CsvPage 2014-07-11 15:24:24 +02:00
Florent
76cb004eb4 Move ItemListTable-Element outside of page.py
One of the goal is to not import all modules needed by filters by
loading the page file.

In the same goal, move the import of parsers in the class definition.
2014-07-09 10:23:20 +02:00
Romain Bignon
8efd37e71d overload & and | operators to chain filters (refs #1426) 2014-07-05 20:00:04 +02:00
Laurent Bachelier
3f2d8ae185 Allow for a custom element finder
And end up with less duplicate code!
2014-07-05 14:23:27 +02:00
Romain Bignon
18c1f46922 ability to override the flush() method 2014-07-01 20:37:58 +02:00
Vincent Paredes
714a0e7617 matching content with url using is_here 2014-07-01 15:52:51 +02:00
Laurent Bachelier
b9c6176628 browser2: Allow setting query string params on build_url
The outcome is exactly the same as using requests with the "params"
parameter.
2014-06-20 17:58:51 +02:00
Laurent Bachelier
5dd0e9e0ec Small style fixes 2014-06-20 17:58:51 +02:00
Laurent Bachelier
14b1b56914 browser2: Add an option to convert POST data to the proper encoding
And autodetect it on forms. There is no other way to know what is the
expected encoding.
2014-05-19 01:01:25 +02:00
Romain Bignon
6fcac89dd5 first step in python3 support 2014-05-17 14:27:55 +02:00
Romain Bignon
686a3b77e8 fix URL.id2url (give the browser instance to URL.build()) 2014-05-17 14:27:34 +02:00
Laurent Bachelier
82f47bff88 Allow forcing a Page content encoding 2014-05-16 15:37:24 +02:00
Laurent Bachelier
e01b39c8d2 Also ignore URLs where all kwargs were not used 2014-05-16 11:47:25 +02:00
Laurent Bachelier
6e9910ae9a Only use full-name substitutions, to allow % in URLs 2014-05-16 11:47:25 +02:00
Roger Philibert
6031ff1ef9 Form.submit can take extra parameters given to location() 2014-05-09 22:59:36 +02:00
Romain Bignon
ab710e0f74 support GET forms 2014-04-29 22:00:49 +02:00
Romain Bignon
61bc712068 Revert "Detect duplicate objects with id "0""
This reverts commit 6cae2cd0a5.
2014-04-26 12:07:22 +02:00
Florent
6cae2cd0a5 Detect duplicate objects with id "0" 2014-04-24 16:18:19 +02:00
Florent
fe5bfee255 Add ignore_duplicate option for crazy modules 2014-04-24 16:16:50 +02:00
Bezleputh
cdf2996d57 [browther2] Display error message instead of raising DataError when we find the same ids in ListElement 2014-04-23 12:37:36 +02:00
Romain bignon
b268fc043b Use regexp to validate urls 2014-04-18 09:55:31 +02:00
Romain Bignon
d291019ce9 fix TableElement to be really case insensitive 2014-04-15 09:15:12 +02:00
Vincent Paredes
f7c4bb39c5 remove case sensitive checking 2014-04-14 16:42:39 +02:00
Romain Bignon
1bef60b347 URL builds absolute urls from BASEURL 2014-04-13 12:32:02 +02:00
Romain Bignon
07f6507096 improve documentation of browser2 2014-04-12 15:02:34 +02:00
Romain Bignon
5f59c130b3 add decorator pagination 2014-04-12 12:48:14 +02:00
Bezleputh
0ed7ed2b2d [browser2] add an XMLPage 2014-04-03 16:34:36 +02:00
Florent
839834edf2 Add name attribut to Form object 2014-04-01 12:33:27 +02:00
Romain Bignon
dd68bfd3fc fix use of checked checkbox/radiobuttons in forms 2014-03-29 20:00:14 +01:00
Florent
d768de6638 Add RawPage to Browser2 2014-03-28 13:24:26 +01:00
Romain Bignon
698ed5fb06 add exceptions, add _Filter.default_or_raise, and other fixes 2014-03-25 22:28:09 +01:00
Bezleputh
9eacdb0347 [browser2] fix bug in is_here when self.klass is None 2014-03-24 19:15:57 +01:00
Romain Bignon
f6b5996652 fix count of forms 2014-03-22 16:06:51 +01:00
Florent
41e2cab536 Add documentation 2014-03-22 14:59:01 +01:00
Laurent Bachelier
0927230e95 Also check arguments with is_here()
Otherwise, something like that would never work:
page.stay_or_go(id=1)
page.stay_or_go(id=2)  # would stay on URL for id=1

To avoid breaking simple usage of is_here(), if no arguments are
provided, then there are no checks.

That means:
page.stay_or_go(id=1)
page.stay_or_go()  # nothing happens
2014-03-22 12:43:53 +01:00
Laurent Bachelier
463fdb2016 Fix passing the URL with id2url, when provided with an URL
It was passing the match result instead.
2014-03-22 12:43:53 +01:00
Laurent Bachelier
27aa772ef5 Escape the base URL before adding it to the regexp 2014-03-22 12:43:53 +01:00
Florent
d31e03db8e Move LoggedPage in tools.browser2 2014-03-20 12:10:21 +01:00
Florent
4e6333fbcd Do not crash if an input does not have any type 2014-03-20 11:51:03 +01:00
Romain Bignon
0a53824104 URL.open and URL.go can take 'params' argument 2014-03-20 07:48:23 +01:00
Bezleputh
06cee506f9 [browser2] Add JsonPage 2014-03-20 00:45:19 +01:00
Bezleputh
1114dbd516 [browser2] Add an "open" method in order to open an url without changing the current URL 2014-03-20 00:40:55 +01:00
Romain Bignon
5fb0aad01e fix crash in multithread environment 2014-03-19 18:56:39 +01:00
Romain Bignon
fe4dbf8698 consider select and textarea fields in forms 2014-03-19 12:19:00 +01:00
Romain Bignon
ec3af7bfab remove dependencie to weboob.tools.parsers 2014-03-17 21:43:57 +01:00
Romain Bignon
a74b31df33 several of little fixes 2014-03-14 00:19:08 +01:00
Bezleputh
2673b3a340 fix rename error 2014-03-14 00:19:15 +01:00