Base page
Standard Browser.
| Parameters: |
|
|---|
Build an URL and escape arguments.
You can give a serie of tuples in args (and the order is keept), or a dict in kwargs (but the order is lost).
Example:
>>> buildurl('/blah.php', ('a', '&'), ('b', '=')
'/blah.php?a=%26&b=%3D'
>>> buildurl('/blah.php', a='&', 'b'='=')
'/blah.php?b=%3D&a=%26'
Get a parsed document from a stream.
| Parameter: | result (stream) – HTML page stream |
|---|
Set a value to a form field.
| Parameters: |
|
|---|
Base browser class to navigate on a website.
| Parameters: |
|
|---|
Return True if we are logged on website. When Browser tries to access to a page, if this method returns False, it calls login().
It is never called if the password attribute is None.
Check the current page.
| Parameter: | pageCls (BasePage) – class of the page to check |
|---|---|
| Return type: | bool |
Login to the website.
This function is called when is_logged() returns False and the password attribute is not None.